Re: ALTER SEQUENCE: Missing feature? - Mailing list pgsql-hackers

From David Fetter
Subject Re: ALTER SEQUENCE: Missing feature?
Date
Msg-id 20040201195739.GE19912@fetter.org
Whole thread Raw
In response to Re: ALTER SEQUENCE: Missing feature?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: ALTER SEQUENCE: Missing feature?  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-hackers
On Sun, Feb 01, 2004 at 02:53:18PM -0500, Tom Lane wrote:
> david@fetter.org (David Fetter) writes:
> > The fine folks in #postgresql brought this up, and it seems like,
> > well, a bug.  In order to make certain kinds of changes on a
> > SEQUENCE, you have to issue an ALTER TABLE statement.  Shouldn't
> > alterations like RENAME TO, OWNER, etc. to a SEQUENCE all (be able
> > to) go through ALTER SEQUENCE?  What else might this impact?
> 
> Sequences are tables in some very real senses.  I don't see the
> value in duplicating code just to allow people to spell TABLE as
> SEQUENCE in these commands...

I guess it comes down to a philosophical thing.  Should people need to
know the PostgreSQL internals like the fact that a SEQUENCE is
currently implemented as a TABLE, or should they just be able to do
reasonable things like call ALTER SEQUENCE when they alter a sequence?

Cheers,
D
-- 
David Fetter david@fetter.org http://fetter.org/
phone: +1 510 893 6100    cell: +1 415 235 3778


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: ALTER SEQUENCE: Missing feature?
Next
From: "Joshua D. Drake"
Date:
Subject: Re: ALTER SEQUENCE: Missing feature?