pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Sabino Mullane <greg@turnstep.com>
To: pgsql-sql@postgresql.org
Subject: Re: Seeking quick way to clone a row, but give it a new pk.
Date: Thu,  8 Feb 2007 16:18:26 -0000
Message-ID: <58d5b57212154308c59c84976e153c53@biglumber.com> (raw)
In-Reply-To: <45CA50E6.6090006@obviously.com>


-----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-----





view thread (8+ messages)  latest in thread

Message-ID: <58d5b57212154308c59c84976e153c53@biglumber.com>
Permalink:  ../58d5b57212154308c59c84976e153c53@biglumber.com/
Also on:    postgresql.org/message-id/58d5b57212154308c59c84976e153c53@biglumber.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: greg@turnstep.com
  Subject: Re: Seeking quick way to clone a row, but give it a new pk.
  In-Reply-To: <58d5b57212154308c59c84976e153c53@biglumber.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox