Re: [HACKERS] RLS and LEAKPROOF functions

2015-11-14 Thread Noah Misch
On Tue, Aug 11, 2015 at 09:27:17AM -0500, Ted Toth wrote: > I built an index on a jsonb column of a table with RLS enabled but it > was not being used. Turns out the the function jsonb_contains needed > to be LEAKPROOF (thanks Joe Conway). However I do not actually know if > jsonb_contains is LEAKP

[HACKERS] RLS and LEAKPROOF functions

2015-08-11 Thread Ted Toth
I built an index on a jsonb column of a table with RLS enabled but it was not being used. Turns out the the function jsonb_contains needed to be LEAKPROOF (thanks Joe Conway). However I do not actually know if jsonb_contains is LEAKPROOF. Who's responsibility is it to insure functions are leakproof