pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Balkrishna Sharma <b_ki@hotmail.com>
To: alvherre@commandprompt.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Change to 'timing on' globally
Date: Mon, 5 Jul 2010 15:40:47 -0400
Message-ID: <BAY149-w7B72F20DF56F3177081E8F0B10@phx.gbl> (raw)
In-Reply-To: <1278349811-sup-6775@alvh.no-ip.org>
References: <BAY149-w4CD2A104FF9FA0BEADD3AF0B10@phx.gbl>
	<1278349811-sup-6775@alvh.no-ip.org>


Thanks. If I want to do at system-wide level, where do I store the psqlrc file (assuming I want to change the timing behavior system-wide)?
(CentOS 5, Postgres 8.4)
$ ./pg_config --sysconfdir/opt/PostgreSQL/8.4/etc/postgresql
But I don't have /opt/PostgreSQL/8.4/etc/postgresql directory. Just creating the directory and putting a psqlrc file over there does not seem to work.

On a side-note, I observered that timing value in ~/.psqlrc was ignored by psql -c "..." command but not by echo "...."|psqlThought it was strange.



> CC: pgsql-admin@postgresql.org
> Subject: Re: [ADMIN] Change to 'timing on' globally
> From: alvherre@commandprompt.com
> To: b_ki@hotmail.com
> Date: Mon, 5 Jul 2010 13:10:30 -0400
> 
> Excerpts from Balkrishna Sharma's message of lun jul 05 13:00:44 -0400 2010:
> > 
> > I know that we can toggle the timing at session level by using \timing in psql.
> > Is there a way to set the default to 'timing on' globally across the database or atleast across all psql statements by a specificied user ?
> 
> .psqlrc ?
> 
> -- 
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
 		 	   		  
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1=

view thread (6+ messages)  latest in thread

Message-ID: <BAY149-w7B72F20DF56F3177081E8F0B10@phx.gbl>
Permalink:  ../BAY149-w7B72F20DF56F3177081E8F0B10@phx.gbl/
Also on:    postgresql.org/message-id/BAY149-w7B72F20DF56F3177081E8F0B10@phx.gbl

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: b_ki@hotmail.com, alvherre@commandprompt.com
  Subject: Re: Change to 'timing on' globally
  In-Reply-To: <BAY149-w7B72F20DF56F3177081E8F0B10@phx.gbl>
  References: <BAY149-w4CD2A104FF9FA0BEADD3AF0B10@phx.gbl> <1278349811-sup-6775@alvh.no-ip.org> <BAY149-w7B72F20DF56F3177081E8F0B10@phx.gbl>

* 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