On Fri, Nov 20, 2026 at 8:11 AM Heikki Linnakangas <[email protected]> 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
