From: | Csányi Pál <csanyipal(at)gmail(dot)com> |
---|---|
To: | Sándor Daku <daku(dot)sandor(at)gmail(dot)com> |
Cc: | general pgsql <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: ERROR: stack depth limit exceeded |
Date: | 2025-02-19 16:13:48 |
Message-ID: | CAONhAoujvTpeyAKJztmUHgw3M3D7QYgEKmhcC-vtypgHUB19mg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Sándor Daku <daku(dot)sandor(at)gmail(dot)com> ezt írta (időpont: 2025. febr.
19., Sze, 17:09):
>
>
>
> On Wed, 19 Feb 2025 at 16:49, Csányi Pál <csanyipal(at)gmail(dot)com> wrote:
>>
>> Indeed I did, the trigger should have been assigned on
>> javaink_forgalma table, not on havonkenti_megtakaritasaink table.
>> Actually, this trigger has been assigned on both tables so far, and I
>> just deleted it from the havonkenti_megtakaritasaink table by using
>> PgAdmin4.
>>
>> Now that I only have this trigger assigned on the javaink_forgalma
>> table, an INSERT command into this table will activate the trigger
>> function, which will then insert a new row in the
>> havonkenti_megtakaritasaink table.
>>
>> However, by copying the code between BEGIN and END from the trigger
>> function, and inserting it into the Query tool and then running this
>> code there, it should insert a line in the havonkenti_megtakaritasaink
>> table.
>>
>> But here I got the error message mentioned above. Hey! But now this
>> code snippet ran without any errors! So what happened here?
>>
>> Thanks for all the advice!
>>
>> --
>> Best wishes by Paul Chanyi!
>>
>
> Hi Pál,
>
> I'm not sure that I follow the timeline correctly, but if the code snippet works now after deleting the trigger on havonkenti_megtakaritasaink then nothing to see here.
> Before that the trigger activating on insert into havonkenti_megtakaritasaink inserted a record into havonkenti_megtakaritasaink which activated the trigger again and this continued until it ran into the max_stack_depth wall.
>
> Regards,
> Sándor
Hi Sándor,
Thank you very much to you and everyone else who helped me solve this problem!
--
Best wishes by Paul Chanyi!
From | Date | Subject | |
---|---|---|---|
Next Message | richard | 2025-02-19 18:55:32 | Re: In-place upgrade with streaming replicas |
Previous Message | Adrian Klaver | 2025-02-19 16:11:37 | Re: AW: PGDG PostgreSQL Debian package: Question on conditions for creation of new cluster |