| From: | Vivek Khera <vivek(at)khera(dot)org> |
|---|---|
| To: | Postgres general mailing list <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Alternative for vacuuming queue-like tables |
| Date: | 2006-04-28 14:52:12 |
| Message-ID: | 7CCF1DD9-E7CE-495A-BA7E-74EC89A9BAA5@khera.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Apr 28, 2006, at 9:32 AM, Csaba Nagy wrote:
> I'm not sure how this operation can work in the presence of other long
> running transactions which did not touch the queue table yet, but it
> actually does work, I can confirm that. Is it violating MVCC maybe ?
It sounds like it does potentially violate mvcc, but I haven't
thought hard about it. It also has the advantage that it rebuilds
your indexes during the clustering.
And a convenient feature is that you just define those CLUSTER
statements once, then whenever you need it, just run "CLUSTER;" all
by itself and all tables previously defined as clustered will be re-
clustered on the specified index.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | linux | 2006-04-28 14:53:25 | Init script for 8.1 compiled on Debian Stable |
| Previous Message | Volker Aßmann | 2006-04-28 14:47:09 | Postmaster process on port 10000 |