pgsql: Flush logical mapping files with fd opened for read/write at che

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Flush logical mapping files with fd opened for read/write at che
Дата
Msg-id E1iI3eE-0003Pr-Hm@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Flush logical mapping files with fd opened for read/write at checkpoint

The file descriptor was opened with read-only to fsync a regular file,
which would cause EBADFD errors on some platforms.

This is similar to the recent fix done by a586cc4b (which was broken by
me with 82a5649), except that I noticed this issue while monitoring the
backend code for similar mistakes.  Backpatch to 9.4, as this has been
introduced since logical decoding exists as of b89e151.

Author: Michael Paquier
Reviewed-by: Andres Freund
Discussion: https://postgr.es/m/20191006045548.GA14532@paquier.xyz
Backpatch-through: 9.4

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/fbfc835b463af02c70ba19eae8897780ee807055

Modified Files
--------------
src/backend/access/heap/rewriteheap.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: pg_upgrade: clarify the database names in error files
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Use libc version as a collation version on glibc systems.