Re: Autocommit for multi call procedure

Поиск
Список
Период
Сортировка
От Michael Shapiro
Тема Re: Autocommit for multi call procedure
Дата
Msg-id CAGCvxeZmN3bqQ7dEceDSx8Ttfrd2eHz+=snX-o8+QaeDT9vjaw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Autocommit for multi call procedure  (Aditya Toshniwal <aditya.toshniwal@enterprisedb.com>)
Ответы Re: Autocommit for multi call procedure  (Trang Le <trang.le@evizi.com>)
Список 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"
Вложения

В списке pgadmin-support по дате отправления:

Предыдущее
От: Aditya Toshniwal
Дата:
Сообщение: Re: Autocommit for multi call procedure
Следующее
От: Trang Le
Дата:
Сообщение: Re: Autocommit for multi call procedure