From: | John R Pierce <pierce(at)hogranch(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Unable to select a table as postgres user |
Date: | 2015-10-30 06:15:38 |
Message-ID: | 56330B0A.8070500@hogranch.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 10/29/2015 10:56 PM, rajan wrote:
> I have a database in which tables are created for each user when they create
> an account. These auto generated tables are used for generating analytics
> using a Function. This function is defined as a SECURITY DEFINER. So that
> any user who tries to execute this function will be doing so as a Super
> user.
>
> But it is not working as expected. For Example, When execute the functions
> as User1, I get an error that the User1 is unable to select the table. When
> I execute the functions as postgres user, I still get the same error!!!
>
> Was able to execute the function only after GRANT SELECT on that table.
>
> My question is,
> When I execute the function as a Superuser, How come I get an error on
> Unable to select the table?
to answer this would require seeing the access rights to the table,
schema, and database along with the user
--
john r pierce, recycling bits in santa cruz
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2015-10-30 06:19:56 | Re: Unable to select a table as postgres user |
Previous Message | rajan | 2015-10-30 05:56:32 | Unable to select a table as postgres user |