Re: [SQL] simple "select / if found" isn't - Mailing list pgsql-sql

From Gary Stainburn
Subject Re: [SQL] simple "select / if found" isn't
Date
Msg-id 201612161124.41580.gary.stainburn@ringways.co.uk
Whole thread Raw
In response to Re: [SQL] simple "select / if found" isn't  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Responses Re: [SQL] simple "select / if found" isn't
List pgsql-sql
On Friday 16 December 2016 11:12:13 Karsten Hilbert wrote:
> If the function somehow got installed as "security definer"
> and definer does not have RLS-based (!) permissions on
> user_previous_passwords then it won't find rows.
>
> A shot in the dark...
>
> Karsten

Thank you for the reply, but I'm not sure what you mean.

To give more context (which I should have not straight off)

I'm on an old box which is running PoshgreSQL 8.3 for both the server and 
client (psql).

The select from table, create function, and select from function are all 
happening in the same psql sesson, logged in the owner of the database.




pgsql-sql by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: [SQL] simple "select / if found" isn't
Next
From: Karsten Hilbert
Date:
Subject: Re: [SQL] simple "select / if found" isn't