News for hackers. Stuff that matters.
Re:PostgreSQL is the worlds’ best database by chatmasta on Friday April 03, 2020 @08:38AM (#22768549)
Not necessarily. You can SET ROLE at beginning of transaction and DISCARD afterward. This is what postgraphile and postgrest do, for example.
Re:PostgreSQL is the worlds’ best database by remus on Friday April 03, 2020 @04:55PM (#22773866)
Oh cool, I didn't know that. Good to learn!
Re:PostgreSQL is the worlds’ best database by steve-chavez on Friday April 03, 2020 @11:51AM (#22770476)
postgrest actually does a `SET LOCAL ROLE`(transaction scoped, so no need to DISCARD), but yes, that's the gist of it.