pgsql: Correct the command tags for ALTER ... RENAME COLUMN.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Correct the command tags for ALTER ... RENAME COLUMN.
Date: 2019-11-06 03:55:36
Message-ID: E1iSCPw-0003mT-3y@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Correct the command tags for ALTER ... RENAME COLUMN.

Previously ALTER MATERIALIZED VIEW / FOREIGN TABLE ... RENAME COLUMN ...
returned "ALTER TABLE" as a command tag. This commit fixes them so that
they return "ALTER MATERIALIZED VIEW" and "ALTER FOREIGN TABLE" as
command tags, respectively.

This issue exists in all supported versions, but we don't back-patch this
because it's not enough of a bug to justify taking any compatibility risks for.
Otherwise, the back-patch would cause minor version update to break,
for example, the existing event trigger functions using TG_TAG.

Author: Fujii Masao
Reviewed-by: Ibrar Ahmed
Discussion: https://postgr.es/m/CAHGQGwGUaC03FFdTFoHsCuDrrNvFvNVQ6xyd40==P25WvuBJjg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/979766c0afceb95c4b96323b57a0f6edf8472612

Modified Files
--------------
src/backend/tcop/utility.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2019-11-06 04:48:07 Re: pgsql: doc: Further clarify how recovery target parameters are applied
Previous Message Bruce Momjian 2019-11-06 02:29:07 pgsql: doc: fix for plurality typo on bgwriter doc sentence