]> granicus.if.org Git - postgresql/commitdiff
Fix get_object_namespace() not to think extensions are "in" a schema.
authorRobert Haas <rhaas@postgresql.org>
Thu, 20 Oct 2011 04:05:31 +0000 (00:05 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 20 Oct 2011 04:07:41 +0000 (00:07 -0400)
extnamespace means something altogether different in this context.
Mostly by accident, this coding error (introduced in my commit
82a4a777d94bec965ab2f1d04b6e6a3f0447b377) broke the buildfarm instead
of just silently doing the wrong thing.

src/backend/catalog/objectaddress.c

index de2a26dada9143f615c47bc99ec07d5b37fe8169..ec4c98769ac61cf188169157ff4d210d1763d1d4 100644 (file)
@@ -116,7 +116,7 @@ static ObjectPropertyType ObjectProperty[] =
                ExtensionRelationId,
                ExtensionOidIndexId,
                -1,
-               Anum_pg_extension_extnamespace
+               InvalidAttrNumber               /* extension doesn't belong to extnamespace */
        },
        {
                ForeignDataWrapperRelationId,