Re: Autocommit for multi call procedure

From: Trang Le <trang(dot)le(at)evizi(dot)com>
To: Michael Shapiro <mshapiro51(at)gmail(dot)com>
Cc: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>, "pgadmin-support lists(dot)postgresql(dot)org" <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: Re: Autocommit for multi call procedure
Date: 2021-09-21 00:44:55
Message-ID: CAFfZjTgb6VRtTo4r1DDSk9RX1DvVhS0tkg4difrLRq+QFqjjYg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgadmin-support

Hi Michael,

I already add sublock begin end and it have the same issue.

Regards,
Trang

On Mon, Sep 20, 2021 at 7:33 PM Michael Shapiro <mshapiro51(at)gmail(dot)com>
wrote:

> 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(dot)toshniwal(at)enterprisedb(dot)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(dot)le(at)evizi(dot)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: image.png]
>>>
>>> [image: image.png]
>>>
>>> Regards,
>>> Trang
>>>
>>
>>
>> --
>> Thanks,
>> Aditya Toshniwal
>> pgAdmin Hacker | Software Architect | *edbpostgres.com*
>> <http://edbpostgres.com>
>> "Don't Complain about Heat, Plant a TREE"
>>
>

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2021-09-21 06:32:07 Re: [pgAdmin][RM-6687]: [React] Port Grant Wizard to react
Previous Message Akshay Joshi 2021-09-20 14:43:22 pgAdmin 4 commit: Added PG/EPAS 14 binary path entry in the preferences

Browse pgadmin-support by date

  From Date Subject
Next Message Jerome O'Neil 2021-09-28 16:48:31 Feature Requests
Previous Message Michael Shapiro 2021-09-20 12:33:05 Re: Autocommit for multi call procedure