pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ERROR: found multixact XX from before relminmxid YY
4+ messages / 3 participants
[nested] [flat]

* ERROR: found multixact XX from before relminmxid YY
@ 2018-12-29 00:25 Mark Fletcher <markf@corp.groups.io>
  2018-12-29 00:49 ` Re: ERROR: found multixact XX from before relminmxid YY Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Mark Fletcher @ 2018-12-29 00:25 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hi,

Starting yesterday morning, auto vacuuming of one of our postgresql 9.6.10
(CentOS 7) table's started failing:

ERROR:  found multixact 370350365 from before relminmxid 765860874
CONTEXT:  automatic vacuum of table "userdb.public.subs"

This is about as plain and simple a table as there is. No triggers or
foreign keys, I'm not using any extensions. It has about 2.8M rows. I have
not done any consistency checks, but nothing strange has manifested in
production.

Reading the various discussions about this error, the only solution I found
was here:

https://www.postgresql.org/message-id/CAGewt-ukbL6WL8cc-G%2BiN9AVvmMQkhA9i2TKP4-6wJr6YOQkzA%40mail.g...

But no other reports of this solving the problem. Can someone verify that
if I do the mentioned fix (and I assume upgrade to 9.6.11) that will fix
the problem? And that it doesn't indicate table corruption?

Thanks,
Mark

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

* Re: ERROR: found multixact XX from before relminmxid YY
  2018-12-29 00:25 ERROR: found multixact XX from before relminmxid YY Mark Fletcher <markf@corp.groups.io>
@ 2018-12-29 00:49 ` Tom Lane <tgl@sss.pgh.pa.us>
  2018-12-29 00:58   ` Re: ERROR: found multixact XX from before relminmxid YY Mark Fletcher <markf@corp.groups.io>
  2018-12-31 06:07   ` Re: ERROR: found multixact XX from before relminmxid YY Andres Freund <andres@anarazel.de>
  0 siblings, 2 replies; 4+ messages in thread

From: Tom Lane @ 2018-12-29 00:49 UTC (permalink / raw)
  To: Mark Fletcher <markf@corp.groups.io>; +Cc: pgsql-general@lists.postgresql.org

Mark Fletcher <markf@corp.groups.io> writes:
> Starting yesterday morning, auto vacuuming of one of our postgresql 9.6.10
> (CentOS 7) table's started failing:
> ERROR:  found multixact 370350365 from before relminmxid 765860874
> CONTEXT:  automatic vacuum of table "userdb.public.subs"

Ugh.

> Reading the various discussions about this error, the only solution I found
> was here:
> https://www.postgresql.org/message-id/CAGewt-ukbL6WL8cc-G%2BiN9AVvmMQkhA9i2TKP4-6wJr6YOQkzA%40mail.g...
> But no other reports of this solving the problem. Can someone verify that
> if I do the mentioned fix (and I assume upgrade to 9.6.11) that will fix
> the problem? And that it doesn't indicate table corruption?

Yeah, SELECT FOR UPDATE should overwrite the broken xmax value and thereby
fix it, I expect.  However, I don't see anything in the release notes
suggesting that we've fixed any related bugs since 9.6.10, so if this
just appeared then we've still got a problem :-(.  Did anything
interesting happen since your last successful autovacuum on that table?
Database crashes, WAL-related parameter changes, that sort of thing?

			regards, tom lane




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

* Re: ERROR: found multixact XX from before relminmxid YY
  2018-12-29 00:25 ERROR: found multixact XX from before relminmxid YY Mark Fletcher <markf@corp.groups.io>
  2018-12-29 00:49 ` Re: ERROR: found multixact XX from before relminmxid YY Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-12-29 00:58   ` Mark Fletcher <markf@corp.groups.io>
  1 sibling, 0 replies; 4+ messages in thread

From: Mark Fletcher @ 2018-12-29 00:58 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general@lists.postgresql.org

On Fri, Dec 28, 2018 at 4:49 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:

>
> Yeah, SELECT FOR UPDATE should overwrite the broken xmax value and thereby
> fix it, I expect.  However, I don't see anything in the release notes
> suggesting that we've fixed any related bugs since 9.6.10, so if this
> just appeared then we've still got a problem :-(.  Did anything
> interesting happen since your last successful autovacuum on that table?
> Database crashes, WAL-related parameter changes, that sort of thing?
>
> The last autovacuum of that table was on Dec 8th, the last auto analyze
was Dec 26. There have been no schema changes on that particular table,
database crashes or WAL-related parameter changes since then. We've done
other schema changes during that time, but otherwise the database has been
stable.

Thanks,
Mark

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

* Re: ERROR: found multixact XX from before relminmxid YY
  2018-12-29 00:25 ERROR: found multixact XX from before relminmxid YY Mark Fletcher <markf@corp.groups.io>
  2018-12-29 00:49 ` Re: ERROR: found multixact XX from before relminmxid YY Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-12-31 06:07   ` Andres Freund <andres@anarazel.de>
  1 sibling, 0 replies; 4+ messages in thread

From: Andres Freund @ 2018-12-31 06:07 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Mark Fletcher <markf@corp.groups.io>; pgsql-general@lists.postgresql.org

Hi,

On 2018-12-28 19:49:36 -0500, Tom Lane wrote:
> Mark Fletcher <markf@corp.groups.io> writes:
> > Starting yesterday morning, auto vacuuming of one of our postgresql 9.6.10
> > (CentOS 7) table's started failing:
> > ERROR:  found multixact 370350365 from before relminmxid 765860874
> > CONTEXT:  automatic vacuum of table "userdb.public.subs"
>
> Ugh.
>
> > Reading the various discussions about this error, the only solution I found
> > was here:
> > https://www.postgresql.org/message-id/CAGewt-ukbL6WL8cc-G%2BiN9AVvmMQkhA9i2TKP4-6wJr6YOQkzA%40mail.g...
> > But no other reports of this solving the problem. Can someone verify that
> > if I do the mentioned fix (and I assume upgrade to 9.6.11) that will fix
> > the problem? And that it doesn't indicate table corruption?
>
> Yeah, SELECT FOR UPDATE should overwrite the broken xmax value and thereby
> fix it, I expect.

Right.

> However, I don't see anything in the release notes
> suggesting that we've fixed any related bugs since 9.6.10, so if this
> just appeared then we've still got a problem :-(.  Did anything
> interesting happen since your last successful autovacuum on that table?
> Database crashes, WAL-related parameter changes, that sort of thing?

I think it's entirely conceivable that the damage happened with earlier versions,
and just became visible now as the global horizon increased.

Greetings,

Andres Freund




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


end of thread, other threads:[~2018-12-31 06:07 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-12-29 00:25 ERROR: found multixact XX from before relminmxid YY Mark Fletcher <markf@corp.groups.io>
2018-12-29 00:49 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-12-29 00:58   ` Mark Fletcher <markf@corp.groups.io>
2018-12-31 06:07   ` Andres Freund <andres@anarazel.de>

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