Convert serial column to regular integer - Mailing list pgsql-sql

From Collin Peters
Subject Convert serial column to regular integer
Date
Msg-id df01c91b0705110924k45362880rdcc01db1cae3024f@mail.gmail.com
Whole thread Raw
Responses Re: Convert serial column to regular integer  ("Rodrigo De León" <rdeleonp@gmail.com>)
List pgsql-sql
I have a need to convert an incorrectly typed serial column to a
regular integer column.  Basically this just involves removing the
sequence.  I am able to successfully remove the default value (DROP
DEFAULT) (which seems to use nextval) and now pgadmin does show the
column as an integer, but I cannot remove the sequence as it says it
is still in use.  If I look at the column in pgadmin the sequence
field is still filled in with the sequence but it is grayed out.  Is
there any way to remove the sequence fully?

Regards,
Collin


pgsql-sql by date:

Previous
From: John DeSoi
Date:
Subject: Re: PL/PGSQL Record type question
Next
From: "Rodrigo De León"
Date:
Subject: Re: Convert serial column to regular integer