diff options
author | Robert Haas <rhaas@postgresql.org> | 2015-02-02 16:23:59 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2015-02-02 16:23:59 -0500 |
commit | 5d2f957f3f9dcd88384780876f535b423151f9bf (patch) | |
tree | a857f045f8bc849ef6cb3aca570e7252e74a324b /src/backend/tcop/postgres.c | |
parent | 2488eff889f83d7d6411be9a6172ff69df3f0085 (diff) | |
download | postgresql-5d2f957f3f9dcd88384780876f535b423151f9bf.tar.gz postgresql-5d2f957f3f9dcd88384780876f535b423151f9bf.zip |
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.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index b82c3b333bd..556e5633284 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -3714,7 +3714,7 @@ PostgresMain(int argc, char *argv[], * it inside InitPostgres() instead. In particular, anything that * involves database access should be there, not here. */ - InitPostgres(dbname, InvalidOid, username, NULL); + InitPostgres(dbname, InvalidOid, username, InvalidOid, NULL); /* * If the PostmasterContext is still around, recycle the space; we don't |