Re: psql and autocommit

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tsirkin Evgeny <tsurkin(at)mail(dot)jct(dot)ac(dot)il>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: psql and autocommit
Date: 2004-08-23 18:53:07
Message-ID: 9814.1093287187@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tsirkin Evgeny <tsurkin(at)mail(dot)jct(dot)ac(dot)il> writes:
> I am using 7.3.4
> while executing psql -c the query is not commited
> that is probably because i have setted the autocommit = false
> However that is very unheandy - i have to add begin and
> commit to my shell scripts.

You have found one of the reasons we decided server-side autocommit was
evil ...

> Is there a way to avoid this ?

Use 7.4. Note that autocommit is a psql feature not a server setting
in 7.4.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Thomas Wegner 2004-08-23 19:13:41 .pgpass and win32
Previous Message Naomi Walker 2004-08-23 16:22:39 Re: mySQL to postgreSQL: Request for pointers to perl/phpresources for app conversion.