public inbox for [email protected]  
help / color / mirror / Atom feed
From: [email protected] <[email protected]>
To: Pgsql-general <[email protected]>
To: Laurenz Albe <[email protected]>
Subject: Re:  Error while updating a table
Date: Sat, 19 Apr 2025 13:06:27 +0000 (UTC)
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>

 Thanks Laurenz,
> it is 100% clear that an earlier statement in the same transaction musthave got an error.  Write your application so that it logs *every* error
that comes from the database, then you are sure to catch that error.

There is an option to log every sql statement that's executed from the application.  Unfortunately, that option was not set at that time.   Even I enable it now, I can't figure out that error.   By any chance, if I get that statement, what should I do?  What are the Steps (or documentation) to correct this issue?
Happiness Always
BKR Sivaprakash
    On Saturday 19 April, 2025 at 06:25:37 pm IST, Laurenz Albe <[email protected]> wrote:  
 
 On Sat, 2025-04-19 at 12:38 +0000, [email protected] wrote:
> So far, I couldn't find the query that caused the error.   Is there any way to unlock it?  
> 
> Re-start, Format and fresh install of windows, etc. ?

On Windows you have to reboot, bow three times toward sunset,
say a prayer to Bill Gates, then reboot again.

No, seriously: randomly messing around with your machine rarely ever
gets you closer to a solution.

If you get the error

  current transaction is aborted, commands ignored until end of transaction block

it is 100% clear that an earlier statement in the same transaction must
have got an error.  Write your application so that it logs *every* error
that comes from the database, then you are sure to catch that error.

Also, if "log_min_messages" is "warning" (the default) or "error", you
will find the error in the PostgreSQL log.  That's all I can say to you.

Yours,
Laurenz Albe


  

view thread (7+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re:  Error while updating a table
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox