Skip site navigation (1) Skip section navigation (2)

[HACKERS] Transaction abortions & recovery handling

From: Ed Loehr <eloehr(at)austin(dot)rr(dot)com>
To: pghackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: [HACKERS] Transaction abortions & recovery handling
Date: 2000-03-08 17:19:18
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Using perl DBI, I would like to catch a backend error and, if the
pgsql error string matches a particular regex (/ExecInitIndexScan:
both left and right op's are rel-vars/), vacuum on the fly and
immediately resubmit the query within the same transaction. 
[Vacuuming has sometimes worked as a temporary fix to the problem.]

The immediate problem seems to be that once the backend fails on a
query within a transaction, the client is not permitted to do any more
queries within that transaction, giving this msg:

	NOTICE:  (transaction aborted): queries ignored until END

Any suggestions on how I might handle this? 

Ed Loehr


pgsql-hackers by date

Next:From: Patrick WelcheDate: 2000-03-08 18:58:28
Subject: Re: [HACKERS] alter_table.sql
Previous:From: Keith ParksDate: 2000-03-08 16:52:25
Subject: Regression test failure (runcheck)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group