Fix incorrect error code for CREATE/ALTER TABLE COMPRESSION

Michael Paquier <michael@paquier.xyz>

Commit: 9681f2160dcbe2a02fd2e2db2322ea204eff6562
Author: Michael Paquier <michael@paquier.xyz>
Date: 2021-05-08T01:18:05Z
Releases: 14.0
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

Files

PathChange+/−
src/backend/commands/tablecmds.c modified +1 −1

Discussion