I am trying to create a script for changing settings in PostgreSQL and then reloading config
I need to change by script, the parameter value from something which was before, to "all" ;
I've tried the following:
/xxxxx/../../bin/psql -U postgres -c "ALTER SYSTEM SET log_statement TO 'all';
seems it doesn't work
After, I need to restart the service, where I will have to make su - postgres And run following command
/xxxxx/../../bin/pg_ctl reload -D /xxxx/folder_of_postgres_conf file
Any ideas on how to write the parameter change command?
'at the end"