Skip site navigation (1) Skip section navigation (2)

Re: pgsql-server/ oc/src/sgml/manage-ag.sgml oc/sr ...

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>,Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>,pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql-server/ oc/src/sgml/manage-ag.sgml oc/sr ...
Date: 2003-03-20 17:39:12
Message-ID: 20030320173912.GE3257@dcc.uchile.cl (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
On Thu, Mar 20, 2003 at 12:33:18PM -0500, Bruce Momjian wrote:
> Alvaro Herrera wrote:
> > On Thu, Mar 20, 2003 at 12:25:03PM -0500, Bruce Momjian wrote:
> > > Alvaro Herrera wrote:
> > > > On Thu, Mar 20, 2003 at 11:58:25AM -0500, Bruce Momjian wrote:
> > > > > That's why I am thinking of some wrapper that will loop through the
> > > > > databases and run psql commands.
> > > > 
> > > > Written on what language?
> > > 
> > > Written in C as a command-line utility.
> > 
> > Then why not use libpq directly?  Seems safer than depending on $PATH
> > and who knows what else.
> 
> I guess you could do it in libpq, but how do you access that from the
> command line.  All these vacuumdb-like utilities are for the command
> line.

The same way dropuser.c and the like are all accessed now.  (Peter
changed the script versions for C versions using libpq, not calling
libpq... I just checked.)

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
We take risks not to escape from life, but to prevent life escaping from us.

In response to

pgsql-hackers by date

Next:From: Michael MeskesDate: 2003-03-20 18:00:57
Subject: Re: Faster NUMERIC implementation
Previous:From: Bruce MomjianDate: 2003-03-20 17:33:18
Subject: Re: pgsql-server/ oc/src/sgml/manage-ag.sgml oc/sr ...

pgsql-committers by date

Next:From: Bruce Momjian - CVSDate: 2003-03-20 18:10:09
Subject: pgsql-server/contrib/pg_autovacuum
Previous:From: Bruce Momjian - CVSDate: 2003-03-20 17:37:46
Subject: pgsql-server/doc/src/sgml/ref pg_ctl-ref.sgml

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group