From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Incorrect processing of CREATE TRANSFORM with DDL deparding
Date: Mon, 25 May 2015 12:52:48 -0300
Message-ID: <20150525155248.GG5885@postgresql.org> (raw)
In-Reply-To: <CAB7nPqQNS36enM2R=6P9FvKUu7t3k=2EjFkFBPnby==pLFqQ+w@mail.gmail.com>
References: <CAB7nPqQNS36enM2R=6P9FvKUu7t3k=2EjFkFBPnby==pLFqQ+w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Michael Paquier wrote:
> Hi all,
>
> In ProcessUtilitySlow()@utility.c, for a node T_CreateTransformStmt,
> process does not return ObjectAddress. This makes process inconsistent
> with the other commands and the ObjectAddress passed to
> EventTriggerCollectSimpleCommand is not initialized.
> Coverity has pointed out the error, I just some legwork to sort out a fix.
Yeah, I had noticed this and was pretty annoyed because we ended up in
precisely the situation we didn't want to be: new code is added to
ProcessUtility that is not handled by the deparse framework. (I
don't know whether TRANSFORM went in first or deparse, but it doesn't
really matter.)
The fix as you say is pretty trivial, but I would like to use this is a
test case to ensure that we will catch all these mistakes in the future
too not only this particular one.
--
Á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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: alvherre@2ndquadrant.com, michael.paquier@gmail.com
Subject: Re: Incorrect processing of CREATE TRANSFORM with DDL deparding
In-Reply-To: <20150525155248.GG5885@postgresql.org>
References: <CAB7nPqQNS36enM2R=6P9FvKUu7t3k=2EjFkFBPnby==pLFqQ+w@mail.gmail.com> <20150525155248.GG5885@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox