Re: "\set AUTOCOMMIT off" has affect

From: Andreas Seltenreich <andreas+pg(at)gate450(dot)dyndns(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: "\set AUTOCOMMIT off" has affect
Date: 2006-03-19 10:10:39
Message-ID: andreasmzfmd9sw.fsf@gate450.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Axel Straschil writes:

> I want to disable autocommit, my psqlrc:
>
> SET client_min_messages = 'WARNING';
> SET add_missing_from = false;
> \set AUTOCOMMIT off
>
> it has no effect:
>
> echo "show AUTOCOMMIT" | psql
> SET
> SET
> autocommit
> ------------
> on
> (1 row)
>
> How can I disable autocommit in psqlrc?

It is. You're just looking at the no-op GUC variable instead of the
psql one. Try

\echo :AUTOCOMMIT

instead.

regards,
andreas
--

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Axel Straschil 2006-03-19 10:45:07 Re: "\set AUTOCOMMIT off" has affect
Previous Message Martijn van Oosterhout 2006-03-19 09:56:46 Re: PANIC: heap_update_redo: no block