From ec0b1f271639ff0fafd1310de3c47cbb214c6294 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 30 May 2004 17:58:12 +0000 Subject: [PATCH] Paranoia: ensure MyBackendId is InvalidBackendId in a process that has never executed SIBackendInit(). --- src/backend/utils/init/globals.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/utils/init/globals.c b/src/backend/utils/init/globals.c index 2a22f666f6..3a5d33724a 100644 --- a/src/backend/utils/init/globals.c +++ b/src/backend/utils/init/globals.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.89 2004/05/29 22:48:21 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.90 2004/05/30 17:58:12 tgl Exp $ * * NOTES * Globals used all over the place should be declared here and not @@ -53,7 +53,7 @@ char postgres_exec_path[MAXPGPATH]; /* full path to backend */ /* note: currently this is not valid in backend processes */ #endif -BackendId MyBackendId; +BackendId MyBackendId = InvalidBackendId; char *DatabasePath = NULL; Oid MyDatabaseId = InvalidOid; -- 2.40.0