Re: Small question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jan Wieck <janwieck(at)yahoo(dot)com>
Cc: Joep deVocht <joep(at)masktools(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Small question
Date: 2002-03-22 19:26:34
Message-ID: 3140.1016825194@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jan Wieck <janwieck(at)yahoo(dot)com> writes:
>> It seems like it might be possible for libpq (or other clients) to keep
>> track of the transaction state by paying attention to BEGIN, COMMIT,
>> ABORT command-completion tags and ERROR messages, but I haven't worked
>> through the details.

> PQexec(c, "BEGIN; SELECT now()");

> Will there even be a BEGIN command tag sent?

Yes. PQexec doesn't tell you about it, but one comes through. (This
is certainly true in current sources, and I believe has always been true.)

It'd be nastier if we allowed functions to change the transaction-block
state, but we don't...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jan Wieck 2002-03-22 19:30:00 Re: Small question
Previous Message Bruce Momjian 2002-03-22 19:25:24 Re: Small question