Re: BUG #19894: CREATE DATABASE logs all-zeros visibility map

From: Сергей Шиндерук <s(dot)shinderuk(at)postgrespro(dot)ru>
To: s(dot)shinderuk(at)postgrespro(dot)ru, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19894: CREATE DATABASE logs all-zeros visibility map
Date: 2026-11-12 06:51:45
Message-ID: E2B2D02B-F389-4654-87D6-38E39948DD9F@postgrespro.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


> 12 нояб. 2026 г., в 03:49, PG Bug reporting form <noreply(at)postgresql(dot)org> написал(а):
>
> The following bug has been logged on the website:
>
> Bug reference: 19894
> Logged by: Sergey Shinderuk
> Email address: s(dot)shinderuk(at)postgrespro(dot)ru
> PostgreSQL version: 17.11
> Operating system: Ubuntu 24.04
> Description:
>
> Hello,
>
> after CREATE DATABASE on a primary
> select * from pg_visibility_map('pg_class')
> blkno | all_visible | all_frozen
> -------+-------------+------------
> 0 | t | t
> 1 | t | t
> 2 | t | t
> 3 | t | t
> 4 | t | t
> 5 | t | t
> 6 | t | t
> 7 | t | t
> 8 | t | t
> 9 | t | t
> 10 | t | t
> 11 | t | t
> 12 | t | t
> 13 | t | t
> (14 rows)
>
> but on a standby:
> blkno | all_visible | all_frozen
> -------+-------------+------------
> 0 | f | f
> 1 | f | f
> 2 | f | f
> 3 | f | f
> 4 | f | f
> 5 | f | f
> 6 | f | f
> 7 | f | f
> 8 | f | f
> 9 | f | f
> 10 | f | f
> 11 | f | f
> 12 | f | f
> 13 | f | f
> (14 rows)

Sorry, looks like it's a known issue:
https://www.postgresql.org/message-id/CAAKRu_bK7oJvtrrzL_V-OHouCWDKyU2-ERv+QvV6XM9Wh2dpUg@mail.gmail.com
https://www.postgresql.org/message-id/CAAKRu_aaP%3D0GZe%2BD721byOM9Vwjtu94VdAE_em0PNC0r3EK2zg%40mail.gmail.com

Didn't follow the discussion yet.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Aleksander Alekseev 2026-11-12 09:46:34 Re: bug: Gather rescan keeps the first scan's tuple bound in workers
Previous Message Corey Huinker 2026-11-12 05:31:40 Re: BUG #19857: Stats restore rejects empty arrays, losing range and array stats