bgw.bgw_start_time = BgWorkerStart_RecoveryFinished;
snprintf(bgw.bgw_library_name, BGW_MAXLEN, "postgres");
snprintf(bgw.bgw_function_name, BGW_MAXLEN, "DataChecksumsWorkerLauncherMain");
- snprintf(bgw.bgw_name, BGW_MAXLEN, "datachecksum launcher");
- snprintf(bgw.bgw_type, BGW_MAXLEN, "datachecksum launcher");
+ snprintf(bgw.bgw_name, BGW_MAXLEN, "datachecksums launcher");
+ snprintf(bgw.bgw_type, BGW_MAXLEN, "datachecksums launcher");
bgw.bgw_restart_time = BGW_NEVER_RESTART;
bgw.bgw_notify_pid = MyProcPid;
bgw.bgw_main_arg = (Datum) 0;
bgw.bgw_start_time = BgWorkerStart_RecoveryFinished;
snprintf(bgw.bgw_library_name, BGW_MAXLEN, "postgres");
snprintf(bgw.bgw_function_name, BGW_MAXLEN, "%s", "DataChecksumsWorkerMain");
- snprintf(bgw.bgw_name, BGW_MAXLEN, "datachecksum worker");
- snprintf(bgw.bgw_type, BGW_MAXLEN, "datachecksum worker");
+ snprintf(bgw.bgw_name, BGW_MAXLEN, "datachecksums worker");
+ snprintf(bgw.bgw_type, BGW_MAXLEN, "datachecksums worker");
bgw.bgw_restart_time = BGW_NEVER_RESTART;
bgw.bgw_notify_pid = MyProcPid;
bgw.bgw_main_arg = ObjectIdGetDatum(db->dboid);
PG_PROCTYPE(B_BG_WORKER, "bgworker", gettext_noop("background worker"), BackgroundWorkerMain, true)
PG_PROCTYPE(B_BG_WRITER, "bgwriter", gettext_noop("background writer"), BackgroundWriterMain, true)
PG_PROCTYPE(B_CHECKPOINTER, "checkpointer", gettext_noop("checkpointer"), CheckpointerMain, true)
-PG_PROCTYPE(B_DATACHECKSUMSWORKER_LAUNCHER, "checksums", gettext_noop("datachecksum launcher"), NULL, false)
-PG_PROCTYPE(B_DATACHECKSUMSWORKER_WORKER, "checksums", gettext_noop("datachecksum worker"), NULL, false)
+PG_PROCTYPE(B_DATACHECKSUMSWORKER_LAUNCHER, "checksums", gettext_noop("datachecksums launcher"), NULL, false)
+PG_PROCTYPE(B_DATACHECKSUMSWORKER_WORKER, "checksums", gettext_noop("datachecksums worker"), NULL, false)
PG_PROCTYPE(B_DEAD_END_BACKEND, "backend", gettext_noop("dead-end client backend"), BackendMain, true)
PG_PROCTYPE(B_INVALID, "postmaster", gettext_noop("unrecognized"), NULL, false)
PG_PROCTYPE(B_IO_WORKER, "ioworker", gettext_noop("io worker"), IoWorkerMain, true)
$result = $node->poll_query_until(
'postgres',
"SELECT wait_event FROM pg_catalog.pg_stat_activity "
- . "WHERE backend_type = 'datachecksum worker';",
+ . "WHERE backend_type = 'datachecksums worker';",
'ChecksumEnableTemptableWait');
# The datachecksumsworker waits for temporary tables to disappear for 3
# Re-check the wait event to ensure we are blocked on the right thing.
$result = $node->safe_psql('postgres',
"SELECT wait_event FROM pg_catalog.pg_stat_activity "
- . "WHERE backend_type = 'datachecksum worker';");
+ . "WHERE backend_type = 'datachecksums worker';");
is($result, 'ChecksumEnableTemptableWait',
'ensure the correct wait condition is set');
test_checksum_state($node, 'inprogress-on');
$result = $node->poll_query_until(
'postgres',
- "SELECT count(*) FROM pg_stat_activity WHERE backend_type LIKE 'datachecksum%';",
+ "SELECT count(*) FROM pg_stat_activity WHERE backend_type LIKE 'datachecksums%';",
'0');
is($result, 1, 'await datachecksums worker/launcher termination');
$result = $node_primary->poll_query_until(
'postgres',
- "SELECT count(*) FROM pg_stat_activity WHERE backend_type LIKE 'datachecksum%';",
+ "SELECT count(*) FROM pg_stat_activity WHERE backend_type LIKE 'datachecksums%';",
'0');
is($result, 1, 'await datachecksums worker/launcher termination');
$postgresnode->poll_query_until('postgres',
"SELECT count(*) = 0 "
. "FROM pg_catalog.pg_stat_activity "
- . "WHERE backend_type = 'datachecksum launcher';");
+ . "WHERE backend_type = 'datachecksums launcher';");
}
}
}
$postgresnode->poll_query_until('postgres',
"SELECT count(*) = 0 "
. "FROM pg_catalog.pg_stat_activity "
- . "WHERE backend_type = 'datachecksum launcher';");
+ . "WHERE backend_type = 'datachecksums launcher';");
}
}
client backend|temp relation|normal
client backend|wal|init
client backend|wal|normal
-datachecksum launcher|relation|bulkread
-datachecksum launcher|relation|bulkwrite
-datachecksum launcher|relation|init
-datachecksum launcher|relation|normal
-datachecksum launcher|relation|vacuum
-datachecksum launcher|temp relation|normal
-datachecksum launcher|wal|init
-datachecksum launcher|wal|normal
-datachecksum worker|relation|bulkread
-datachecksum worker|relation|bulkwrite
-datachecksum worker|relation|init
-datachecksum worker|relation|normal
-datachecksum worker|relation|vacuum
-datachecksum worker|temp relation|normal
-datachecksum worker|wal|init
-datachecksum worker|wal|normal
+datachecksums launcher|relation|bulkread
+datachecksums launcher|relation|bulkwrite
+datachecksums launcher|relation|init
+datachecksums launcher|relation|normal
+datachecksums launcher|relation|vacuum
+datachecksums launcher|temp relation|normal
+datachecksums launcher|wal|init
+datachecksums launcher|wal|normal
+datachecksums worker|relation|bulkread
+datachecksums worker|relation|bulkwrite
+datachecksums worker|relation|init
+datachecksums worker|relation|normal
+datachecksums worker|relation|vacuum
+datachecksums worker|temp relation|normal
+datachecksums worker|wal|init
+datachecksums worker|wal|normal
io worker|relation|bulkread
io worker|relation|bulkwrite
io worker|relation|init