aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeSubplan.c
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2018-08-16 16:49:10 +0200
committerTomas Vondra <tomas.vondra@postgresql.org>2018-08-16 16:51:46 +0200
commit864ecd716a0dd191e587dd09e24992be5e720b26 (patch)
tree5fd941179220d28d5d397b211d31d91b69b3a1b1 /src/backend/executor/nodeSubplan.c
parent8e9f229d2bf668e780ce10d511925b11855afd2c (diff)
downloadpostgresql-864ecd716a0dd191e587dd09e24992be5e720b26.tar.gz
postgresql-864ecd716a0dd191e587dd09e24992be5e720b26.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/nodeSubplan.c')
0 files changed, 0 insertions, 0 deletions