is this a bug ?

From: Cedric BRINER <work(at)infomaniak(dot)ch>
To: pgsql-general(at)postgresql(dot)org
Subject: is this a bug ?
Date: 2005-06-16 17:52:39
Message-ID: 20050616175239.GA23283@obs.unige.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Collin Peters 2005-06-16 18:27:43 Extremely slow performance with 'select *' after insert of 37,000 records
Previous Message Matthew T. O'Connor 2005-06-16 17:41:38 Re: Autovacuum in the backend