[Postgresql Master Branch Patch] object class patch

Started by Jaimin Panover 10 years ago3 messages
#1Jaimin Pan
jaimin.pan@gmail.com
1 attachment(s)

Hi all,

There is missing mapping for TransformRelationId and OCLASS_TRANSFORM in
object_classes.

Please check if it need fix.

Attachments:

object_classes.patchapplication/octet-stream; name=object_classes.patchDownload
diff --git a/src/backend/catalog/dependency.c b/src/backend/catalog/dependency.c
index c1212e9..2063801 100644
--- a/src/backend/catalog/dependency.c
+++ b/src/backend/catalog/dependency.c
@@ -158,7 +158,8 @@ static const Oid object_classes[MAX_OCLASS] = {
 	DefaultAclRelationId,		/* OCLASS_DEFACL */
 	ExtensionRelationId,		/* OCLASS_EXTENSION */
 	EventTriggerRelationId,		/* OCLASS_EVENT_TRIGGER */
-	PolicyRelationId			/* OCLASS_POLICY */
+	PolicyRelationId,			/* OCLASS_POLICY */
+	TransformRelationId			/* OCLASS_TRANSFORM */
 };
 
 
#2Michael Paquier
michael.paquier@gmail.com
In reply to: Jaimin Pan (#1)
Re: [Postgresql Master Branch Patch] object class patch

On Sun, Jul 12, 2015 at 9:21 PM, Jaimin Pan <jaimin.pan@gmail.com> wrote:

There is missing mapping for TransformRelationId and OCLASS_TRANSFORM in
object_classes.

Please check if it need fix.

Right. This has been forgotten in ad89a5d.
--
Michael

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#3Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Michael Paquier (#2)
Re: [Postgresql Master Branch Patch] object class patch

Michael Paquier wrote:

On Sun, Jul 12, 2015 at 9:21 PM, Jaimin Pan <jaimin.pan@gmail.com> wrote:

There is missing mapping for TransformRelationId and OCLASS_TRANSFORM in
object_classes.

Please check if it need fix.

Right. This has been forgotten in ad89a5d.

But see
/messages/by-id/CA+Tgmoa6SgDaxW_n_7SEhwBAc=mniYga+obUj5fmw4rU9_mLvA@mail.gmail.com

We should really have some mechanism to detect when this is missed,
because it evidently is very easy to miss. Did anyone review Jim's
patch?

--
�lvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs