Gene Hart <genekhart(at)gmail(dot)com> writes:
> select * from pg_prepared_xacts;
> returns 0 rows.
Hm. You might also confirm that the directory $PGDATA/pg_twophase/ is
empty, but it really should be if there's nothing in that view.
I think you'll have to do some more sleuthing. Check the
pg_database.datfrozenxid value for the "maindb" database, then look in
pg_class for the table(s) with that same value for pg_class.relfrozenxid.
Vacuum these table(s) individually. Do their relfrozenxid values
change?
regards, tom lane