David G. Johnston wrote:
> Related question: does a truncated table effectively reset its wraparound
> counter back to zero?
Yes, the relfrozenxid is set to RecentXmin (see ExecuteTruncate). Not
quite zero age but unless you have really old transactions around,
should be close enough.
> If the table in question is being truncated regularly it doesn't seem like
> this situation should arise.
Correct.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services