agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Gary Stainburn <gary.stainburn@ringways.co.uk>
To: pgsql-sql@postgresql.org
Subject: Re: simple "select / if found" isn't
Date: Fri, 16 Dec 2016 11:24:41 +0000
Message-ID: <201612161124.41580.gary.stainburn@ringways.co.uk> (raw)
In-Reply-To: <20161216111212.edknff56d52bgrjl@hermes.hilbert.loc>
References: <201612161102.37559.gary.stainburn@ringways.co.uk>
	<20161216111212.edknff56d52bgrjl@hermes.hilbert.loc>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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.



-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (6+ messages)  latest in thread

Message-ID: <201612161124.41580.gary.stainburn@ringways.co.uk>
Permalink:  ../201612161124.41580.gary.stainburn@ringways.co.uk/
Also on:    postgresql.org/message-id/201612161124.41580.gary.stainburn@ringways.co.uk

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: gary.stainburn@ringways.co.uk
  Subject: Re: simple "select / if found" isn't
  In-Reply-To: <201612161124.41580.gary.stainburn@ringways.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox