0

I am aware of the below command:

ALTER DATABASE name SET configuration_parameter { TO | = } { value | DEFAULT }

On server restart, will these be overwritten by the parameter set in postgresql.conf

2 Answers 2

1

The order of settings is like this:

  • If there is a user setting, take that.

  • If there is a database setting but no user setting, take that.

  • Else, take the default setting.

Sign up to request clarification or add additional context in comments.

2 Comments

session - user - database - system - postgres.conf
True. I bundled the last two as "default".
0

https://www.postgresql.org/docs/current/static/sql-alterdatabase.html

Set this database's session default for the specified configuration parameter to the given value.

so If configuration_parameter is set for database it overrides the postgres.conf. It should persist after db restart, yes

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.