Re: [PATCH] Return command tag 'REPLACE X' for CREATE OR REPLACE statements.
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marti Raudsepp <marti@juffo.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2010-11-28T16:29:02Z
Lists: pgsql-hackers
Marti Raudsepp <marti@juffo.org> writes: > This patch returns command tag "CREATE X" or "REPLACE X" for > LANGAUGE/VIEW/RULE/FUNCTION. This is done by passing completionTag to > from ProcessUtility to more functions, and adding a 'bool *didUpdate' > argument to some lower-level functions. I'm not sure if passing back > the status in a bool* is considered good style, but this way all the > functions look consistent. This is going to break clients that expect commands to return the same command tag as they have in the past. I doubt that whatever usefulness is gained will outweigh the compatibility problems. regards, tom lane