Re: [GENERAL] PostgreSQL EndTransactionBlock and not inprogress/abort state

From: Clark Evans <clark(dot)evans(at)manhattanproject(dot)com>
To: Manuel Lemos <mlemos(at)acm(dot)org>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] PostgreSQL EndTransactionBlock and not inprogress/abort state
Date: 1999-03-14 07:18:13
Message-ID: 36EB62B5.87B9638F@manhattanproject.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Manuel Lemos wrote:
>
> Hello,
>
> I am trying to use transactions with PostgreSQL with the normal sequence
>
> BEGIN
> one or more SELECT/INSERT/UPDATE/DELETE queries
> COMMIT
> END
>
> But I am getting the following message just like if I haven't started a
> transaction when I commit.
>
> EndTransactionBlock and not inprogress/abort state
>

I could be wrong, but the END isn't necessary.

BEGIN
....
COMMIT;

<or>

BEGIN
....
ROLLBACK;

Hope this helps,

Clark

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Clark Evans 1999-03-14 07:23:53 Re: [GENERAL] PostgreSQL EndTransactionBlock and not inprogress/abort state
Previous Message Clark Evans 1999-03-14 07:16:12 Re: [GENERAL] Negating the list of selected rows of a join