Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The access control portion is not clear to me: `current_user_organization_id()` where is this reading from? We tried using `set_config` https://www.postgresql.org/docs/current/functions-admin.html and it was incredibly slow, it was not designed for how we were using which was included connection pooling and each query ran a difference "current_user_id" set_config.


After asking myself the same (i guess) it seems like setting a “session” beforehand is the key https://www.postgresql.org/docs/current/sql-set.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: