Re: Support for REINDEX CONCURRENTLY - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Support for REINDEX CONCURRENTLY
Date
Msg-id CAHGQGwFQutc09zmbg3t_YKPqYtXka9OcWviZq=ok=h13tzFz3w@mail.gmail.com
Whole thread Raw
In response to Re: Support for REINDEX CONCURRENTLY  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: Support for REINDEX CONCURRENTLY  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
On Sun, Mar 10, 2013 at 3:48 AM, Fujii Masao <masao.fujii@gmail.com> wrote:
> Thanks for updating the patch!

-                              "SELECT reltoastidxid "
-                              "FROM info_rels i JOIN pg_catalog.pg_class c "
-                              "        ON i.reloid = c.oid"));
+                              "SELECT indexrelid "
+                              "FROM info_rels i "
+                              "  JOIN pg_catalog.pg_class c "
+                              "    ON i.reloid = c.oid "
+                              "  JOIN pg_catalog.pg_index p "
+                              "    ON i.reloid = p.indrelid "
+                              "WHERE p.indexrelid >= %u ", FirstNormalObjectId));

This new SQL doesn't seem to be right. Old one doesn't pick up any indexes
other than toast index, but new one seems to do.

Regards,

-- 
Fujii Masao



pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Why do we still perform a check for pre-sorted input within qsort variants?
Next
From: Dann Corbit
Date:
Subject: Re: Why do we still perform a check for pre-sorted input within qsort variants?