aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/parallel.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-03-31 20:35:51 -0400
committerRobert Haas <rhaas@postgresql.org>2017-03-31 20:50:31 -0400
commit0ef26bb394abedb2745bd838c26ecb3131682bda (patch)
tree5980b908346fc3c53e89f047111aa140e51c8755 /src/include/access/parallel.h
parent86f0e538955ebacf6b79655807b635ca23ed6d28 (diff)
downloadpostgresql-0ef26bb394abedb2745bd838c26ecb3131682bda.tar.gz
postgresql-0ef26bb394abedb2745bd838c26ecb3131682bda.zip
Don't use bgw_main even to specify in-core bgworker entrypoints.
On EXEC_BACKEND builds, this can fail if ASLR is in use. Backpatch to 9.5. On master, completely remove the bgw_main field completely, since there is no situation in which it is safe for an EXEC_BACKEND build. On 9.6 and 9.5, leave the field intact to avoid breaking things for third-party code that doesn't care about working under EXEC_BACKEND. Prior to 9.5, there are no in-core bgworker entrypoints. Petr Jelinek, reviewed by me. Discussion: http://postgr.es/m/09d8ad33-4287-a09b-a77f-77f8761adb5e@2ndquadrant.com
Diffstat (limited to 'src/include/access/parallel.h')
-rw-r--r--src/include/access/parallel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/access/parallel.h b/src/include/access/parallel.h
index 4ac46fce57a..0651d1f208e 100644
--- a/src/include/access/parallel.h
+++ b/src/include/access/parallel.h
@@ -65,4 +65,6 @@ extern void AtEOXact_Parallel(bool isCommit);
extern void AtEOSubXact_Parallel(bool isCommit, SubTransactionId mySubId);
extern void ParallelWorkerReportLastRecEnd(XLogRecPtr last_xlog_end);
+extern void ParallelWorkerMain(Datum main_arg);
+
#endif /* PARALLEL_H */