Re: [BUGS] serial drop error

2004-12-06 Thread Ed L.
On Monday December 6 2004 11:50, Tom Lane wrote: > "Ed L." <[EMAIL PROTECTED]> writes: > > I can see the point of *not* dropping the sequence unless the > > owning column is dropped. I just don't see the point of disabling the > > useful ability to decouple the sequence-column association, and > >

Re: [BUGS] serial drop error

2004-12-06 Thread Tom Lane
"Ed L." <[EMAIL PROTECTED]> writes: > I can see the point of *not* dropping the sequence unless the > owning column is dropped. I just don't see the point of disabling the > useful ability to decouple the sequence-column association, and dropping > the default seems the most reasonable way to d

Re: [BUGS] serial drop error

2004-12-06 Thread Ed L.
On Monday December 6 2004 9:45, Ed L. wrote: > On Sun, 05 Dec 2004 14:54:38, Tom Lane wrote: > > On Sunday December 5 2004 12:34, Ed L. wrote: > > > The following queries result in a dropped sequence, but IMO should > > > not: > > > > > > create table foo(id serial); > > > create table bar(id integ

Re: [BUGS] serial drop error

2004-12-06 Thread Ed L.
On Sun, 05 Dec 2004 14:54:38, Tom Lane wrote: > On Sunday December 5 2004 12:34, Ed L. wrote: > > The following queries result in a dropped sequence, but IMO should not: > > > > create table foo(id serial); > > create table bar(id integer not null nextval('foo_id_seq'::text)); > > alter table foo a

Re: [BUGS] serial drop error

2004-12-05 Thread Tom Lane
"Ed L." <[EMAIL PROTECTED]> writes: > The following queries result in a dropped sequence, but IMO should not: > create table foo(id serial); > create table bar(id integer not null nextval('foo_id_seq'::text)); > alter table foo alter column id drop default; > drop table foo; I don't think that fo

[BUGS] serial drop error

2004-12-05 Thread Ed L.
The following queries result in a dropped sequence, but IMO should not: create table foo(id serial); create table bar(id integer not null nextval('foo_id_seq'::text)); alter table foo alter column id drop default; drop table foo; Once dependence between foo and foo_id_seq has been removed, a dro