pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
set persistent search_path
2+ messages / 2 participants
[nested] [flat]

* set persistent search_path
@ 2003-04-07 14:55  Pedro Salazar <pedro-b-salazar@ptinovacao.pt>
  0 siblings, 1 reply; 2+ messages in thread

From: Pedro Salazar @ 2003-04-07 14:55 UTC (permalink / raw)
  To: pgsql-admin

Greetings,

I created a user with read-only access to a schema of another user. My
functions work with anonymous tables (I mean, there is no prefix of the
schema), and when I invoke those functions, I got errors about not
knowing the relations (tables).

How can I change the search_path in a persistent way for a read-only
user that not owns the schema, to avoid set it in every session?

I even don't know if the set search_path works at run-time, but even
with that, it's annoying put it on the top of each function...

thanks,
Pedro Salazar.
-- 
PS
pedro-b-salazar@ptinovacao.pt
PGP:0E129E31D803BC61




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: set persistent search_path
@ 2003-04-07 15:00  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Pedro Salazar <pedro-b-salazar@ptinovacao.pt>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2003-04-07 15:00 UTC (permalink / raw)
  To: Pedro Salazar <pedro-b-salazar@ptinovacao.pt>; +Cc: pgsql-admin

Pedro Salazar <pedro-b-salazar@ptinovacao.pt> writes:
> How can I change the search_path in a persistent way for a read-only
> user that not owns the schema, to avoid set it in every session?

See "ALTER USER SET variable".

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-04-07 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-07 14:55 set persistent search_path Pedro Salazar <pedro-b-salazar@ptinovacao.pt>
2003-04-07 15:00 ` Tom Lane <tgl@sss.pgh.pa.us>

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