X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 62F4F52818 for ; Thu, 16 Jun 2005 14:01:50 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 94676-09 for ; Thu, 16 Jun 2005 17:01:46 +0000 (GMT) Received: from mbx.unige.ch (mbx.unige.ch [129.194.9.229]) by svr1.postgresql.org (Postfix) with ESMTP id 2A50A5280B for ; Thu, 16 Jun 2005 14:01:44 -0300 (ADT) Received: from CONVERSION-DAEMON.mbx.unige.ch by mbx.unige.ch (PMDF V6.2-X27 #30787) id <0II600801SMUY3@mbx.unige.ch> for pgsql-general@postgresql.org; Thu, 16 Jun 2005 19:01:43 +0200 (MEST) Received: from c2tv.yuhl.com ([129.194.66.160]) by mbx.unige.ch (PMDF V6.2-X27 #30787) with ESMTPS id <0II6006THSMUJC@mbx.unige.ch> for pgsql-general@postgresql.org; Thu, 16 Jun 2005 19:01:42 +0200 (MEST) Received: from c2tv.yuhl.com (localhost [127.0.0.1]) by c2tv.yuhl.com (8.13.4/8.13.4/Debian-1) with ESMTP id j5GHqdjm023311 for ; Thu, 16 Jun 2005 19:52:39 +0200 Received: (from briner@localhost) by c2tv.yuhl.com (8.13.4/8.13.4/Submit) id j5GHqdtX023309 for pgsql-general@postgresql.org; Thu, 16 Jun 2005 19:52:39 +0200 Date: Thu, 16 Jun 2005 19:52:39 +0200 From: Cedric BRINER Subject: is this a bug ? To: pgsql-general@postgresql.org Message-id: <20050616175239.GA23283@obs.unige.ch> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-disposition: inline User-Agent: Mutt/1.5.6+20040907i X-Comment: This message was scanned against viruses by mbx.unige.ch. X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.103 tagged_above=0 required=5 tests=AWL, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200506/799 X-Sequence-Number: 79507 hi, I'm facing this problem DROP TABLE test; DROP TABLE new_test; CREATE TABLE test (id serial NOT NULL UNIQUE, nom varchar(32)); INSERT INTO test ("nom") values ('cedric'); INSERT INTO test ("nom") values ('felix'); INSERT INTO test ("nom") values ('julien'); CREATE TABLE new_test (id serial NOT NULL UNIQUE, nom varchar(32)); INSERT INTO new_test SELECT * FROM test; ALTER TABLE new_test ALTER COLUMN id SET DEFAULT nextval('public.test_id_seq'); DROP TABLE test; ALTER TABLE new_test RENAME TO test; ALTER TABLE new_test_id_key RENAME TO test_id_key; DROP SEQUENCE new_test_id_seq ; -- this give an error... is this normal is this the normal behaviour ? Ced. -- Cedric BRINER