From: Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
To: Zhihong Yu <zyu@yugabyte.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
To: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: On login trigger: take three
Date: Thu, 17 Dec 2020 16:05:18 +0300
Message-ID: <f12822b8-8a92-5d59-222f-717040800bb9@postgrespro.ru> (raw)
In-Reply-To: <CALNJ-vQK2V1op-kEYmwo=3wW4sx7G7ngY58x0OOQELn=Y5KG3w@mail.gmail.com>
References: <CALNJ-vQK2V1op-kEYmwo=3wW4sx7G7ngY58x0OOQELn=Y5KG3w@mail.gmail.com>
Hi,
On 17.12.2020 3:31, Zhihong Yu wrote:
> Hi,
> For EventTriggerOnConnect():
>
> + PG_CATCH();
> + {
> ...
> + AbortCurrentTransaction();
> + return;
>
> Should runlist be freed in the catch block ?
No need: it is allocated in transaction memory context and removed on
transaction abort.
>
> + gettext_noop("In case of errors in the ON
> client_connection EVENT TRIGGER procedure, this parameter can be used
> to disable trigger activation and provide access to the database."),
>
> I think the text should be on two lines (current line too long).
Thank you, fixed.
--
Konstantin Knizhnik
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: k.knizhnik@postgrespro.ru, zyu@yugabyte.com, pavel.stehule@gmail.com
Subject: Re: On login trigger: take three
In-Reply-To: <f12822b8-8a92-5d59-222f-717040800bb9@postgrespro.ru>
References: <CALNJ-vQK2V1op-kEYmwo=3wW4sx7G7ngY58x0OOQELn=Y5KG3w@mail.gmail.com> <f12822b8-8a92-5d59-222f-717040800bb9@postgrespro.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox