Re: [HACKERS] Stats sender and 2pc minor problem

2016-10-14 Thread Alvaro Herrera
Tom Lane wrote: > Stas Kelvich writes: > > Statistics sender logic during usual commit and two-phase commit do not > > strictly matches each other and that leads to delta_live_tuples added to > > n_live_tup in case of truncate in two phase commit. > > Yeah, that code

Re: [HACKERS] Stats sender and 2pc minor problem

2016-10-13 Thread Tom Lane
Stas Kelvich writes: > Statistics sender logic during usual commit and two-phase commit do not > strictly matches each other and that leads to delta_live_tuples added to > n_live_tup in case of truncate in two phase commit. Yeah, that code says it's supposed to match

[HACKERS] Stats sender and 2pc minor problem

2016-10-13 Thread Stas Kelvich
Hello. Statistics sender logic during usual commit and two-phase commit do not strictly matches each other and that leads to delta_live_tuples added to n_live_tup in case of truncate in two phase commit. That can be see in following example: CREATE TABLE trunc_stats_test5(id serial); INSERT