Further tweaking of pg_dump's handling of default_toast_compression.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Mar 2021 14:57:57 +0000 (10:57 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Mar 2021 14:57:57 +0000 (10:57 -0400)
commit54bb91c30e3964fd81059e6b02e377cc9dd2d64c
tree865b91ad06797ea01207f0f7db4f7e6f4487ad85
parented934d4fa30f0f94e6f7125ad2154e6a58d1c7f7
Further tweaking of pg_dump's handling of default_toast_compression.

As committed in bbe0a81db, pg_dump from a pre-v14 server effectively
acts as though you'd said --no-toast-compression.  I think the right
thing is for it to act as though default_toast_compression is set to
"pglz", instead, so that the tables' toast compression behavior is
preserved.  You can always get the other behavior, if you want that,
by giving the switch.

Discussion: https://postgr.es/m/1112852.1616609702@sss.pgh.pa.us
src/bin/pg_dump/pg_dump.c