Re: Complex transactions without using plPgSQL Functions. It is possible?

From: Chris Angelico <rosuav(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Complex transactions without using plPgSQL Functions. It is possible?
Date: 2012-03-06 22:48:04
Message-ID: CAPTjJmrYev5vLkg1QbxN_gLuEKwW+NJvWonAaPf70X0Kd2zX=g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Mar 7, 2012 at 9:25 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> In psql, see "\set AUTOCOMMIT off".  In other frontends, it would depend
> on the client-side code whether or how you can do that.
>
> (We once made an attempt to provide this sort of behavioral option on
> the server side; but it was a complete disaster from the client
> compatibility standpoint, and was soon, um, rolled back.)

I'm talking about using the application-level protocols (eg the pg_*
functions in PHP), so it's your second option. And yeah, I see your
point. Major compat issues. Well, at least the libpqxx library can
solve that one!

ChrisA

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ondrej Ivanič 2012-03-06 23:31:14 replication between US <-> EU
Previous Message Tom Lane 2012-03-06 22:25:19 Re: Complex transactions without using plPgSQL Functions. It is possible?