diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-10-09 13:31:13 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-10-09 13:31:13 +0900 |
commit | 07c314968712a2cb1818f6d884c9818f95dee02e (patch) | |
tree | be4d2ba0838c541d48b379b3e90d483af6d42b33 /src/backend/commands/tablecmds.c | |
parent | 6816497cd78a9b498785fa54af7ba0a41051ad24 (diff) | |
download | postgresql-07c314968712a2cb1818f6d884c9818f95dee02e.tar.gz postgresql-07c314968712a2cb1818f6d884c9818f95dee02e.zip |
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
Diffstat (limited to 'src/backend/commands/tablecmds.c')
0 files changed, 0 insertions, 0 deletions