Add new function BackgroundWorkerInitializeConnectionByOid.
Robert Haas <rhaas@postgresql.org>
Add new function BackgroundWorkerInitializeConnectionByOid. 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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/bgworker.sgml | modified | +10 −7 |
| src/backend/bootstrap/bootstrap.c | modified | +1 −1 |
| src/backend/postmaster/autovacuum.c | modified | +2 −2 |
| src/backend/postmaster/postmaster.c | modified | +24 −1 |
| src/backend/tcop/postgres.c | modified | +1 −1 |
| src/backend/utils/init/miscinit.c | modified | +5 −3 |
| src/backend/utils/init/postinit.c | modified | +8 −5 |
| src/include/miscadmin.h | modified | +2 −2 |
| src/include/postmaster/bgworker.h | modified | +3 −0 |