Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 0F4669FB341 for ; Thu, 8 Feb 2007 12:15:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 07629-01 for ; Thu, 8 Feb 2007 12:15:09 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from tinlc.com (unknown [72.18.206.65]) by postgresql.org (Postfix) with ESMTP id A129D9FB33B for ; Thu, 8 Feb 2007 12:15:08 -0400 (AST) Received: from [127.0.0.1] (helo=localhost) by tinlc.com with smtp (Exim 4.60) (envelope-from ) id 1HFByc-0002th-2y; Thu, 08 Feb 2007 11:18:26 -0500 From: "Greg Sabino Mullane" To: pgsql-sql@postgresql.org Subject: Re: Seeking quick way to clone a row, but give it a new pk. X-PGP-Key: 2529 DF6A B8F7 9407 E944 45B4 BC9B 9067 1496 4AC8 X-Request-PGP: http://www.biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 In-Reply-To: <45CA50E6.6090006@obviously.com> Date: Thu, 8 Feb 2007 16:18:26 -0000 X-Mailer: JoyMail 2.01 Message-ID: <58d5b57212154308c59c84976e153c53@biglumber.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/92 X-Sequence-Number: 27426 -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 > I need to create some nearly identical copies of rows in > a complicated table. > > Is there a handy syntax that would let me copy a existing row, > but get a new primary key for the copy? http://people.planetpostgresql.org/greg/index.php?/archives/45-Making-a-copy-of-a-unique-row.html - -- Greg Sabino Mullane greg@turnstep.com PGP Key: 0x14964AC8 200702081114 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 -----BEGIN PGP SIGNATURE----- iD8DBQFFy0xcvJuQZxSWSsgRA8vFAJsHMFhngWGCSSi8okO9j9H0++hajgCgrUz+ aKTnhaHuQHv1qetAmPt/ufM= =HDF8 -----END PGP SIGNATURE-----