pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Todd Kover <kovert@omniscient.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: renaming+recreating table w/default sequence causes dependency seq issue
Date: Wed, 08 Aug 2012 19:42:51 -0400
Message-ID: <201208082342.q78NgpB2019292@guinness.omniscient.com> (raw)
In-Reply-To: <162.1344397327@sss.pgh.pa.us>
References: <201208080010.q780APDf006070@guinness.omniscient.com>
<162.1344397327@sss.pgh.pa.us>
> I don't see any bug there. The ALTER DROP DEFAULT command does not
> remove the sequence's dependence on foo.id; nor for that matter
> does ALTER SET DEFAULT create an auto-drop dependency on the new
> table. See ALTER SEQUENCE OWNED BY if you want to dissociate a
> serial column's sequence from the column, or reattach it to another
> column.
>
> Formally speaking, a "serial column" is shorthand for creating an
> integer (or bigint) column, creating a sequence, associating them as
> though by ALTER SEQUENCE OWNED BY, and setting the column's default
> to nextval('sequence-name').
I stand corrected. It would be nice if \ds or \ds+ or something showed
this relationship so it was evident. That's more of a feature request
than a bug fix tho.
apologies for the misdirection.
-Todd
view thread (4+ messages)
Message-ID: <201208082342.q78NgpB2019292@guinness.omniscient.com> Permalink: ../201208082342.q78NgpB2019292@guinness.omniscient.com/ Also on: postgresql.org/message-id/201208082342.q78NgpB2019292@guinness.omniscient.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 from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-bugs@postgresql.org Cc: kovert@omniscient.com, tgl@sss.pgh.pa.us Subject: Re: renaming+recreating table w/default sequence causes dependency seq issue In-Reply-To: <201208082342.q78NgpB2019292@guinness.omniscient.com> References: <201208080010.q780APDf006070@guinness.omniscient.com> <162.1344397327@sss.pgh.pa.us> <201208082342.q78NgpB2019292@guinness.omniscient.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