Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 7FC8E632B2A for ; Wed, 10 Jun 2009 02:14:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 85972-07 for ; Wed, 10 Jun 2009 02:14:57 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-px0-f197.google.com (mail-px0-f197.google.com [209.85.216.197]) by mail.postgresql.org (Postfix) with ESMTP id 3B23B6328C8 for ; Wed, 10 Jun 2009 02:14:56 -0300 (ADT) Received: by pxi35 with SMTP id 35so476414pxi.15 for ; Tue, 09 Jun 2009 22:14:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:references :in-reply-to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language :x-cr-hashedpuzzle:x-cr-puzzleid; bh=4NIEGe1qPszBTbrPy6c2vchC+UKIqocN1d3pSj6tJl4=; b=YTd3nSW6907bEOVSCE8kk3LTmjz42DMXOSPGfOQKMZKp/3w0pI6QrzY1Y6Mgb7wQFk LOpGdZf6K/ssf2ViKvRlyWMakq6g3MaHIXOt6OTNm9eJ8P/55AzfNhxhZ1aF21vUWbvu 2hG25rUBrTXHmSCcXsI9z+dzYPPDyREHDlsyQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language:x-cr-hashedpuzzle:x-cr-puzzleid; b=gEKadNK2NiBVdrEzHX0tu0SzwWXMpjh8cflpqQ/79kMzY/h2/J/YgO0+OCPlfWoh5w 6iIFm05XbgE6CEWsKPSjIUkSgbvtzAhTabY0Uj+qE38kBn+6VkP/oifpYIggIskkpy1G Z/0GkzLvvVXjtfZrBQxe+kGEAY/EoMaLRjc1A= Received: by 10.142.135.13 with SMTP id i13mr354136wfd.133.1244610895545; Tue, 09 Jun 2009 22:14:55 -0700 (PDT) Received: from BITDLLT03 ([122.160.72.188]) by mx.google.com with ESMTPS id 28sm163000wfg.5.2009.06.09.22.14.51 (version=SSLv3 cipher=RC4-MD5); Tue, 09 Jun 2009 22:14:54 -0700 (PDT) From: "Jyoti Seth" To: "'Jasen Betts'" , References: <003b01c9e8e8$29f09860$7dd1c920$@com> In-Reply-To: Subject: Re: backup Date: Wed, 10 Jun 2009 10:38:30 +0530 Message-ID: <001b01c9e989$821d7610$86586230$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acno/t1diVmAf4ABSsy9QJzOQPP61wAimoqQ Content-Language: en-us x-cr-hashedpuzzle: AOpi A9Q3 B07I DQgz L/nL NcgR OHQ1 PQoE Rae1 Ridq TSvD TbCB T0OU VV6s X97V Ypqi; 2; agBhAHMAZQBuAEAAeABuAGUAdAAuAGMAbwAuAG4AegA7AHAAZwBzAHEAbAAtAHMAcQBsAEAAcABvAHMAdABnAHIAZQBzAHEAbAAuAG8AcgBnAA==; Sosha1_v1; 7; {0E086515-2E12-4722-B935-BC1CA097E0C0}; agB5AG8AdABpAHMAZQB0AGgAMgAwADAAMQBAAGcAbQBhAGkAbAAuAGMAbwBtAA==; Wed, 10 Jun 2009 05:08:21 GMT; UgBFADoAIABbAFMAUQBMAF0AIABiAGEAYwBrAHUAcAA= x-cr-puzzleid: {0E086515-2E12-4722-B935-BC1CA097E0C0} X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/41 X-Sequence-Number: 32646 I tried using /copy command. It is not giving any error but also not creating any file. Thanks Jyoti -----Original Message----- From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org] On Behalf Of Jasen Betts Sent: Tuesday, June 09, 2009 6:03 PM To: pgsql-sql@postgresql.org Subject: Re: [SQL] backup On 2009-06-09, Jyoti Seth wrote: > This is a multipart message in MIME format. > > ------=_NextPart_000_003C_01C9E916.43A8D460 > Content-Type: text/plain; > charset="us-ascii" > Content-Transfer-Encoding: 7bit > > Hi all, > > > > Can we take backup of specific data of a table (using where clause)? in psql: /copy (select * from table WHERE condition ) to 'FILENAME' requires postgres version >= 8.2 IIRC. you can use any query. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql