Re: [BUGS] Running queries on inherited tables

From: Michael Richards <miker(at)scifair(dot)acadiau(dot)ca>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgreSQL(dot)org
Subject: Re: [BUGS] Running queries on inherited tables
Date: 1999-09-13 14:49:46
Message-ID: Pine.BSF.4.10.9909131134080.63214-100000@scifair.acadiau.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-sql

On Sun, 12 Sep 1999, Tom Lane wrote:

> > Considering how often Alter table is used, would it be reasonable to rip
> > out all the alter table code and just have it do a select into;drop;rename
>
> That would be a good route to a reimplementation, actually. Want to
> have a go at it?
Sure. I'll wade into the code and see if I can swim. I think I'll first
try to implement ALTER TABLE class_name DELETE COLUMN col_name

Which version do you suggest I work with to come up with patches?

> > Of course I wouldn't want to do this on a 5Gb table...
>
> There's probably not much choice. The current implementation avoids
> touching the data at all, but that is precisely the source of most of
> its bugs and limitations. I think most of the cases that we currently
D'oh. Now that I think about it you'd need 2n the amount of space
anyway... That brings up an intersting point... Does the database do a
rollback if it runs out of space on the device? Considering that a vacuum
is the only way to reclaim space that should mean that all queries
following should fail unless they are selects.

-Michael

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 1999-09-13 15:01:13 Re: [BUGS] Running queries on inherited tables
Previous Message Sue 1999-09-13 13:42:13 Bug report?

Browse pgsql-sql by date

  From Date Subject
Next Message Craig Orsinger 1999-09-13 18:49:03 RE: [INTERFACES] ecpg and getting just assigned serial number
Previous Message Andreas Theofilu 1999-09-13 13:46:51 RE: [INTERFACES] ecpg and getting just assigned serial number