On 2015-10-16 09:20:26 -0700, Joe Conway wrote: > One of the problems with this is we would ideally like to know whenever > joe escalates himself to postgres. Right now that is not really possible > without doing untenable things such as logging every statement.
Alternatively you can just have a elevate_user() function that does the logging and escalating? That seems like the same amount of code and it'd work with released versions of postgres? Sure, that has some disandvantages over your approach, but for the presented use case with humans needing to escalate I don't see any. Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers