summaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogreader.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-10-09 13:31:27 +0900
committerMichael Paquier <michael@paquier.xyz>2019-10-09 13:31:27 +0900
commit4e7a8874a15a9bcfe50caf7d39141796a7783507 (patch)
tree248273ed6d5f151181b2a0b3b7501e2e7b21440e /src/backend/access/transam/xlogreader.c
parentdafeac80478f8a44a96c8a3f941599317ca52391 (diff)
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/access/transam/xlogreader.c')
0 files changed, 0 insertions, 0 deletions