| From: | Greg Sabino Mullane <htamfids(at)gmail(dot)com> |
|---|---|
| To: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
| Cc: | Daniel Gustafsson <daniel(at)yesql(dot)se>, shihao zhong <zhong950419(at)gmail(dot)com>, Bohyun Lee <bohyun(dot)lee(at)databricks(dot)com>, Harrison Booth <harrisontbooth(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: [PATCH] pg_upgrade: add --initdb option to create the new cluster automatically |
| Date: | 2026-11-25 15:12:06 |
| Message-ID: | CAKAnmmJc3PMMruBfd_MnfnDJvkmH0n=h-Aw8774a40Xtxg5Y+A@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Nov 20, 2026 at 8:11 AM Heikki Linnakangas <hlinnaka(at)iki(dot)fi> wrote:
> Setting shared_preload_libraries in the config file.
Thanks, that's a good example. While some don't require it and CREATE
EXTENSION works fine (e.g. the one I immediately thought of,
pg_stat_statements), others do require a middle step (e.g. pg_cron). Your
--print-initdb-options and --initdb-only ideas are good, and I lean towards
the latter. The other option is to make --initdb smarter. Maybe that means
copying the existing conf files over, maybe it means picking pieces out
like shared_preload_libraries. At any rate, that's probably a bigger ask
than this patch. Perhaps we can just release this patch as is (with a
--initdb flag), and have a separate patch that does --initdb-only and/or
gives --initdb more brains?
Cheers,
Greg
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Aidar Imamov | 2026-11-25 15:24:42 | [PATCH] Use the table AM relation_size callback in the SQL size functions |
| Previous Message | Tom Lane | 2026-11-25 15:11:41 | Re: Remove inner joins based on foreign keys |