Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 5A805633810 for ; Wed, 10 Jun 2009 02:53:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 03878-02 for ; Wed, 10 Jun 2009 02:52:56 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f186.google.com (mail-pz0-f186.google.com [209.85.222.186]) by mail.postgresql.org (Postfix) with ESMTP id F08E8632FBC for ; Wed, 10 Jun 2009 02:53:06 -0300 (ADT) Received: by pzk16 with SMTP id 16so492515pzk.15 for ; Tue, 09 Jun 2009 22:53:05 -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; bh=hyidC5X9sra7b4MM69DHhBU4d/uiRTCHZOf94pZh/gM=; b=fcxKrN8/mrm4rRwVwDBbpT9bdK0ZmTeyDZX5+Bd8sPAE86oeqG+A+pkKC2CEpgIEf5 59q+QA5hDlKIstS6TmBevGiC5tW/uYNr9Y9sbys8kIsozfhIU7P3ZgdMOrvusDhlc2IS 0U2OZPszPENQoDyAPv2R1Ss8tIMFKAs5lNBRU= 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; b=P9YYe5251ERuyYmfdfjMvCnAEODCPzybk+/ZPtjqDeFM9dA0KwYAQNcDR3XEpc2tZY 0jSNn23i5nx8rlFXPPQk3dMQCP6Do0eR3rI8N6LuhzEcEcZo9l3lZXknEpyE+rimVJuj /VpXQC85fSeJHpRtbbyTyaLF+MNLkd/FXHJjU= Received: by 10.142.245.17 with SMTP id s17mr359863wfh.206.1244613185396; Tue, 09 Jun 2009 22:53:05 -0700 (PDT) Received: from BITDLLT03 ([122.160.72.188]) by mx.google.com with ESMTPS id 30sm1153728wff.29.2009.06.09.22.53.02 (version=SSLv3 cipher=RC4-MD5); Tue, 09 Jun 2009 22:53:04 -0700 (PDT) From: "Jyoti Seth" To: "'Jasen Betts'" , References: <003b01c9e8e8$29f09860$7dd1c920$@com> In-Reply-To: Subject: Re: backup Date: Wed, 10 Jun 2009 11:16:35 +0530 Message-ID: <001c01c9e98e$d4421c20$7cc65460$@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/t1diVmAf4ABSsy9QJzOQPP61wAj4F9A Content-Language: en-us 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/43 X-Sequence-Number: 32648 Thanks it worked when I changed the command '/copy' to '\copy' -----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