Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 07AFF9FB531 for ; Tue, 15 May 2007 08:19:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 98005-05 for ; Tue, 15 May 2007 08:19:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id 369C29FB4C2 for ; Tue, 15 May 2007 08:19:52 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1Hnv4J-0001BM-5v for pgsql-sql@postgresql.org; Tue, 15 May 2007 07:19:51 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id CA4B2404E; Tue, 15 May 2007 07:19:45 -0400 (EDT) Date: Tue, 15 May 2007 07:19:45 -0400 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: pg_dump? Message-ID: <20070515111945.GB344@phlogiston.dyndns.org> References: <887138.91241.qm@web50308.mail.re2.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <887138.91241.qm@web50308.mail.re2.yahoo.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/128 X-Sequence-Number: 28408 You want to look at the pg_dump command. A On Mon, May 14, 2007 at 03:48:17PM -0700, Richard Dunne wrote: > PostgreSQL begginer. Whats the best way of exporting(dumping) a database/table/view/query to a file? > I am using PostgreSQL v 8.2. I am starting postgres server with > C:\WINDOWS\system32\net.exe start pgsql-8.2, (start service) > C:\postgresql-8.2.3-1\bin\psql.exe -h localhost -p 5432 postgres "Richard" > (psql to 'postgres') > both of which are run from shortcuts in the start menu. > my cli starts with "postgres #", then "databasename #" after connecting using \c. > > Richard. > > > > ____________________________________________________________________________________Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. > http://new.toolbar.yahoo.com/toolbar/features/norton/index.php > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings -- Andrew Sullivan | ajs@crankycanuck.ca I remember when computers were frustrating because they *did* exactly what you told them to. That actually seems sort of quaint now. --J.D. Baldwin