pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Collin Peters <cadiolis@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Convert serial column to regular integer
Date: Fri, 11 May 2007 13:18:02 -0700
Message-ID: <df01c91b0705111318s59732d19gd881703893a454ea@mail.gmail.com> (raw)
In-Reply-To: <a55915760705110936j1ee5bb67oe366c9161c92fc33@mail.gmail.com>
References: <df01c91b0705110924k45362880rdcc01db1cae3024f@mail.gmail.com>
	<a55915760705110936j1ee5bb67oe366c9161c92fc33@mail.gmail.com>

Anything pre-8.2?

On 5/11/07, Rodrigo De León <rdeleonp@gmail.com> wrote:
>
> CREATE TABLE dtab (i SERIAL);
>
> ALTER TABLE dtab ALTER COLUMN i DROP DEFAULT;
>
> ALTER SEQUENCE dtab_i_seq OWNED BY NONE;
>
> DROP SEQUENCE dtab_i_seq;
>



view thread (4+ messages)  latest in thread

Message-ID: <df01c91b0705111318s59732d19gd881703893a454ea@mail.gmail.com>
Permalink:  ../df01c91b0705111318s59732d19gd881703893a454ea@mail.gmail.com/
Also on:    postgresql.org/message-id/df01c91b0705111318s59732d19gd881703893a454ea@mail.gmail.com

 · 

reply

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: cadiolis@gmail.com
  Subject: Re: Convert serial column to regular integer
  In-Reply-To: <df01c91b0705111318s59732d19gd881703893a454ea@mail.gmail.com>

* 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