I've seen some PostgreSQL extension examples that use the .control
file to provide defaults for the extension's settings. This seems to be a remnant from a time in which extension settings had to be provided in the .control
file for them to be valid to Postgres at all. My question is: Has putting the extension settings in the .control
file ever been a required or recommended practice?
I don't see anything in the current pg_extension
or pg_available_extension_versions
catalogs that would suggest such a practice.
Edit 2022-01-08: My question wasn't sufficiently clear. I was specifically talking above about run-time configuration settings (such as can be set and get via current_setting()
and set_config()
). I was not referring to control file parameters, which are neatly described in the official documentation.