pgsql: Fix incorrect error code for CREATE/ALTER TABLE COMPRESSION

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix incorrect error code for CREATE/ALTER TABLE COMPRESSION
Date: 2021-05-08 01:27:35
Message-ID: E1lfBkl-0007Oo-W0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix incorrect error code for CREATE/ALTER TABLE COMPRESSION

Specifying an incorrect value for the compression method of an attribute
caused ERRCODE_FEATURE_NOT_SUPPORTED to be raised as error. Use instead
ERRCODE_INVALID_PARAMETER_VALUE to be more consistent.

Author: Dilip Kumar
Discussion: https://postgr.es/m/CAFiTN-vH84fE-8C4zGZw4v0Wyh4Y2v=5JWg2fGE5+LPaDvz1GQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9681f2160dcbe2a02fd2e2db2322ea204eff6562

Modified Files
--------------
src/backend/commands/tablecmds.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-05-08 15:33:25 pgsql: Doc: copy-editing for debug_invalidate_system_caches_always desc
Previous Message Tomas Vondra 2021-05-07 20:38:20 pgsql: Copy the INSERT query in postgres_fdw