Re: [GENERAL] Change SERIAL to INTEGER

2006-04-04 Thread Pedro Monjo Florit
Pandurangan R S wrote: Hi, Is there any way to change a SERIAL type to an INTEGER? I think that it should be easy, since SERIAL is, in fact, an INTEGER with some conditions. There serial column is just a integer, with default as nextval from a sequence, so there is no neccessity to change the d

Re: [GENERAL] Change SERIAL to INTEGER

2006-01-27 Thread Pandurangan R S
Hi, Is there any way to change a SERIAL type to an INTEGER? I think that it should be easy, since SERIAL is, in fact, an INTEGER with some conditions. There serial column is just a integer, with default as nextval from a sequence, so there is no neccessity to change the datatype of the column. Yo

[GENERAL] Change SERIAL to INTEGER

2006-01-27 Thread Pedro Monjo Florit
Hi everybody: In a computer which is un production, I have a PostgreSQL 7.4 database. In a couple of tables, I have just realised that I made a small mistake: the primary key is SERIAL but what I really need is an INTEGER, since I do not need the auto-increment feature or the sequence. Until n