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

From Alvaro Herrera
Subject Re: pgsql-server/ oc/src/sgml/manage-ag.sgml oc/sr ...
Date
Msg-id 20030320173912.GE3257@dcc.uchile.cl
Whole thread Raw
In response to Re: pgsql-server/ oc/src/sgml/manage-ag.sgml oc/sr ...  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-committers
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.

pgsql-committers by date:

Previous
From: momjian@postgresql.org (Bruce Momjian - CVS)
Date:
Subject: pgsql-server/doc/src/sgml/ref pg_ctl-ref.sgml
Next
From: momjian@postgresql.org (Bruce Momjian - CVS)
Date:
Subject: pgsql-server/contrib/pg_autovacuum