1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

Make get_extension_schema() available

This routine is able to retrieve the OID of the schema used with an
extension (pg_extension.extnamespace), or InvalidOid if this information
is not available.  plpgsql_check embeds a copy of this code when
performing checks on functions, as one out-of-core example.

Author: Pavel Stehule
Reviewed-by: Julien Rouhaud
Discussion: https://postgr.es/m/CAFj8pRD+9x55hjDoi285jCcjPc8uuY_D+FLn5RpXggdz+4O2sQ@mail.gmail.com
This commit is contained in:
Michael Paquier
2023-03-07 14:18:20 +09:00
parent cf96907aad
commit e20b1ea157
2 changed files with 2 additions and 1 deletions

View File

@ -222,7 +222,7 @@ get_extension_name(Oid ext_oid)
*
* Returns InvalidOid if no such extension.
*/
static Oid
Oid
get_extension_schema(Oid ext_oid)
{
Oid result;