pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feederror in vacuum
9+ messages / 4 participants
[nested] [flat]
* error in vacuum
@ 2018-09-01 23:47 Dave Peticolas <dave@krondo.com>
2018-09-01 23:57 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 00:10 ` Re: error in vacuum Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 2 replies; 9+ messages in thread
From: Dave Peticolas @ 2018-09-01 23:47 UTC (permalink / raw)
To: pgsql-general
I'm seeing this error on a table repeatedly:
found update xid 3433096759 <(343)%20309-6759> from before relfrozenxid
3498422955
What can I do to repair this table?
thanks,
dave
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: error in vacuum
2018-09-01 23:47 error in vacuum Dave Peticolas <dave@krondo.com>
@ 2018-09-01 23:57 ` Dave Peticolas <dave@krondo.com>
1 sibling, 0 replies; 9+ messages in thread
From: Dave Peticolas @ 2018-09-01 23:57 UTC (permalink / raw)
To: pgsql-general
On Sat, Sep 1, 2018 at 4:47 PM Dave Peticolas <dave@krondo.com> wrote:
> I'm seeing this error on a table repeatedly:
>
> found update xid 3433096759 <(343)%20309-6759> from before relfrozenxid
> 3498422955
>
> What can I do to repair this table?
>
> This is version 9.6.
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: error in vacuum
2018-09-01 23:47 error in vacuum Dave Peticolas <dave@krondo.com>
@ 2018-09-02 00:10 ` Adrian Klaver <adrian.klaver@aklaver.com>
2018-09-02 00:28 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
1 sibling, 1 reply; 9+ messages in thread
From: Adrian Klaver @ 2018-09-02 00:10 UTC (permalink / raw)
To: Dave Peticolas <dave@krondo.com>; pgsql-general
On 09/01/2018 04:47 PM, Dave Peticolas wrote:
> I'm seeing this error on a table repeatedly:
>
> found update xid 3433096759 <tel:%28343%29%20309-6759> from before
> relfrozenxid 3498422955
Where is this, your primary or the instance you are running from the backup?
>
> What can I do to repair this table?
>
> thanks,
> dave
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: error in vacuum
2018-09-01 23:47 error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 00:10 ` Re: error in vacuum Adrian Klaver <adrian.klaver@aklaver.com>
@ 2018-09-02 00:28 ` Dave Peticolas <dave@krondo.com>
2018-09-02 01:31 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
0 siblings, 1 reply; 9+ messages in thread
From: Dave Peticolas @ 2018-09-02 00:28 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: pgsql-general
On Sat, Sep 1, 2018, 5:10 PM Adrian Klaver <adrian.klaver@aklaver.com>
wrote:
> On 09/01/2018 04:47 PM, Dave Peticolas wrote:
> > I'm seeing this error on a table repeatedly:
> >
> > found update xid 3433096759 <tel:%28343%29%20309-6759> from before
> > relfrozenxid 3498422955
>
> Where is this, your primary or the instance you are running from the
> backup?
>
This is a primary, 9.6.8 to be exact.
>
> > What can I do to repair this table?
> >
> > thanks,
> > dave
> >
> >
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
>
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: error in vacuum
2018-09-01 23:47 error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 00:10 ` Re: error in vacuum Adrian Klaver <adrian.klaver@aklaver.com>
2018-09-02 00:28 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
@ 2018-09-02 01:31 ` Dave Peticolas <dave@krondo.com>
2018-09-02 01:56 ` Re: error in vacuum Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 9+ messages in thread
From: Dave Peticolas @ 2018-09-02 01:31 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: pgsql-general
On Sat, Sep 1, 2018 at 5:28 PM Dave Peticolas <dave@krondo.com> wrote:
> On Sat, Sep 1, 2018, 5:10 PM Adrian Klaver <adrian.klaver@aklaver.com>
> wrote:
>
>> On 09/01/2018 04:47 PM, Dave Peticolas wrote:
>> > I'm seeing this error on a table repeatedly:
>> >
>> > found update xid 3433096759 <(343)%20309-6759>
>> <tel:%28343%29%20309-6759> from before
>> > relfrozenxid 3498422955
>>
>> Where is this, your primary or the instance you are running from the
>> backup?
>>
>
> This is a primary, 9.6.8 to be exact.
>
> >
>> > What can I do to repair this table?
>>
>
One thing I tried on a database restored from a primary backup that
exhibits the same "found update xid" error is this:
1. pg_dump the table and its referencing tables.
2. truncate the table and its referencing tables.
3. Load the dump file.
Does that seem reasonable?
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: error in vacuum
2018-09-01 23:47 error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 00:10 ` Re: error in vacuum Adrian Klaver <adrian.klaver@aklaver.com>
2018-09-02 00:28 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 01:31 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
@ 2018-09-02 01:56 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-09-02 02:02 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
0 siblings, 1 reply; 9+ messages in thread
From: Tom Lane @ 2018-09-02 01:56 UTC (permalink / raw)
To: Dave Peticolas <dave@krondo.com>; +Cc: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-general
Dave Peticolas <dave@krondo.com> writes:
>>> I'm seeing this error on a table repeatedly:
>>> found update xid 3433096759 from before relfrozenxid 3498422955
>> This is a primary, 9.6.8 to be exact.
This message is known to be associated with several data-corruption bugs
we've fixed recently. You should update to current (9.6.10) sooner not
later. I don't think that will cure existing corruption for you, but
it should prevent things from getting worse.
regards, tom lane
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: error in vacuum
2018-09-01 23:47 error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 00:10 ` Re: error in vacuum Adrian Klaver <adrian.klaver@aklaver.com>
2018-09-02 00:28 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 01:31 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 01:56 ` Re: error in vacuum Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-09-02 02:02 ` Dave Peticolas <dave@krondo.com>
2018-09-02 02:24 ` Re: error in vacuum Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 9+ messages in thread
From: Dave Peticolas @ 2018-09-02 02:02 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-general
On Sat, Sep 1, 2018 at 6:56 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Dave Peticolas <dave@krondo.com> writes:
> >>> I'm seeing this error on a table repeatedly:
> >>> found update xid 3433096759 <(343)%20309-6759> from before
> relfrozenxid 3498422955
>
> >> This is a primary, 9.6.8 to be exact.
>
> This message is known to be associated with several data-corruption bugs
> we've fixed recently. You should update to current (9.6.10) sooner not
> later. I don't think that will cure existing corruption for you, but
> it should prevent things from getting worse.
>
Ok, thank you for that information I will do so. The dump/truncate/restore
I mentioned in a later post seems to fix the corruption in a restored DB.
Given the nature of the bug do you think that would fix that table?
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: error in vacuum
2018-09-01 23:47 error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 00:10 ` Re: error in vacuum Adrian Klaver <adrian.klaver@aklaver.com>
2018-09-02 00:28 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 01:31 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 01:56 ` Re: error in vacuum Tom Lane <tgl@sss.pgh.pa.us>
2018-09-02 02:02 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
@ 2018-09-02 02:24 ` Andres Freund <andres@anarazel.de>
2018-09-02 02:40 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
0 siblings, 1 reply; 9+ messages in thread
From: Andres Freund @ 2018-09-02 02:24 UTC (permalink / raw)
To: Dave Peticolas <dave@krondo.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-general
On 2018-09-01 19:02:18 -0700, Dave Peticolas wrote:
> On Sat, Sep 1, 2018 at 6:56 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> > Dave Peticolas <dave@krondo.com> writes:
> > >>> I'm seeing this error on a table repeatedly:
> > >>> found update xid 3433096759 <(343)%20309-6759> from before
> > relfrozenxid 3498422955
> >
> > >> This is a primary, 9.6.8 to be exact.
> >
> > This message is known to be associated with several data-corruption bugs
> > we've fixed recently. You should update to current (9.6.10) sooner not
> > later. I don't think that will cure existing corruption for you, but
> > it should prevent things from getting worse.
> >
>
> Ok, thank you for that information I will do so. The dump/truncate/restore
> I mentioned in a later post seems to fix the corruption in a restored DB.
> Given the nature of the bug do you think that would fix that table?
Yes, it's fairly likely that it does. You might even get around it by
just doing a no-op update of the whole table. Nevertheless you need to
upgrade, or more of that corruption can occur.
Greetings,
Andres Freund
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: error in vacuum
2018-09-01 23:47 error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 00:10 ` Re: error in vacuum Adrian Klaver <adrian.klaver@aklaver.com>
2018-09-02 00:28 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 01:31 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 01:56 ` Re: error in vacuum Tom Lane <tgl@sss.pgh.pa.us>
2018-09-02 02:02 ` Re: error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-02 02:24 ` Re: error in vacuum Andres Freund <andres@anarazel.de>
@ 2018-09-02 02:40 ` Dave Peticolas <dave@krondo.com>
0 siblings, 0 replies; 9+ messages in thread
From: Dave Peticolas @ 2018-09-02 02:40 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-general
On Sat, Sep 1, 2018 at 7:24 PM Andres Freund <andres@anarazel.de> wrote:
> On 2018-09-01 19:02:18 -0700, Dave Peticolas wrote:
> > On Sat, Sep 1, 2018 at 6:56 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >
> > > Dave Peticolas <dave@krondo.com> writes:
> > > >>> I'm seeing this error on a table repeatedly:
> > > >>> found update xid 3433096759 <(343)%20309-6759> <(343)%20309-6759>
> from before
> > > relfrozenxid 3498422955
> > >
> > > >> This is a primary, 9.6.8 to be exact.
> > >
> > > This message is known to be associated with several data-corruption
> bugs
> > > we've fixed recently. You should update to current (9.6.10) sooner not
> > > later. I don't think that will cure existing corruption for you, but
> > > it should prevent things from getting worse.
> > >
> >
> > Ok, thank you for that information I will do so. The
> dump/truncate/restore
> > I mentioned in a later post seems to fix the corruption in a restored DB.
> > Given the nature of the bug do you think that would fix that table?
>
> Yes, it's fairly likely that it does. You might even get around it by
> just doing a no-op update of the whole table. Nevertheless you need to
> upgrade, or more of that corruption can occur.
>
Indeed, that does seem to fix the issue and is much simpler, thank you. I'm
going to schedule this upgrade with all due haste.
^ permalink raw reply [nested|flat] 9+ messages in thread
end of thread, other threads:[~2018-09-02 02:40 UTC | newest]
Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-01 23:47 error in vacuum Dave Peticolas <dave@krondo.com>
2018-09-01 23:57 ` Dave Peticolas <dave@krondo.com>
2018-09-02 00:10 ` Adrian Klaver <adrian.klaver@aklaver.com>
2018-09-02 00:28 ` Dave Peticolas <dave@krondo.com>
2018-09-02 01:31 ` Dave Peticolas <dave@krondo.com>
2018-09-02 01:56 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-09-02 02:02 ` Dave Peticolas <dave@krondo.com>
2018-09-02 02:24 ` Andres Freund <andres@anarazel.de>
2018-09-02 02:40 ` Dave Peticolas <dave@krondo.com>
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