aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2020-08-06 14:13:03 -0400
committerRobert Haas <rhaas@postgresql.org>2020-08-06 14:13:03 -0400
commitbab150045bd9766869f471ede88734ea0989261c (patch)
tree2d848448a254c4b0c35f2ba733523bf19275ae0e /src
parenta6775352476ac92d6b3eb3ae2dfd2775e3622afe (diff)
downloadpostgresql-bab150045bd9766869f471ede88734ea0989261c.tar.gz
postgresql-bab150045bd9766869f471ede88734ea0989261c.zip
Register llvm_shutdown using on_proc_exit, not before_shmem_exit.
This seems more correct, because other before_shmem_exit calls may expect the infrastructure that is needed to run queries and access the database to be working, and also because this cleanup has nothing to do with shared memory. There are no known user-visible consequences to this, though, apart from what was previous fixed by commit 303640199d0436c5e7acdf50b837a027b5726594 and back-patched as commit bcbc27251d35336a6442761f59638138a772b839 and commit f7013683d9bb663a6a917421b1374306a32f165b, so for now, no back-patch. Bharath Rupireddy Discussion: http://postgr.es/m/CALj2ACWk7j4F2v2fxxYfrroOF=AdFNPr1WsV+AGtHAFQOqm_pw@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/jit/llvm/llvmjit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c
index af8b34aaaf3..43bed78a529 100644
--- a/src/backend/jit/llvm/llvmjit.c
+++ b/src/backend/jit/llvm/llvmjit.c
@@ -683,7 +683,7 @@ llvm_session_initialize(void)
}
#endif
- before_shmem_exit(llvm_shutdown, 0);
+ on_proc_exit(llvm_shutdown, 0);
llvm_session_initialized = true;