Skip to content

Commit 0a927e5

Browse files
committed
pathman: bg worker minor bugfix
1 parent f3bcfc7 commit 0a927e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/pg_pathman/worker.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ create_partitions_bg_worker(Oid relid, Datum value, Oid value_type)
7676
}
7777

7878
status = WaitForBackgroundWorkerStartup(worker_handle, &pid);
79-
if (status != BGWH_STARTED)
79+
if (status == BGWH_POSTMASTER_DIED)
8080
{
8181
ereport(WARNING,
82-
(errmsg("Could not start dynamic pg_pathman background process"),
82+
(errmsg("Postmaster died during the pg_pathman background worker process"),
8383
errhint("More details may be available in the server log.")));
8484
}
8585

0 commit comments

Comments
 (0)