aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-01-29 10:22:42 +0900
committerMichael Paquier <michael@paquier.xyz>2022-01-29 10:22:42 +0900
commitdc084d7c730c93541a386851de9c62bd0e9a0c92 (patch)
treebb5799715bdc2f11e29290fb59c514ae8d0441d8 /src/backend/access/gist
parent0d72d6b341f0d11674c7efb269f2d824c983c35d (diff)
downloadpostgresql-dc084d7c730c93541a386851de9c62bd0e9a0c92.tar.gz
postgresql-dc084d7c730c93541a386851de9c62bd0e9a0c92.zip
Fix incorrect memory context switch in COPY TO execution
c532d15 has split the logic of COPY commands into multiple files, one change being to move the internals of BeginCopy() to BeginCopyTo(). Originally the code was written so as we'd switch back-and-forth between the current execution memory context and the dedicated memory context for the COPY command, and this refactoring has introduced an extra switch to the current memory context from the COPY context once BeginCopyTo() is done with the past logic coming from BeginCopy(). The code was correctly doing the analyze, rewrite and planning phases in the COPY context, but it was not assigning "copy_file" (FILE* used when copying to a source file) and "filename" in the COPY context, making the COPY status data inconsistent. Author: Bharath Rupireddy Reviewed-by: Japin Li Discussion: https://postgr.es/m/CALj2ACWvVa69foi9jhHFY=2BuHxAoYboyE+vXQTARwxZcJnVrQ@mail.gmail.com Backpatch-through: 14
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions