pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-admin@postgresql.org
Subject: Re: SET search path
Date: Mon, 31 Oct 2011 11:14:45 +0300
Message-ID: <201110311014.45633.achill@matrix.gatewaynet.com> (raw)
In-Reply-To: <04DA5C9AF2453F44ACD4541A08EFE9832FFC005000@MUSCA.onmobile.com>
References: <04DA5C9AF2453F44ACD4541A08EFE9832FFC005000@MUSCA.onmobile.com>

Στις Sunday 30 October 2011 12:34:38 ο/η Akash Kodibail έγραψε:
> Hi,
> 
> I am using postgresql 8.4.0
> 
> Select version() gives:
> 
> PostgreSQL 8.4.0 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-10), 64-bit
> 
> I have trying to set search path, so that I do not have to append the schema_name while doing a select on the tables, however, when I do so, the search_path is set only for that session, it is not a permanent change that is done. Can you please guide me as to how to make it permanent.
> 
> After I do a set search_path, pg_user view does not show any entry in the column "useconfig" for the same being set.
> 
As superuser
ALTER user username set search_path TO "$user",someschema,public ; 
works in 8.3 and 9.*

> Regards,
> Akash.
> 
> ________________________________
> DISCLAIMER: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Further, this e-mail may contain viruses and all reasonable precaution to minimize the risk arising there from is taken by OnMobile. OnMobile is not liable for any damage sustained by you as a result of any virus in this e-mail. All applicable virus checks should be carried out by you before opening this e-mail or any attachment thereto.
> Thank you - OnMobile Global Limited.
> 



-- 
Achilleas Mantzios



view thread (4+ messages)  latest in thread

Message-ID: <201110311014.45633.achill@matrix.gatewaynet.com>
Permalink:  ../201110311014.45633.achill@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/201110311014.45633.achill@matrix.gatewaynet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: achill@matrix.gatewaynet.com
  Subject: Re: SET search path
  In-Reply-To: <201110311014.45633.achill@matrix.gatewaynet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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