Re: [HACKERS] Weirdess when altering serial column type

2005-04-20 Thread Christopher Kings-Lynne
Any further thoughts on this? Tom Lane wrote: Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: I presume they have to drop the default, then drop the sequence to get rid of it. Hmm. Right at the moment I don't think you *can* get rid of it, short of dropping the column altogether. regression=

Re: [HACKERS] Weirdess when altering serial column type

2005-04-18 Thread Tom Lane
Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: > I presume they have to drop the default, then drop the sequence to get > rid of it. Hmm. Right at the moment I don't think you *can* get rid of it, short of dropping the column altogether. regression=# create table z(f1 serial); NOTICE: CRE

Re: [HACKERS] Weirdess when altering serial column type

2005-04-18 Thread Christopher Kings-Lynne
Should that sequence really stick around as an integer, numeric and text field??? What are you unhappy about exactly? We expended a fair amount of sweat to make it behave just like that ... It's confused the odd IRC user (pgsql newbie). Seems like it breaks the 'serial type' illusion... I pres

Re: [HACKERS] Weirdess when altering serial column type

2005-04-18 Thread Tom Lane
Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: > Should that sequence really stick around as an integer, numeric and text > field??? What are you unhappy about exactly? We expended a fair amount of sweat to make it behave just like that ... regards, tom lane --

[HACKERS] Weirdess when altering serial column type

2005-04-18 Thread Christopher Kings-Lynne
Should that sequence really stick around as an integer, numeric and text field??? test=# create table test (a serial); NOTICE: CREATE TABLE will create implicit sequence "test_a_seq" for serial column "test.a" NOTICE: CREATE TABLE will create implicit sequence "test_a_seq" for serial column "