From: Gaetano Mendola <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org
Subject: Re: Duplicate primary key and also the OID !!!!
Date: Tue, 8 Apr 2003 01:58:25 +0200
Message-ID: <b6sse7$2rh9$1@news.hub.org> (raw)
References: <b6p5qd$1jui$1@news.hub.org>
<b6sfho$1b7d$1@news.hub.org>
"CoL" <col@mportal.hu> wrote in message news:b6sfho$1b7d$1@news.hub.org...
> begin;
> create table temp as select distinct * from user_traffic WHERE id_user =
> 6738;
> delete from user_traffic WHERE id_user = 6738;
> insert into user_traffic select * from temp;
> drop table temp;
> commit;
Is not so easy like this...
After that delete some other records in
other tables will be deleted ( cascade ).
The solution was doing the dump, modify
by hand the dump, reinit the DB ........
Thank you anyway.
Gaetano
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mendola@bigfoot.com
Subject: Re: Duplicate primary key and also the OID !!!!
In-Reply-To: <b6sse7$2rh9$1@news.hub.org>
References: <b6p5qd$1jui$1@news.hub.org> <b6sfho$1b7d$1@news.hub.org> <b6sse7$2rh9$1@news.hub.org>
* 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