Re: [BUGS] BUG #14658: psql set autocommit in command line - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] BUG #14658: psql set autocommit in command line
Date
Msg-id 16058.1495114850@sss.pgh.pa.us
Whole thread Raw
In response to [BUGS] BUG #14658: psql set autocommit in command line  (lindner@visionet.de)
List pgsql-bugs
lindner@visionet.de writes:
> I expected that the command line --set overrides the global setting in
> psqlrc file.
> Am I wrong?

Yes.  The command line switches are processed first, then the rc file.
Since the rc file might contain arbitrary commands, it really can't
be processed until psql is fully "open for business", that is has
completed all setup tasks.

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

A brute-force way is --no-psqlrc.
        regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: Sveinn Sveinsson
Date:
Subject: Re: [BUGS] BUG #14657: Server process segmentation fault in v10, May10th dev snapshot
Next
From: Stefan Lindner
Date:
Subject: Re: [BUGS] BUG #14658: psql set autocommit in command line