Add new function BackgroundWorkerInitializeConnectionByOid

Enterprise / PostgreSQL - Robert Haas [postgresql.org] - 2 February 2015 15:23 UTC

Sometimes it's useful for a background worker to be able to initialize its database connection by OID rather than by name, so provide a way to do that.

5d2f957 Add new function BackgroundWorkerInitializeConnectionByOid.
doc/src/sgml/bgworker.sgml | 17 ++++++++++-------
src/backend/bootstrap/bootstrap.c | 2 +-
src/backend/postmaster/autovacuum.c | 4 ++--
src/backend/postmaster/postmaster.c | 25 ++++++++++++++++++++++++-
src/backend/tcop/postgres.c | 2 +-
src/backend/utils/init/miscinit.c | 8 +++++---
src/backend/utils/init/postinit.c | 13 ++++++++-----
src/include/miscadmin.h | 4 ++--
src/include/postmaster/bgworker.h | 3 +++
9 files changed, 56 insertions(+), 22 deletions(-)

Upstream: git.postgresql.org


  • Share