is this a bug ? - Mailing list pgsql-general

From Cedric BRINER
Subject is this a bug ?
Date
Msg-id 20050616175239.GA23283@obs.unige.ch
Whole thread Raw
Responses Re: is this a bug ?
List pgsql-general
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

pgsql-general by date:

Previous
From: "Brandon Metcalf"
Date:
Subject: Re: pgavd status
Next
From: "Matthew T. O'Connor"
Date:
Subject: Re: pgavd status