X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 423BED1B43C for ; Mon, 29 Dec 2003 20:58:50 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 77448-09 for ; Mon, 29 Dec 2003 16:58:02 -0400 (AST) Received: from goose.mail.pas.earthlink.net (goose.mail.pas.earthlink.net [207.217.120.18]) by svr1.postgresql.org (Postfix) with ESMTP id 43D5DD1B446 for ; Mon, 29 Dec 2003 16:58:00 -0400 (AST) Received: from dpc6682160001.direcpc.com ([66.82.160.1] helo=earthlink.net) by goose.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1Ab4Sb-0004T6-00; Mon, 29 Dec 2003 12:58:00 -0800 Message-ID: <3FF0954A.3010502@earthlink.net> Date: Mon, 29 Dec 2003 15:57:46 -0500 From: Sean Shanny User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Charles Haron Cc: pgsql-admin@postgresql.org Subject: Re: How to use psql -c? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/326 X-Sequence-Number: 11832 from the command prompt: psql -U password -d database -c "select tablename from pg_stats ;" --sean Charles Haron wrote: >Hello, > >Can someone give me an example of how to use the -c option of psql? I can't >seem to get it to work. > >Thanks, >Chuck > > >---------------------------(end of broadcast)--------------------------- >TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > > >