Re: ALTER SYSTEM between upgrades
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Bruce Momjian <bruce@momjian.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>,
PostgreSQL-documentation <pgsql-docs@postgresql.org>
Date: 2020-07-14T10:52:23Z
Lists: pgsql-hackers, pgsql-docs
> On 14 Jul 2020, at 01:58, Bruce Momjian <bruce@momjian.us> wrote:
> I am creating a new thread to discuss the question raised by Alvaro of
> how many ALTER SYSTEM settings are lost during major upgrades. Do we
> properly document that users should migrate their postgresql.conf _and_
> postgresql.auto.conf files during major upgrades? I personally never
> thought of this until now.
Transferring postgresql.conf is discussed to some degree in the documentation
for pg_upgrade:
11. Restore pg_hba.conf
If you modified pg_hba.conf, restore its original settings. It might
also be necessary to adjust other configuration files in the new
cluster to match the old cluster, e.g. postgresql.conf.
.. as well as upgrading via pg_dumpall:
4. Restore your previous pg_hba.conf and any postgresql.conf
modifications.
One can argue whether those bulletpoints are sufficient for stressing the
importance, but it's at least mentioned. There is however no mention of
postgresql.auto.conf which clearly isn't helping anyone, so we should fix that.
Taking that a step further, maybe we should mention additional config files
which could be included via include directives? There are tools out there who
avoid changing the users postgresql.conf by injecting an include directive
instead; they might've placed the included file alongside postgresql.conf.
cheers ./daniel
Commits
-
Add hash_mem_multiplier GUC.
- d6c08e29e7bc 14.0 landed
- 78530c8e7a5a 13.0 landed
-
HashAgg: use better cardinality estimate for recursive spilling.
- 3a232a3183d5 13.0 landed
- 9878b643f37b 14.0 landed
-
Remove hashagg_avoid_disk_plan GUC.
- bcbf9446a298 14.0 landed
- 5a6cc6ffa914 13.0 landed
-
Doc fixup for hashagg_avoid_disk_plan GUC.
- d33f33539d7f 13.0 landed
- 7ce461560159 14.0 landed
-
Rework HashAgg GUCs.
- 13e0fa7ae50c 13.0 landed
- 92c58fd94801 14.0 landed
-
Disk-based Hash Aggregation.
- 1f39bce02154 13.0 cited
-
Implement partition-wise grouping/aggregation.
- e2f1eb0ee30d 11.0 cited
-
Defer creation of partially-grouped relation until it's needed.
- 4f15e5d09de2 11.0 cited