Re: On login trigger: take three
От | Robert Haas |
---|---|
Тема | Re: On login trigger: take three |
Дата | |
Msg-id | CA+TgmoY4CsW06e+3_zCO1FgkZntijscQb34KTokMJixdAdjWXg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: On login trigger: take three (Alexander Korotkov <aekorotkov@gmail.com>) |
Ответы |
Re: On login trigger: take three
|
Список | pgsql-hackers |
On Tue, Oct 10, 2023 at 3:43 PM Alexander Korotkov <aekorotkov@gmail.com> wrote: > Yep, in v43 it worked that way. One transaction has to wait for > another finishing update of pg_database tuple, then fails. This is > obviously ridiculous. Since overlapping setters of flag will have to > wait anyway, I changed lock mode in v44 for them to > AccessExclusiveLock. Now, waiting transaction then sees the updated > tuple and doesn't fail. Doesn't that mean that if you create the first login trigger in a database and leave the transaction open, nobody can connect to that database until the transaction ends? -- Robert Haas EDB: http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления: