diff options
author | Tomas Vondra <tomas.vondra@postgresql.org> | 2018-08-16 16:49:10 +0200 |
---|---|---|
committer | Tomas Vondra <tomas.vondra@postgresql.org> | 2018-08-16 16:55:09 +0200 |
commit | e00f4b68dc878dcee46833a742844346daa1e3c8 (patch) | |
tree | e6b3234e526117605f422fd131c4776cbdbc4d77 /src/backend/executor/nodeMergejoin.c | |
parent | 1811900b933c892a8ee102b8b62028de4c1379ef (diff) | |
download | postgresql-e00f4b68dc878dcee46833a742844346daa1e3c8.tar.gz postgresql-e00f4b68dc878dcee46833a742844346daa1e3c8.zip |
Close the file descriptor in ApplyLogicalMappingFile
The function was forgetting to close the file descriptor, resulting
in failures like this:
ERROR: 53000: exceeded maxAllocatedDescs (492) while trying to open
file "pg_logical/mappings/map-4000-4eb-1_60DE1E08-5376b5-537c6b"
LOCATION: OpenTransientFile, fd.c:2161
Simply close the file at the end, and backpatch to 9.4 (where logical
decoding was introduced). While at it, fix a nearby typo.
Discussion: https://www.postgresql.org/message-id/flat/738a590a-2ce5-9394-2bef-7b1caad89b37%402ndquadrant.com
Diffstat (limited to 'src/backend/executor/nodeMergejoin.c')
0 files changed, 0 insertions, 0 deletions