pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Erik Aronesty <erik@q32.com>
To: Erik Aronesty <erik@q32.com>
To: pgsql-admin@postgresql.org
Subject: Re: alter table serial->int
Date: Sun, 11 Nov 2007 07:15:01 -0500
Message-ID: <ccd588d90711110415n40a61249pbcb67cf5d4c73f0d@mail.gmail.com> (raw)
In-Reply-To: <20071108195721.GU2938@alvh.no-ip.org>
References: <ccd588d90711061359m57d95921mc28b74dec9f35f54@mail.gmail.com>
	<7625.1194412270@sss.pgh.pa.us>
	<ccd588d90711080813j45a1cbd4u2f789e25fcc16162@mail.gmail.com>
	<ccd588d90711080817j482f1d39n80dee4334383ab51@mail.gmail.com>
	<20071108195721.GU2938@alvh.no-ip.org>

CREATE TABLE x (
   a serial NOT NULL
);

alter table x alter a drop default;

alter table x alter a set default 999;

still doesn't help.

i supposed i can dump the whole table and rebuild it.... but that's
going to be a bit slow.



view thread (8+ messages)  latest in thread

Message-ID: <ccd588d90711110415n40a61249pbcb67cf5d4c73f0d@mail.gmail.com>
Permalink:  ../ccd588d90711110415n40a61249pbcb67cf5d4c73f0d@mail.gmail.com/
Also on:    postgresql.org/message-id/ccd588d90711110415n40a61249pbcb67cf5d4c73f0d@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-admin@postgresql.org
  Cc: erik@q32.com
  Subject: Re: alter table serial->int
  In-Reply-To: <ccd588d90711110415n40a61249pbcb67cf5d4c73f0d@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