| From: | Charles Clavadetscher <clavadetscher(at)swisspug(dot)org> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Unable to select a table as postgres user |
| Date: | 2015-10-30 07:22:03 |
| Message-ID: | 56331A9B.9030309@swisspug.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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.
>
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | rajan | 2015-10-30 09:27:08 | Re: Unable to select a table as postgres user |
| Previous Message | Pavel Stehule | 2015-10-30 07:17:04 | Re: Unable to select a table as postgres user |