|
Home > Archive > PostgreSQL SQL > May 2005 > Permissions + Views + Functions = relation not exist when not owner
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Permissions + Views + Functions = relation not exist when not owner
|
|
|
| HI!
I got a View which calls function which uses table.
It works fine when selecting from view by owner (postgres) of table,
function and view.
Problem is when another user is sellecting view. There is an error:
ERROR: relation "XXX" does not exist
CONTEXT: PL/pgSQL function "XXX" line 4 at select into variables
User has rights to select from view, use schema AND function is declared as
IMMUTABLE
CALLED ON NULL INPUT
SECURITY DEFINER
It is strange it looks like problem with permission but error is not about
permissions. Calling function directly also produces error. Functions and
Views are in separate schema but tables are in "public". Any idea why this
is happening?
Using pg7.4.6
Martin Domanski
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere
" to majordomo@postgresql
.org)
| |
| Tom Lane 2005-05-25, 9:23 am |
| "Adie" <adie_xp@klub.chip.pl> writes:
> I got a View which calls function which uses table.
> It works fine when selecting from view by owner (postgres) of table,
> function and view.
> Problem is when another user is sellecting view. There is an error:
> ERROR: relation "XXX" does not exist
Perhaps the other user is running with a different search_path setting?
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql
.org so that your
message can get through to the mailing list cleanly
|
|
|
|
|