Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 23rd, 2005, 02:24 AM
ruben
Guest
 
Posts: n/a
Default current transaction is aborted, commands ignored until end of transactionblock

Hi:

After upgrading 7.4.2 to 7.4.5 quite smoothly in a Red Hat 8.0 box, we
are having intermitent issues with certain online PHP transactions,
returning this error:

"Warning: pg_exec() query failed: ERROR: current transaction is aborted,
commands ignored until end of transaction block"

Half the times we run the query we get the error, the other half it works.

Any ideas? Thanks.



---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

  #2  
Old November 23rd, 2005, 02:24 AM
Michael Fuhr
Guest
 
Posts: n/a
Default Re: current transaction is aborted, commands ignored until end of transaction block

On Tue, Oct 05, 2004 at 07:54:23AM +0200, ruben wrote:
[color=blue]
> After upgrading 7.4.2 to 7.4.5 quite smoothly in a Red Hat 8.0 box, we
> are having intermitent issues with certain online PHP transactions,
> returning this error:
>
> "Warning: pg_exec() query failed: ERROR: current transaction is aborted,
> commands ignored until end of transaction block"[/color]

Some previous query in this transaction has failed. Are there other
error messages before this one? What queries preceded the one that
gives this error?
[color=blue]
> Half the times we run the query we get the error, the other half it works.[/color]

By "half" do you mean exactly 50% of the time, or are you approximating?
Can you identify anything common to the successful transactions that's
different from the failed transactions?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

  #3  
Old November 23rd, 2005, 02:24 AM
ruben20@superguai.com
Guest
 
Posts: n/a
Default Re: current transaction is aborted, commands ignored until

Hi Michael:

Michael Fuhr wrote:
[color=blue][color=green]
>>After upgrading 7.4.2 to 7.4.5 quite smoothly in a Red Hat 8.0 box, we
>>are having intermitent issues with certain online PHP transactions,
>>returning this error:
>>
>>"Warning: pg_exec() query failed: ERROR: current transaction is aborted,
>>commands ignored until end of transaction block"[/color]
>
>
> Some previous query in this transaction has failed. Are there other
> error messages before this one? What queries preceded the one that
> gives this error?[/color]

Yes, there is some incompatibility between 7.4.2 and 7.4.5 with INT type
comparisons, not allowing (7.4.5) something like "WHERE int_field = ''",
so the same transaction failed before the error reported with this one:

Warning: pg_exec() query failed: ERROR: invalid input syntax for integer: ""
[color=blue][color=green]
>>Half the times we run the query we get the error, the other half it works.[/color]
>
> By "half" do you mean exactly 50% of the time, or are you approximating?
> Can you identify anything common to the successful transactions that's
> different from the failed transactions?[/color]

I was approximating. The transaction is exactly the same, I just click
on "UPDATE" button on the web browser and sometimes it worked and
sometimes not.

Thanks a lot.
Ruben.



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles