pgsql: Use pg_stat_get_xact* functions within xacts

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use pg_stat_get_xact* functions within xacts
Date: 2018-03-28 04:22:07
Message-ID: E1f12b9-0001h9-O4@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use pg_stat_get_xact* functions within xacts

Resolve build farm failures from c203d6cf81b4d7e43,
diagnosed by Tom Lane.

The output of pg_stat_get_xact_tuples_hot_updated() and friends
is not guaranteed to show anything after the transaction completes.
Data is flushed slowly to stats collector, so using them can
give timing issues.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5b0d7f6996abfc1e3e51bac62af6076903635dc8

Modified Files
--------------
src/test/regress/expected/func_index.out | 9 ++++++---
src/test/regress/sql/func_index.sql | 9 ++++++---
2 files changed, 12 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2018-03-28 04:23:08 Re: pgsql: Allow HOT updates for some expression indexes
Previous Message Andres Freund 2018-03-28 04:18:40 Re: pgsql: Fast ALTER TABLE ADD COLUMN with a non-NULL default