X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A5BF8475B85 for ; Mon, 7 Apr 2003 10:57:00 -0400 (EDT) Received: from exchange_geral.intra.cet.pt (unknown [194.65.138.11]) by postgresql.org (Postfix) with ESMTP id 22044474E42 for ; Mon, 7 Apr 2003 10:56:55 -0400 (EDT) Received: from [10.112.80.105] (10.112.80.105 [10.112.80.105]) by exchange_geral.intra.cet.pt with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 2JDCZS23; Mon, 7 Apr 2003 16:06:09 +0100 Subject: set persistent search_path From: Pedro Salazar To: pgsql-admin Content-Type: text/plain Organization: Portugal Telecom Inovação, S.A. Message-Id: <1049727315.1131.48.camel@vitoria.intra.cet.pt> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 07 Apr 2003 15:55:16 +0100 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-10.0 required=5.0 tests=BAYES_10,HEADER_8BITS,USER_AGENT_XIMIAN autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/72 X-Sequence-Number: 8227 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