Re: Intermittent errors when fetching cursor rows on PostgreSQL 16

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Enrico Schenone <eschenone(at)cleistech(dot)it>, pgsql-general(at)lists(dot)postgresql(dot)org
Cc: Massimo Catti <mcatti(at)cleistech(dot)it>, Livio Pizzolo <lpizzolo(at)cleistech(dot)it>
Subject: Re: Intermittent errors when fetching cursor rows on PostgreSQL 16
Date: 2025-01-13 16:19:11
Message-ID: cdfa3e0c-a5cc-4f29-bcb7-72056ae03f1e@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/13/25 00:45, Enrico Schenone wrote:
> Hello, Adrian.
> As I said days ago, I have arranged a kind of stress test in production
> environment.
> I wrote a program that loads a temporary table, loads 2049 rows into
> them from a baseline_table and finally declare two nested cursors.
> The first cursor is on the temp table as parent while the second is on a
> lookup table as child.
>
> The program logic is the transposition of one fragment of several
> production programs that was failing on cursors, and has to be intended
> as a POC only.
>

> And Well, I'm quite confused: no error at all has been detected, not
> only on the test programs but in the whole production system. The error
> was completely disappeared.
>
> Then I have stopped the four tasks of the stress test leaving all other
> services running for a week, and again no error at all.
>
> No setup was changed nor servers was rebooted, nor infrastructure has
> been upgraded during the test period.

You are absolutely sure about the above?

>
> As a result, at the moment I'm not understood not only Why & Where the
> error was occurring, but also Why it is disappeared.

Errors that 'fix' themselves are the most frustrating kind, as you know
in the back of your mind they will likely pop up again.

>
> Anyone may feel free to give me his opinion.
> For the moment I'll make no other test unless the error is knocking back
> to my door.

That is all you can do.

>
> *Enrico Schenone*
> Software Architect
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Justin 2025-01-13 16:45:25 Re: Need help in logical replication
Previous Message hubert depesz lubaczewski 2025-01-13 15:42:56 Re: About PostgreSQL Query Plan