1

I want to turn the standard_conforming_strings off in postgresql. I enter the command "set standard_conforming_strings=off;" and then check it with "show standard_conforming_strings;" and everything is ok. When I quit and then open the client again the setting is switched back to on.

How can I permanently turn it off ?

2 Answers 2

2

Settings in Postgresql can be made on three levels:

  1. As you have already discovered, you can change individual settings on a session basis using set.

  2. You can set parameters persistently on a per-user basis using the ALTER ROLE command. This can be set for a single database or for all databases in the server.

  3. To change settings on a global basis, persistently for all users, you can edit postgresql.conf. Later versions of postgresql also allow changing global config via the ALTER SYSTEM command. In addition, global configuration overrides can be made by adding command line options when starting the server.

Not all parameters can be changed per session or per user.

Changes to postgresql.conf will not take effect until you reload the server (pg_ctl reload, or via appropriate system init command). Some parameters require a complete restart to take effect.

This manual page describes the different methods in more detail.

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

Comments

1

In postgresql.conf you set

standard_conforming_strings=off

and load new conf with

pg_ctl reload

as in docs: http://www.postgresql.org/docs/9.2/static/config-setting.html

1 Comment

Thanks, I restarted the pc instead of executing the second command (because it asked to install postgres-xc) and it worked !

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.