Re: [GENERAL] PostgreSQL EndTransactionBlock and not inprogress/abort state - Mailing list pgsql-general

From Clark Evans
Subject Re: [GENERAL] PostgreSQL EndTransactionBlock and not inprogress/abort state
Date
Msg-id 36EB6409.707BA66F@manhattanproject.com
Whole thread Raw
In response to PostgreSQL EndTransactionBlock and not inprogress/abort state  ("Manuel Lemos" <mlemos@acm.org>)
List pgsql-general
Clark Evans wrote:
>
> 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
> >

Oops! forgot the semicolon.  *whap*

>
  BEGIN;
>  ....
> COMMIT;
>
>   <or>
>
  BEGIN;
>   ....
> ROLLBACK;
>

BTW, are you putting on the "END" beacuse you are in a
PL/pgsql block?  If so, I'm not sure if transactions
can work inside this language.  Hmm.

Clark

pgsql-general by date:

Previous
From: Clark Evans
Date:
Subject: Re: [GENERAL] PostgreSQL EndTransactionBlock and not inprogress/abort state
Next
From: Ulf Mehlig
Date:
Subject: Re: [GENERAL] Negating the list of selected rows of a join