Re: [HACKERS] [PATCH] A hook for session start
От | Robert Haas |
---|---|
Тема | Re: [HACKERS] [PATCH] A hook for session start |
Дата | |
Msg-id | CA+TgmobqM_TXb=0Gq8E02sFVacEiasetY1Ts9J2q18KUawTEFA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [HACKERS] [PATCH] A hook for session start (Craig Ringer <craig@2ndquadrant.com>) |
Ответы |
Re: [HACKERS] [PATCH] A hook for session start
Re: [HACKERS] [PATCH] A hook for session start |
Список | pgsql-hackers |
On Fri, Jul 21, 2017 at 11:10 AM, Craig Ringer <craig@2ndquadrant.com> wrote: > Don't we have that timestamp already? > > What practical use cases are there for acting post-auth but that can't wait > until the user tries to do something? Have, yes; record, no. > Can a user do anything remotely interesting or useful without hitting either > ExecutorStart_hook or ProcessUtility_hook? They can parse queries I guess > but you could just set your hook up in the parser instead. If you hook the > parser all they can do is open an idle session and sit there... That's an exceedingly-weak argument for rejecting this patch. The fact that you can probably hack around the lack of a hook for most reasonable use cases is not an argument for having a hook that does what people actually want to do. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления: