X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id CCE5230DC75 for ; Wed, 11 Jun 2003 21:46:45 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 00392-07 for ; Wed, 11 Jun 2003 18:46:35 -0300 (ADT) Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by svr1.postgresql.org (Postfix) with ESMTP id C935630D1B1 for ; Wed, 11 Jun 2003 18:46:33 -0300 (ADT) Received: from tauri.dgsca.unam.mx (tauri.dgsca.unam.mx [132.248.190.76]) by servidor.unam.mx (8.11.1/8.11.1) with ESMTP id h5BLZrG17695; Wed, 11 Jun 2003 16:35:55 -0500 (CDT) Subject: Re: backup a table From: Miriam =?ISO-8859-1?Q?Fern=E1ndez?= Galicia To: Guillaume LELARGE Cc: pgsql-admin@postgresql.org In-Reply-To: <200306112319.36176.gleu@wanadoo.fr> References: <1055363103.26123.52.camel@tauri.dgsca.unam.mx> <200306112319.36176.gleu@wanadoo.fr> Content-Type: multipart/related; type="multipart/alternative"; boundary="=-OBHw/7p+CpTRJXFJJymA" Organization: Message-Id: <1055368378.26130.74.camel@tauri.dgsca.unam.mx> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 11 Jun 2003 16:52:59 -0500 X-Archive-Number: 200306/116 X-Sequence-Number: 9107 --=-OBHw/7p+CpTRJXFJJymA Content-Type: multipart/alternative; boundary="=-RQnzFciKaVw43Q32fVLX" --=-RQnzFciKaVw43Q32fVLX Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Thank you Guillaume !! :) It works!! Miriam El mié, 11 de 06 de 2003 a las 18:19, Guillaume LELARGE escribió: > Hi, > > Le Mercredi 11 Juin 2003 20:25, vous avez écrit : > > Hello!!! > > I 'm new in Postgres 7.2 my question is, exists some way to backup only > > a table and no the all database with pg_dump or another utility, too > > pg_dump allows you to do this using the -t switch. > Try something like > pg_dump -t mytable mydbname > > You should probably redirect stdout to some file like this: > pg_dump -t mytable mydbname > myfile > > If you need to specify your user, try something like this one: > pg_dump -U myuser -t mytable mydbname > --=-RQnzFciKaVw43Q32fVLX Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Thank you Guillaume !!  :)
It works!!
   Miriam


El mié, 11 de 06 de 2003 a las 18:19, Guillaume LELARGE escribió:
Hi,

Le Mercredi 11 Juin 2003 20:25, vous avez écrit :
> Hello!!!
> I 'm new in Postgres 7.2 my question is, exists some way to backup only
> a table and no  the all database with pg_dump or another utility, too 

pg_dump allows you to do this using the -t switch.
Try something like
  pg_dump -t mytable mydbname

You should probably redirect stdout to some file like this:
  pg_dump -t mytable mydbname > myfile

If you need to specify your user, try something like this one:
  pg_dump -U myuser -t mytable mydbname
--=-RQnzFciKaVw43Q32fVLX-- --=-OBHw/7p+CpTRJXFJJymA Content-ID: <1055368089.26075.68.camel@tauri.dgsca.unam.mx> Content-Disposition: attachment; filename=smiley-3.png Content-Type: image/png; name=smiley-3.png Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAC+klEQVR42n2T bUjVdxTHP/+H69Xda2VWlFe69rzthZJUoxeNOWoFGxEhYRRFmZSVW2u9ab2K ejWE1qDNBkEQhS82VoiaZkVPmoWaKNM5mA+opbd771//997//T/+epHBarEP HA6Hc84XDnwP/JcwcBS4AVgzcR04ONN7C+md+pcPCz44dPLAarZs/gg1UABu Gkvvp7X1Iad+itE/YtUAle8TuH26sujzqq/LkJQsnOQQVmIASVJQMhehZORi Jwc5d76FH2pf3gY2Aigzy7+eObqmtOqbXbjGGHZqCM+eQpJ9AHhWFCc5CAjW f1KAkppc+qg3vRCol4Fw0aqcisOVW3HTE7hmBElSKD/5GFkNMhH1KDvegST7 8CwNSfZxeM88VuYrh4CwAuxqvxL6MnPuWiy9H1k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