postgresql/src/bin/psql
Tom Lane e6241d8e03 Rethink definition of pg_attribute.attcompression.
Redefine '\0' (InvalidCompressionMethod) as meaning "if we need to
compress, use the current setting of default_toast_compression".
This allows '\0' to be a suitable default choice regardless of
datatype, greatly simplifying code paths that initialize tupledescs
and the like.  It seems like a more user-friendly approach as well,
because now the default compression choice doesn't migrate into table
definitions, meaning that changing default_toast_compression is
usually sufficient to flip an installation's behavior; one needn't
tediously issue per-column ALTER SET COMPRESSION commands.

Along the way, fix a few minor bugs and documentation issues
with the per-column-compression feature.  Adopt more robust
APIs for SetIndexStorageProperties and GetAttributeCompression.

Bump catversion because typical contents of attcompression will now
be different.  We could get away without doing that, but it seems
better to ensure v14 installations all agree on this.  (We already
forced initdb for beta2, anyway.)

Discussion: https://postgr.es/m/626613.1621787110@sss.pgh.pa.us
2021-05-27 13:24:27 -04:00
..
po Translation updates 2021-05-17 14:30:27 +02:00
t Add a copyright notice to perl files lacking one. 2021-05-07 10:56:14 -04:00
.gitignore Add basic TAP tests for psql's tab-completion logic. 2020-01-02 15:02:21 -05:00
command.c Allow psql's \df and \do commands to specify argument types. 2021-04-07 23:02:21 -04:00
command.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
common.c Revert "psql: Show all query results by default" 2021-04-15 19:42:55 +02:00
common.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
copy.c Remove server and libpq support for old FE/BE protocol version 2. 2021-03-04 10:45:55 +02:00
copy.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
create_help.pl Update copyright for 2021 2021-01-02 13:06:25 -05:00
crosstabview.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
crosstabview.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
describe.c Rethink definition of pg_attribute.attcompression. 2021-05-27 13:24:27 -04:00
describe.h Allow psql's \df and \do commands to specify argument types. 2021-04-07 23:02:21 -04:00
help.c Put some psql documentation pieces back into alphabetical order 2021-05-21 17:10:09 +02:00
help.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
input.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
input.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
large_obj.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
large_obj.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
mainloop.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
mainloop.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
Makefile Update copyright for 2021 2021-01-02 13:06:25 -05:00
nls.mk Translation updates 2021-05-10 14:36:21 +02:00
prompt.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
prompt.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
psqlrc.sample Improve FILES section of psql reference page. 2014-01-14 19:27:57 -05:00
psqlscanslash.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
psqlscanslash.l Update copyright for 2021 2021-01-02 13:06:25 -05:00
settings.h Revert "psql: Show all query results by default" 2021-04-15 19:42:55 +02:00
startup.c Revert "psql: Show all query results by default" 2021-04-15 19:42:55 +02:00
stringutils.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
stringutils.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
tab-complete.c Make saner the tab completion of INSERT and DELETE in psql 2021-05-13 09:48:28 +09:00
tab-complete.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
variables.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
variables.h Update copyright for 2021 2021-01-02 13:06:25 -05:00