Well, don't I look stupid here. Once upon a time I recall to have fixed
exactly this issue, apparently it snuck back in.
If you run psql in non-interactive mode the psqlrc file shouldn't be read
at all. Unless people want that flag, but I don't like that better.
Perhaps this is a good time to ask when and how any fix to this should be
applied.
On Wed, 23 Feb 2000, Rolf Grossmann wrote:
> There is another problem with the regression tests: If the user running the
> tests has a .psqlrc file all regression tests fail, because commands from
> that file are echoed to the result file. Additionally, it a transaction
> is started from that file, regression tests fail, because they include tests
> for error cases and a transaction needs to be aborted after an error.
>
> A possible solution would probably be to add a flag to psql that inhibits
> reading the .psqlrc file and using that flag with the regression tests.
>
> On a related note (not a bug of course ;))... would it be possible to add
> some option to psql (or even libpq?) to always keep a transaction active?
>
> Bye, Rolf
>
> ************
>
>
--
Peter Eisentraut Sernanders vaeg 10:115
peter_e@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden