pg_get_indexdef() modification to use TxnSnapshot

Поиск
Список
Период
Сортировка
От shveta malik
Тема pg_get_indexdef() modification to use TxnSnapshot
Дата
Msg-id CAJpy0uBvAyGOEHGiZMCC+oCugi-4m4EJep-e_YR3uViChOBCfw@mail.gmail.com
обсуждение исходный текст
Ответы Re: pg_get_indexdef() modification to use TxnSnapshot  (vignesh C <vignesh21@gmail.com>)
Re: pg_get_indexdef() modification to use TxnSnapshot  (Masahiko Sawada <sawada.mshk@gmail.com>)
Список pgsql-hackers
I have attempted to convert pg_get_indexdef() to use
systable_beginscan() based on transaction-snapshot rather than using
SearchSysCache(). The latter does not have any old info and thus
provides only the latest info as per the committed txns, which could
result in errors in some scenarios. One such case is mentioned atop
pg_dump.c. The patch is an attempt to fix the same pg_dump's issue.
Any feedback is welcome.

There is a long list of pg_get_* functions which use SearchSysCache()
and thus may expose similar issues. I can give it a try to review the
possibility of converting all of them. Thoughts?

thanks
Shveta

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Cleaning up nbtree after logical decoding on standby work
Следующее
От: vignesh C
Дата:
Сообщение: Re: pg_get_indexdef() modification to use TxnSnapshot