pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ERROR: found xmin 54230249 from before relfrozenxid 61349053
3+ messages / 1 participants
[nested] [flat]

* ERROR: found xmin 54230249 from before relfrozenxid 61349053
@ 2018-08-02 12:38  rihad <rihad@mail.ru>
  0 siblings, 1 reply; 3+ messages in thread

From: rihad @ 2018-08-02 12:38 UTC (permalink / raw)
  To: pgsql-general

Hi all. We see such errors on one of our own (non-system) tables on 
Postgres 10.3. They stop both automatic vacuum & automatic analyze not 
only on that table, but on all tables & databases (manual vacuuming 
works though). Luckily it's a small (but important) table - less than 
1000 rows. Any quick way of fixing it with no downtime? Thanks.





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: ERROR: found xmin 54230249 from before relfrozenxid 61349053
@ 2018-08-02 13:34  rihad <rihad@mail.ru>
  parent: rihad <rihad@mail.ru>
  0 siblings, 1 reply; 3+ messages in thread

From: rihad @ 2018-08-02 13:34 UTC (permalink / raw)
  To: pgsql-general

On 08/02/2018 04:38 PM, rihad wrote:
> Hi all. We see such errors on one of our own (non-system) tables on 
> Postgres 10.3. They stop both automatic vacuum & automatic analyze not 
> only on that table, but on all tables & databases (manual vacuuming 
> works though). Luckily it's a small (but important) table - less than 
> 1000 rows. Any quick way of fixing it with no downtime? Thanks.
>

BTW, it's a materialized view, not a table. "refresh materialized view 
concurrently" is being run on it regularly, but apparently doesn't fix 
the problem.






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: ERROR: found xmin 54230249 from before relfrozenxid 61349053
@ 2018-08-02 14:08  rihad <rihad@mail.ru>
  parent: rihad <rihad@mail.ru>
  0 siblings, 0 replies; 3+ messages in thread

From: rihad @ 2018-08-02 14:08 UTC (permalink / raw)
  To: pgsql-general

On 08/02/2018 05:34 PM, rihad wrote:
> On 08/02/2018 04:38 PM, rihad wrote:
>> Hi all. We see such errors on one of our own (non-system) tables on 
>> Postgres 10.3. They stop both automatic vacuum & automatic analyze 
>> not only on that table, but on all tables & databases (manual 
>> vacuuming works though). Luckily it's a small (but important) table - 
>> less than 1000 rows. Any quick way of fixing it with no downtime? 
>> Thanks.
>>
>
> BTW, it's a materialized view, not a table. "refresh materialized view 
> concurrently" is being run on it regularly, but apparently doesn't fix 
> the problem.
>
>
Answering to myself: this probably relates to this issue:

https://www.postgresql.org/docs/9.4/static/release-9-4-17.html

  *

    Repair pg_upgrade's failure to preserve relfrozenxid for
    materialized views (Tom Lane, Andres Freund)

    This oversight could lead to data corruption in materialized views
    after an upgrade, manifesting as "could not access status of
    transaction" or "found xmin from before relfrozenxid" errors. The
    problem would be more likely to occur in seldom-refreshed
    materialized views, or ones that were maintained only with REFRESH
    MATERIALIZED VIEW CONCURRENTLY.

    If such corruption is observed, it can be repaired by refreshing the
    materialized view (without CONCURRENTLY).


Fixed on 2018-03-01, so the bug existed not only for 9.4.17, but for all 
major versions too.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-08-02 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-02 12:38 ERROR: found xmin 54230249 from before relfrozenxid 61349053 rihad <rihad@mail.ru>
2018-08-02 13:34 ` rihad <rihad@mail.ru>
2018-08-02 14:08   ` rihad <rihad@mail.ru>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox