Re: On login trigger: take three
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Daniel Gustafsson <daniel@yesql.se>, Greg Nancarrow <gregn4422@gmail.com>,
Ivan Panchenko <wao@mail.ru>, Teodor Sigaev <teodor@sigaev.ru>, Ibrar Ahmed <ibrar.ahmad@gmail.com>, vignesh C <vignesh21@gmail.com>, Pavel Stehule <pavel.stehule@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>,
Amit Kapila <amit.kapila16@gmail.com>, Masahiko Sawada <sawada.mshk@gmail.com>
Date: 2022-03-14T13:18:42Z
Lists: pgsql-hackers
On Sun, Mar 13, 2022 at 7:34 PM Andres Freund <andres@anarazel.de> wrote: > IMO the other types of event triggers make it a heck of a lot harder to get > yourself into a situation that you can't get out of... In particular, unless something has changed since I committed this stuff originally, there's no existing type of event trigger than can prevent the superuser from logging in and running DROP EVENT TRIGGER -- or a SELECT on the system catalogs to find out what to drop. That was very much a deliberate decision on my part. I think it's fine to require dropping to single-user mode as a way of recovering from extreme situations where, for example, there are corrupted database files. If we don't need it even then, cool, but if we do, I'm not sad. But all we're talking about here is somebody maybe running a command that perhaps they should not have run. Having to take the whole system down to recover from that seems excessively painful. -- Robert Haas EDB: http://www.enterprisedb.com
Commits
-
Fix some typos in event trigger docs
- 5fce30e77fe1 17.0 landed
-
Use heap_inplace_update() to unset pg_database.dathasloginevt
- 8be93177c46b 17.0 landed
-
Remove the flaky check in event_trigger_login regression test
- 4b885d01f967 17.0 landed
-
Fix instable 006_login_trigger.pl test
- 06be01eb266b 17.0 landed
-
Add support event triggers on authenticated login
- e83d1b0c40cc 17.0 landed
-
Add GUC for temporarily disabling event triggers
- 7750fefdb2b8 17.0 landed
-
Fix typo in reference to __FreeBSD__.
- e52f8b301ed5 16.0 cited
-
Restore robustness of TAP tests that wait for postmaster restart.
- f452aaf7d4a9 14.0 cited
-
Restore the portal-level snapshot after procedure COMMIT/ROLLBACK.
- 84f5c2908dad 14.0 cited