Re: "ERROR: could not open relation with OID 16391" error was encountered when reindexing
От
Michael Paquier
Тема
Re: "ERROR: could not open relation with OID 16391" error was encountered when reindexing
Дата
Msg-id
ZaoIHhxdXmMqahe5@paquier.xyz
Ответ на
Re: "ERROR: could not open relation with OID 16391" error was encountered when reindexing (feichanghong)
Список
Дерево обсуждения
"ERROR: could not open relation with OID 16391" error was encountered when reindexing feichanghong <feichanghong@qq.com>
Re: "ERROR: could not open relation with OID 16391" error was encountered when reindexing Aleksander Alekseev <aleksander@timescale.com>
Re: "ERROR: could not open relation with OID 16391" error was encountered when reindexing feichanghong <feichanghong@qq.com>
Re: "ERROR: could not open relation with OID 16391" error was encountered when reindexing "feichanghong" <feichanghong@qq.com>
Re: "ERROR: could not open relation with OID 16391" error was encountered when reindexing Tom Lane <tgl@sss.pgh.pa.us>
Re: "ERROR: could not open relation with OID 16391" error was encountered when reindexing feichanghong <feichanghong@qq.com>
Re: "ERROR: could not open relation with OID 16391" error was encountered when reindexing Michael Paquier <michael@paquier.xyz>
Re: "ERROR: could not open relation with OID 16391" error was encountered when reindexing feichanghong <feichanghong@qq.com>
Re: "ERROR: could not open relation with OID 16391" error was encountered when reindexing "feichanghong" <feichanghong@qq.com>
Re: "ERROR: could not open relation with OID 16391" error was encountered when reindexing Michael Paquier <michael@paquier.xyz>
On Wed, Jan 17, 2024 at 04:03:46PM +0800, feichanghong wrote: > It has been verified that the patch in the attachment can solve the > above problems. I sincerely look forward to your suggestions! Thanks for the patch. I have completely forgotten to update this thread. Except for a few comments and names that I've tweaked, this was OK, so applied and backpatched after splitting things into two: - One commit for try_index_open(). - Second commit for the fix in reindex_index(). I've looked at the concurrent paths as well, and even if these involve more relations opened we maintain a session lock on the parent relations that we manipulate, so I could not see a pattern where the index would be dropped and where we'd try to open it. Now, there are cases where it is possible to deadlock for the concurrent paths, but that's not new: schema or database level reindexes can also hit that. This is one of these areas where tests are hard to write now because we want to stop operations at specific points but we cannot. -- Michael
В списке pgsql-hackers по дате отправления
От: Michael Paquier
Дата: