public inbox for [email protected]
help / color / mirror / Atom feedFrom: Sándor Daku <[email protected]>
To: [email protected]
Cc: general pgsql <[email protected]>
Subject: Re: ERROR: stack depth limit exceeded
Date: Wed, 19 Feb 2025 17:09:01 +0100
Message-ID: <CAKyoTgbn_sdCZig9G9vjCXtMHeO0M8W=nHsrR_-bfjrHuRY1rA@mail.gmail.com> (raw)
In-Reply-To: <CAONhAovH30MLh+KCGxjuZW+YSoVTGrHLjGpa31OqM72Rq0HYvg@mail.gmail.com>
References: <CAONhAovOas_XLigiebcfL5_q9M2iCHwG5hkYQk0L0qh_8RoQEw@mail.gmail.com>
<[email protected]>
<CAONhAovH30MLh+KCGxjuZW+YSoVTGrHLjGpa31OqM72Rq0HYvg@mail.gmail.com>
On Wed, 19 Feb 2025 at 16:49, Csányi Pál <[email protected]> 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
view thread (5+ 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], [email protected]
Subject: Re: ERROR: stack depth limit exceeded
In-Reply-To: <CAKyoTgbn_sdCZig9G9vjCXtMHeO0M8W=nHsrR_-bfjrHuRY1rA@mail.gmail.com>
* 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