diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2015-02-20 12:10:01 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2015-02-20 12:10:01 -0300 |
commit | d42358efb16cc81122c53ffb35ac381b9158e519 (patch) | |
tree | 1358afb9c3db05813fdc64de89955561d23441e9 /src/backend/utils/adt/jsonfuncs.c | |
parent | 5740be6d6e39dd85587aa71b3bd1fb0a423858b0 (diff) | |
download | postgresql-d42358efb16cc81122c53ffb35ac381b9158e519.tar.gz postgresql-d42358efb16cc81122c53ffb35ac381b9158e519.zip |
Have TRUNCATE update pgstat tuple counters
This works by keeping a per-subtransaction record of the ins/upd/del
counters before the truncate, and then resetting them; this record is
useful to return to the previous state in case the truncate is rolled
back, either in a subtransaction or whole transaction. The state is
propagated upwards as subtransactions commit.
When the per-table data is sent to the stats collector, a flag indicates
to reset the live/dead counters to zero as well.
Catalog version bumped due to the change in pgstat format.
Author: Alexander Shulgin
Discussion: 1007.1207238291@sss.pgh.pa.us
Discussion: 548F7D38.2000401@BlueTreble.com
Reviewed-by: Álvaro Herrera, Jim Nasby
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions