From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rodrigo De León <rdeleonp@gmail.com>
Cc: pgsql-sql@postgresql.org, "Collin Peters" <cadiolis@gmail.com>
Subject: Re: Convert serial column to regular integer
Date: Fri, 11 May 2007 16:32:33 -0400
Message-ID: <2958.1178915553@sss.pgh.pa.us> (raw)
In-Reply-To: <a55915760705110936j1ee5bb67oe366c9161c92fc33@mail.gmail.com>
References: <df01c91b0705110924k45362880rdcc01db1cae3024f@mail.gmail.com>
<a55915760705110936j1ee5bb67oe366c9161c92fc33@mail.gmail.com>
"=?ISO-8859-1?Q?Rodrigo_De_Le=F3n?=" <rdeleonp@gmail.com> writes:
> On 5/11/07, Collin Peters <cadiolis@gmail.com> wrote:
>> Is there any way to remove the sequence fully?
> ALTER SEQUENCE dtab_i_seq OWNED BY NONE;
Pre-8.2 that command doesn't exist, but you can get the same effect if
you manually remove the pg_depend entry that links the sequence to the
column. Be sure you're removing the right entry ;-)
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, rdeleonp@gmail.com, cadiolis@gmail.com
Subject: Re: Convert serial column to regular integer
In-Reply-To: <2958.1178915553@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox