]> granicus.if.org Git - postgresql/commitdiff
Fix object identities for pg_conversion objects
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 6 Apr 2015 14:15:13 +0000 (11:15 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 6 Apr 2015 14:15:13 +0000 (11:15 -0300)
This was already fixed in 0d906798f, but I failed to update the
array-formatted case.  This is not backpatched, since this only affects
the code path introduced by commit a676201490c.

src/backend/catalog/objectaddress.c

index e82a448e6ff4f6866df074b0a4c2b84d49722383..cf79ea5cc937cdcc8dc929116f75174f0b4203b0 100644 (file)
@@ -3756,8 +3756,8 @@ getObjectIdentityParts(const ObjectAddress *object,
                                                                quote_qualified_identifier(schema,
                                                                                                                   NameStr(conForm->conname)));
                                if (objname)
-                                       *objname = list_make1(pstrdup(NameStr(conForm->conname)));
-                               pfree(schema);
+                                       *objname = list_make2(schema,
+                                                                                 pstrdup(NameStr(conForm->conname)));
                                ReleaseSysCache(conTup);
                                break;
                        }