Re: [GENERAL] Using psql on command line - Mailing list pgsql-general

From Jeremiah Davis
Subject Re: [GENERAL] Using psql on command line
Date
Msg-id Pine.3.89.9809041111.A5630-0100000@onramp.freeway.net
Whole thread Raw
In response to Using psql on command line  (Brian <signal@shreve.net>)
List pgsql-general
you should look at the manual for psql.. thats what I just did.. looks
like it would be something like this..

psql -c vacuum <tablename> -d dbName

if you can't find the man file... try the postgres home page.
(www.postgresql.org) or look in pgsql/man/man1/ on your local system...



On Fri, 4 Sep 1998, Brian wrote:

> I would like to run a cron job nightly to vaccuum a few databases, but how
> do you execute from just a command line?  I tried like:
>
> psql mydb < vacuum
> psql mydb | vacuum
>
> etc.
>
> Thanks.
>
> Brian
>
>
> --------------------------------------------------------------------------
> Brian Feeny (BF304)   | ShreveNet Inc. - Premium Internet Service Provider
> Network Administrator | Shreveport, Louisiana - http://www.shreve.net/
> signal@shreve.net     | Web Hosting, Virtual Domains, Storefronts,
> (318)222-2NET x 109   | Database/Web Integration, 56k, ISDN, T1
>
>
>

pgsql-general by date:

Previous
From: Eric Marsden
Date:
Subject: Re: [GENERAL] Using psql on command line
Next
From: Jeremiah Davis
Date:
Subject: Re: [GENERAL] Using psql on command line