Using psql on command line

From: Brian <signal(at)shreve(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Using psql on command line
Date: 1998-09-04 14:58:16
Message-ID: Pine.LNX.4.02.9809040955210.5167-100000@mercury.shreve.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(at)shreve(dot)net | Web Hosting, Virtual Domains, Storefronts,
(318)222-2NET x 109 | Database/Web Integration, 56k, ISDN, T1

Responses

Browse pgsql-general by date

  From Date Subject
Next Message The Hermit Hacker 1998-09-04 15:01:27 Re: [HACKERS] Re: CIDR/IP types. Was: [GENERAL] big numbers]
Previous Message Thomas G. Lockhart 1998-09-04 14:54:20 Re: [HACKERS] Re: CIDR/IP types. Was: [GENERAL] big numbers]