Re: 9.6.11- could not truncate directory "pg_serial": apparent wraparound

From: Pavel Suderevsky <psuderevsky(at)gmail(dot)com>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: 9.6.11- could not truncate directory "pg_serial": apparent wraparound
Date: 2019-06-27 16:47:29
Message-ID: CAEBTBzuCS6MuE_Agk7jMPwMofHu2QY_6enf1_WaAaemSS+nVLA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Got this issue again.
Settings on the platform (PG 9.6.11):
max_pred_locks_per_transaction = 3000
max_connections = 800

Despite the fact that documentation says:
> with the exception of fast-path locks, each lock manager will deliver a
consistent set of results
I've noticed the following:
1. pg_locks showed 2 million SIReadLocks for the pid that has been in the
"idle" state for a dozen of seconds already.
2. pg_locks showed count of 5 million SIReadLock granted although I
expected a limit of 2.4 million SIReadLocks with settings provided above.

And still no any signs of serializable transactions that could live for a 1
billion xids.
--
Pavel Suderevsky
E: psuderevsky(at)gmail(dot)com

вт, 9 апр. 2019 г. в 16:00, Pavel Suderevsky <psuderevsky(at)gmail(dot)com>:

> On Sun, Apr 7, 2019 at 2:31 AM Pavel Suderevsky <psuderevsky(at)gmail(dot)com>
>> wrote:
>> > Probably if you advise me what could cause "pg_serial": apparent
>> wraparound messages I would have more chances to handle all the performance
>> issues.
>>
>> Did you see that warning at some point before the later error?
>>
> Thomas,
>
> Thank you for your reply!
>
> No, there have never been such warnings.
>
> I wonder if this condition required you to have a serializable
>> transaction running (or prepared) while you consume 2^30 AKA ~1
>> billion xids. I think it is unreachable in v11+ because commit
>> e5eb4fa8 allowed for more SLRU pages to avoid this artificially early
>> wrap.
>
>
> Do I understand right that this is about Virtual txids? Have no idea how
> even a something close to a billion of transaction ids could be consumed on
> this system.
>
> --
> Pavel Suderevsky
> E: psuderevsky(at)gmail(dot)com
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Geoghegan 2019-06-27 17:09:53 Re: Postgresql 12 Beta2 Crashes for any Insert/Update
Previous Message Fabrízio de Royes Mello 2019-06-27 13:49:15 Re: In-depth commercial postgresql training