Re: Unable to select a table as postgres user - Mailing list pgsql-general

From Charles Clavadetscher
Subject Re: Unable to select a table as postgres user
Date
Msg-id 56331A9B.9030309@swisspug.org
Whole thread Raw
In response to Re: Unable to select a table as postgres user  (rajan <vgmonnet@gmail.com>)
Responses Re: Unable to select a table as postgres user
List pgsql-general
Hi

What error do you get?

- Permission denied or table does not exist? Latter would indicate a
problem with the search_path and you should fully qualify the table name
in the function body.

- Did you create the function as postgres user?

Bye
Charles

On 30/10/2015 07:56, rajan wrote:
> Yes. I agree that the superuser cannot be restricted with any access.
>
> But my scenarios is, I am executing a function(VOLATILE SECURITY DEFINER)
> using the superuser and it function fails with unable to select a particular
> table.
>
> At the same time, I am able to select the table as a superuser, by executing
> select * from table_name;
>
>
>
> --
> View this message in context:
http://postgresql.nabble.com/Unable-to-select-a-table-as-postgres-user-tp5872036p5872041.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>


pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Unable to select a table as postgres user
Next
From: rajan
Date:
Subject: Re: Unable to select a table as postgres user