Re: [HACKERS] logical replication worker and statistics - Mailing list pgsql-hackers

From Stas Kelvich
Subject Re: [HACKERS] logical replication worker and statistics
Date
Msg-id 688DE87B-7A41-4EAE-B365-03E827D74B81@postgrespro.ru
Whole thread Raw
In response to Re: [HACKERS] logical replication worker and statistics  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: [HACKERS] logical replication worker and statistics  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
> On 10 Apr 2017, at 19:50, Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:
>
> On 4/10/17 05:49, Stas Kelvich wrote:
>> Here is small patch to call statistics in logical worker. Originally i thought that stat
>> collection during logical replication should manually account amounts of changed tuples,
>> but seems that it is already smoothly handled on relation level. So call to
>> pgstat_report_stat() is enough.
>
> I wonder whether we need a similar call somewhere in tablesync.c.  It
> seems to work without it, though.

I thought it spins up the same worker from worker.c.


Stas Kelvich
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] pg_upgrade vs extension upgrades
Next
From: ilmari@ilmari.org (Dagfinn Ilmari Mannsåker)
Date:
Subject: Re: [HACKERS] Compiler warning in costsize.c