Hide internal error for pg_collation_actual_version(<bad OID>).

Thomas Munro <tmunro@postgresql.org>

Commit: 0fb0a0503bfc125764c8dba4f515058145dc7f8b
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2021-02-22T10:01:20Z
Releases: 14.0
Hide internal error for pg_collation_actual_version(<bad OID>).

Instead of an unsightly internal "cache lookup failed" message, just
return NULL for bad OIDs, as is the convention for other similar things.

Reported-by: Justin Pryzby <pryzby@telsasoft.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/20210117215940.GE8560%40telsasoft.com

Files

Discussion