Re: Wich program generates "list index out of range" ? pgadmin or the server ?

From: Steve Midgley <science(at)misuse(dot)org>
To: intmail01 <intmail01(at)gmail(dot)com>
Cc: pgsql-sql(at)lists(dot)postgresql(dot)org
Subject: Re: Wich program generates "list index out of range" ? pgadmin or the server ?
Date: 2023-12-19 16:50:34
Message-ID: CAJexoS+vv429_P78oEVjsEbdAqX85w9pyLzh3T7nkHv-2ptKFA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, Dec 19, 2023 at 12:23 AM intmail01 <intmail01(at)gmail(dot)com> wrote:

> Hi,
>
> My db have some complex triggers and it failed when inserting line.
> I use Pgadmin and it display message "list index out of range".
> Could someone tell me which program is responsible of this message,
> pgadmin or the remote server ?
>
>
I'm not sure where it's coming from but it likely means that your query is
not returning any results, or a subquery is not returning results. Pgadmin
itself won't care if your resultset is zero rows, but something internal to
your query could be causing this. I'm guessing your complex triggers or
related insert statement is dependent on a value which is not being
returned as needed. But others here with deeper expertise may have better
input for you. For me, I'd recommend trying to examine the different pieces
of the trigger function and the insert function separately to try to locate
the source more precisely..

Steve

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message hubert depesz lubaczewski 2023-12-20 10:26:05 Re: Wich program generates "list index out of range" ? pgadmin or the server ?
Previous Message intmail01 2023-12-19 08:26:46 Wich program generates "list index out of range" ? pgadmin or the server ?