BUG #14658: psql set autocommit in command line

From: lindner(at)visionet(dot)de
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14658: psql set autocommit in command line
Date: 2017-05-18 08:31:15
Message-ID: 20170518083115.1451.52294@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14658
Logged by: Stefan Lindner
Email address: lindner(at)visionet(dot)de
PostgreSQL version: 9.6.3
Operating system: CentOS 7.2
Description:

We have set AUTOCOMMIT to off in our global psqlrc file.

If I do the following, I can set it to on:
> psql
# \set AUTOCOMMIT on
# \echo :AUTOCOMMIT
on

Now I start psql with command line parameters

> psql --set AUTOCOMMIT on
# \echo :AUTOCOMMIT
off

I expected that the command line --set overrides the global setting in
psqlrc file.

Am I wrong?

And how can I set AUTOCOMMIT to ON per command line if I was wrong?

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Sveinn Sveinsson 2017-05-18 11:57:59 Re: [BUGS] BUG #14657: Server process segmentation fault in v10, May 10th dev snapshot
Previous Message Dilip Kumar 2017-05-18 03:26:40 Re: BUG #14657: Server process segmentation fault in v10, May 10th dev snapshot