BUG #19521: After a minor PostgreSQL update from 14.22 to 14.23, the database goes into an infinite loop.

Поиск
Список
Период
Сортировка
Искать

BUG #19521: After a minor PostgreSQL update from 14.22 to 14.23, the database goes into an infinite loop.

От:
PG Bug reporting form <noreply@postgresql.org>
Дата:
The following bug has been logged on the website:

Bug reference:      19521
Logged by:          Sergey Apoychenko
Email address:      sdaekb@yandex.ru
PostgreSQL version: 14.23
Operating system:   CentOS 7.9
Description:        

After a minor PostgreSQL update from 14.22 to 14.23 on a physical replica,
endless messages appear.

When starting the database
2026-06-15 15:17:27.331 [2582] postgres@127.0.0.1(58784) /postgres/
[unknown] |6a2fed57.a16|:2 (0): > DETAIL:  Consistent recovery state has not
been yet reached.
2026-06-15 15:17:28.543 [2584] postgres@127.0.0.1(58788) /postgres/
[unknown] |6a2fed58.a18|:1 (0): > FATAL:  the database system is not yet
accepting connections
2026-06-15 15:17:28.543 [2584] postgres@127.0.0.1(58788) /postgres/
[unknown] |6a2fed58.a18|:2 (0): > DETAIL:  Consistent recovery state has not
been yet reached.
2026-06-15 15:17:29.736 [2586] postgres@127.0.0.1(58792) /postgres/
[unknown] |6a2fed59.a1a|:1 (0): > FATAL:  the database system is not yet
accepting connections
2026-06-15 15:17:29.736 [2586] postgres@127.0.0.1(58792) /postgres/
[unknown] |6a2fed59.a1a|:2 (0): > DETAIL:  Consistent recovery state has not
been yet reached.
2026-06-15 15:17:32.329 [2589] postgres@127.0.0.1(58796) /postgres/
[unknown] |6a2fed5c.a1d|:1 (0): > FATAL:  the database system is not yet
accepting connections

When trying to stop the database
2026-06-15 15:20:33.445 [1803] @ //  |6a2fec4a.70b|:7 (0): > LOG:  received
fast shutdown request
2026-06-15 15:20:33.588 [3269] postgres@127.0.0.1(59146) /postgres/
[unknown] |6a2fee11.cc5|:1 (0): > FATAL:  the database system is shutting
down
2026-06-15 15:20:34.643 [3271] postgres@127.0.0.1(59150) /postgres/
[unknown] |6a2fee12.cc7|:1 (0): > FATAL:  the database system is shutting
down
2026-06-15 15:20:36.024 [3273] postgres@127.0.0.1(59154) /postgres/
[unknown] |6a2fee14.cc9|:1 (0): > FATAL:  the database system is shutting
down
2026-06-15 15:20:36.051 [3274] postgres@127.0.0.1(59158) /postgres/
[unknown] |6a2fee14.cca|:1 (0): > FATAL:  the database system is shutting
down
2026-06-15 15:20:40.009 [3282] postgres@127.0.0.1(59162) /postgres/
[unknown] |6a2fee18.cd2|:1 (0): > FATAL:  the database system is shutting
down
2026-06-15 15:20:51.059 [3291] postgres@127.0.0.1(59166) /postgres/
[unknown] |6a2fee23.cdb|:1 (0): > FATAL:  the database system is shutting
down

After rolling back to version 14.22, everything works as intended.




Re: BUG #19521: After a minor PostgreSQL update from 14.22 to 14.23, the database goes into an infinite loop.

От:
Michael Paquier <michael@paquier.xyz>
Дата:
Вложения:
On Mon, Jun 15, 2026 at 10:44:31PM +0500, Andrey Borodin wrote:
> Hi! Thanks for the report. Can you please give a bit more logs? This excerpt is
> missing errors from the startup process. And message from this process could shed
> a light on a root cause.

Looking at the set of changes in the range REL_14_22..REL_14_23, we
don't have many things related to recovery, so if you can provide more
details we will likely be able to point to a cause.  Without more
information there is nothing that we can unfortunately do.

One thing that I suspect is some custom extension code that may live
outside of core.  I have not heard about cases similar to the one
here, and it's been more than 4 weeks since this 14.23 has been
released.
--
Michael

Re: BUG #19521: After a minor PostgreSQL update from 14.22 to 14.23, the database goes into an infinite loop.

От:
Álvaro Herrera <alvherre@kurilemu.de>
Дата:
On 2026-Jun-15, Andrey Borodin wrote:

> > On 15 Jun 2026, at 18:39, PG Bug reporting form  wrote:
> > 
> > After rolling back to version 14.22, everything works as intended.
> 
> Hi! Thanks for the report. Can you please give a bit more logs? This excerpt is
> missing errors from the startup process. And message from this process could shed
> a light on a root cause.

I suspect e35e466f61b [1] might be related.  That's a bug that was
fixed in 2bb60eb4fea [2], just after 14.23.

[1] https://postgr.es/c/e35e466f61b
[2] https://postgr.es/c/2bb60eb4fea

If not, some data from pg_waldump around the problem area might be useful.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"If you have nothing to say, maybe you need just the right tool to help you
not say it."                   (New York Times, about Microsoft PowerPoint)


Re: BUG #19521: After a minor PostgreSQL update from 14.22 to 14.23, the database goes into an infinite loop.

От:
Andrey Borodin <x4mmm@yandex-team.ru>
Дата:


> On 16 Jun 2026, at 23:36, Álvaro Herrera  wrote:
> 
> On 2026-Jun-15, Andrey Borodin wrote:
> 
>>> On 15 Jun 2026, at 18:39, PG Bug reporting form  wrote:
>>> 
>>> After rolling back to version 14.22, everything works as intended.
>> 
>> Hi! Thanks for the report. Can you please give a bit more logs? This excerpt is
>> missing errors from the startup process. And message from this process could shed
>> a light on a root cause.
> 
> I suspect e35e466f61b [1] might be related.  That's a bug that was
> fixed in 2bb60eb4fea [2], just after 14.23.
> 
> [1] https://postgr.es/c/e35e466f61b
> [2] https://postgr.es/c/2bb60eb4fea
> 
> If not, some data from pg_waldump around the problem area might be useful.

Yeah, that was my concern. But that bug manifests as startup process failure.
I've contacted Sergey offlist, he observed hanging

postgres: data: startup recovering 000000060000C29100000016

so it's hard to tell what's going on without backtrace...


Best regards, Andrey Borodin.

Re: BUG #19521: After a minor PostgreSQL update from 14.22 to 14.23, the database goes into an infinite loop.

От:
Michael Paquier <michael@paquier.xyz>
Дата:
Вложения:
On Wed, Jun 17, 2026 at 09:49:22PM +0500, Сергей Дм. Апойченко wrote:
> It doesn't seem to be a code error, but rather a configuration issue
> on the server itself. Given that I cannot provide any additional
> information and was unable to reproduce the error, I would like to
> close the ticket. Thank you for your response.

Okay, thanks for the update.  The handling of multixacts during
recovery has already been tweaked a bit.  I think that we are in a
good spot in terms of lock handling in the stable branches, but if you
still see something strange, please feel free to update this thread
with more information for investigation.
--
Michael
FAQ