mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Report statistics in logical replication workers
Author: Stas Kelvich <s.kelvich@postgrespro.ru> Author: Petr Jelinek <petr.jelinek@2ndquadrant.com> Reported-by: Fujii Masao <masao.fujii@gmail.com>
This commit is contained in:
@ -114,9 +114,15 @@ StringInfo copybuf = NULL;
|
||||
static void pg_attribute_noreturn()
|
||||
finish_sync_worker(void)
|
||||
{
|
||||
/* Commit any outstanding transaction. */
|
||||
/*
|
||||
* Commit any outstanding transaction. This is the usual case, unless
|
||||
* there was nothing to do for the table.
|
||||
*/
|
||||
if (IsTransactionState())
|
||||
{
|
||||
CommitTransactionCommand();
|
||||
pgstat_report_stat(false);
|
||||
}
|
||||
|
||||
/* And flush all writes. */
|
||||
XLogFlush(GetXLogWriteRecPtr());
|
||||
|
Reference in New Issue
Block a user