Re: Seeking quick way to clone a row, but give it a new pk. - Mailing list pgsql-sql

From Greg Sabino Mullane
Subject Re: Seeking quick way to clone a row, but give it a new pk.
Date
Msg-id 58d5b57212154308c59c84976e153c53@biglumber.com
Whole thread Raw
In response to Seeking quick way to clone a row, but give it a new pk.  (Bryce Nesbitt <bryce1@obviously.com>)
List pgsql-sql
-----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-----




pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Odd PL/PgSQL Error -- relation "X" does not exist when using index expression
Next
From: "Ezequias Rodrigues da Rocha"
Date:
Subject: Open a Transaction