From: | Glen Parker <glenebob(at)nwlink(dot)com> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Subject: | Re: more than one index in a single heap pass? |
Date: | 2009-07-15 00:01:15 |
Message-ID: | 4A5D1C4B.1030008@nwlink.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Andrew Dunstan wrote:
> Well, yes, it's some of it, and in theory Tom's late addition of a queue
> that gets all the dependencies of a table as soon as the table data is
> restored should make that work better. But of course, that's not the
> only time indexes are created, and each index creation command will be
> doing its own heap processing, albeit that synchronised scanning will
> make that lots cheaper.
>
> As I said originally, it was just an idle thought that came to me today.
Sounds to me like another reason to separate index definition from
creation. If an index can be defined but not yet created or valid, then
you could imagine syntax like:
DEFINE INDEX blahblah1 ON mytable (some fields);
DEFINE INDEX blahblah2 ON mytable (some other fields);
[RE]INDEX TABLE mytable;
...provided that REINDEX TABLE could recreate all indexes simultaneously
as you suggest.
-Glen
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2009-07-15 00:18:03 | CommitFest 2009-07 is Now Closed |
Previous Message | Andrew Dunstan | 2009-07-14 23:32:05 | Re: more than one index in a single heap pass? |