Skip to content

Commit 66463a3

Browse files
committed
Fix object identities for pg_conversion objects
We were neglecting to schema-qualify them. Backpatch to 9.3, where object identities were introduced as a concept by commit f8348ea.
1 parent a75dfb7 commit 66463a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/catalog/objectaddress.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2808,15 +2808,19 @@ getObjectIdentity(const ObjectAddress *object)
28082808
{
28092809
HeapTuple conTup;
28102810
Form_pg_conversion conForm;
2811+
char *schema;
28112812

28122813
conTup = SearchSysCache1(CONVOID,
28132814
ObjectIdGetDatum(object->objectId));
28142815
if (!HeapTupleIsValid(conTup))
28152816
elog(ERROR, "cache lookup failed for conversion %u",
28162817
object->objectId);
28172818
conForm = (Form_pg_conversion) GETSTRUCT(conTup);
2819+
schema = get_namespace_name(conForm->connamespace);
28182820
appendStringInfoString(&buffer,
2819-
quote_identifier(NameStr(conForm->conname)));
2821+
quote_qualified_identifier(schema,
2822+
NameStr(conForm->conname)));
2823+
pfree(schema);
28202824
ReleaseSysCache(conTup);
28212825
break;
28222826
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy