Re: REINDEX blocks virtually any queries but some prepared queries.
Frédéric Yhuel <frederic.yhuel@dalibo.com>
From: Frédéric Yhuel <frederic.yhuel@dalibo.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Guillaume Lelarge <guillaume@lelarge.info>,
Justin Pryzby <pryzby@telsasoft.com>, Peter Geoghegan <pg@bowt.ie>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-04-11T07:06:07Z
Lists: pgsql-hackers
On 4/11/22 02:57, Michael Paquier wrote: > On Fri, Apr 08, 2022 at 04:23:48PM +0200, Frédéric Yhuel wrote: >> Thank you Michael. > > And done as of 8ac700a. > -- Thank you Micheal! For reference purposes, we can see in the code of get_relation_info(), in plancat.c, that indeed every index of the table are opened, and therefore locked, regardless of the query. Best regards, Frédéric
Commits
-
doc: Clarify behavior of query planner locking with REINDEX
- 8ac700acffc7 15.0 landed