From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Manfred Koizar <mkoi-pg(at)aon(dot)at> |
Cc: | David Blasby <dblasby(at)refractions(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: SELECT * FROM <table> LIMIT 1; is really slow |
Date: | 2004-05-27 18:23:07 |
Message-ID: | 17474.1085682187@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Manfred Koizar <mkoi-pg(at)aon(dot)at> writes:
> XXXXXXXX XXXXXXXX XXXXXXXX XXXXXX.. ..y.....
> and when y is updated the new version will be stored in a lower block
Oh? What makes you think that? I see no guarantee of it.
> AFAICS this would make vacuum.c much simpler (no more chain moves).
How will it do that? I think you'd have to not move *any* updated
tuples to be sure you don't need the chain-move mechanism. Not moving
the outdated tuple isn't sufficient, you can't move the one it points at
either.
> Clearly this change alone doesn't have any merit. But would such a
> patch have any chance of being accepted, if it facilitates improvements
> in other areas?
I'm disinclined to mess with VACUUM FULL without a clearer explanation
of where you're headed. So far as I can see, you're simply going to
make VACUUM FULL less effective with no stated benefit.
(BTW, it now occurs to me that CLUSTER and ALTER TABLE in their present
forms may be broken, because they only copy rows that are valid
according to SnapshotNow; this means that rows that are still visible to
old transactions could be lost. The lack of any attempt to preserve
update chain relationships seems ungood as well, if we might have old
transactions come along and try to update the table later.)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Neil Conway | 2004-05-27 19:36:53 | Re: list rewrite committed |
Previous Message | Manfred Koizar | 2004-05-27 18:07:31 | Re: SELECT * FROM <table> LIMIT 1; is really slow |