From 8f3362d4b7430079bb53a954e372955eb285cf52 Mon Sep 17 00:00:00 2001
From: Robert Haas <rhaas@postgresql.org>
Date: Thu, 20 Oct 2011 00:05:31 -0400
Subject: [PATCH] Fix get_object_namespace() not to think extensions are "in" a
 schema.

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/catalog/objectaddress.c b/src/backend/catalog/objectaddress.c
index de2a26dada9..ec4c98769ac 100644
--- a/src/backend/catalog/objectaddress.c
+++ b/src/backend/catalog/objectaddress.c
@@ -116,7 +116,7 @@ static ObjectPropertyType ObjectProperty[] =
 		ExtensionRelationId,
 		ExtensionOidIndexId,
 		-1,
-		Anum_pg_extension_extnamespace
+		InvalidAttrNumber		/* extension doesn't belong to extnamespace */
 	},
 	{
 		ForeignDataWrapperRelationId,
-- 
GitLab