Re: Autocommit for multi call procedure - Mailing list pgadmin-support

From Michael Shapiro
Subject Re: Autocommit for multi call procedure
Date
Msg-id CAGCvxeZmN3bqQ7dEceDSx8Ttfrd2eHz+=snX-o8+QaeDT9vjaw@mail.gmail.com
Whole thread Raw
In response to Re: Autocommit for multi call procedure  (Aditya Toshniwal <aditya.toshniwal@enterprisedb.com>)
Responses Re: Autocommit for multi call procedure  (Trang Le <trang.le@evizi.com>)
List pgadmin-support
It is probably that the COMMIT inside the loop is called more than once. The BEGIN is outside the loop.
Try adding a BEGIN inside the LOOP so that the COMMIT pairs with the BEGIN.

On Mon, Sep 20, 2021 at 12:08 AM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
Hi Trang,

Can you try calling the same from the PSQL tool - https://www.pgadmin.org/docs/pgadmin4/5.7/psql_tool.html if it works ?
Query tool runs queries wrapped inside BEGIN and END. Maybe that is causing the issue.

On Fri, Sep 17, 2021 at 12:20 PM Trang Le <trang.le@evizi.com> wrote:
Hi guys,

I am trying to call 2 stored procedures in a run command that has commit statement. However, I received an error 'Invalid transaction termination'. Could you help me on this issue?

image.png

image.png

Regards,
Trang


--
Thanks,
Aditya Toshniwal
pgAdmin Hacker | Software Architect | edbpostgres.com
"Don't Complain about Heat, Plant a TREE"
Attachment

pgadmin-support by date:

Previous
From: Aditya Toshniwal
Date:
Subject: Re: Autocommit for multi call procedure
Next
From: Trang Le
Date:
Subject: Re: Autocommit for multi call procedure