Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x683N-00030u-0m for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Sep 2026 14:53:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x683M-00DqWC-24 for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Sep 2026 14:53:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x5ynZ-00BNO3-09 for pgsql-bugs@lists.postgresql.org; Mon, 14 Sep 2026 05:00:09 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x5ynW-00000000HWE-1RIF for pgsql-bugs@lists.postgresql.org; Mon, 14 Sep 2026 05:00:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Message-ID:Date:Reply-To:Cc:From:To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Content-ID: Content-Description:In-Reply-To:References; bh=/GVhId6IeN7E8pIOsEci7dwCmosOdfrvU5Ub1ioM+94=; b=1/NgK1GSS2sN7PGgt9LDfBwTES czgcHoROa9yxsv5PwioH374S71MP4aEdzddDxbIVhufs5513AIGs+atSXEK9Y4XaBKjnFhY5AwqPz Vlip+4i+INY3r5gJ69zUx3zziqD2ICAfY0onZymFxOWsgNfpJB/Sw6tQz/5tlOP0LfPnEH0L9+Imt aaWufzlJfs8qLKXQjOrFI0+69D/2heUsmPSubAv6V4mcRaxZOrHPHJGjs3wNZ2Z1Ka+XEBpglWu7+ J+X7C8fNLRJwlbcEtviPe9prHX78y01OimsYwNmp48XbuuC8qqeZXopPcWDeqFj46LMmDs3aufQQB BR0qjphw==; Received: from wrigleys.postgresql.org ([2a02:16a8:dc51::60]) by mahout.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x5ynW-000rG8-01 for pgsql-bugs@lists.postgresql.org; Mon, 14 Sep 2026 05:00:06 +0000 Received: from localhost ([127.0.0.1] helo=wrigleys.postgresql.org) by wrigleys.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1x5ynU-00000001wfs-2d84 for pgsql-bugs@lists.postgresql.org; Mon, 14 Sep 2026 05:00:04 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #19687: ALTER SEQUENCE provokes error XX001 could not read blocks To: pgsql-bugs@lists.postgresql.org From: PG Bug reporting form Cc: exclusion@gmail.com Reply-To: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Date: Mon, 14 Sep 2026 05:00:01 +0000 Message-ID: <19687-dd094472b0c48afb@postgresql.org> X-Auto-Response-Suppress: All Auto-Submitted: auto-generated List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The following bug has been logged on the website: Bug reference: 19687 Logged by: Alexander Lakhin Email address: exclusion@gmail.com PostgreSQL version: 19beta3 Operating system: Ubuntu 24.04 Description: =20 The following script: psql -c "CREATE SEQUENCE s AS bigint MAXVALUE 1000000;" for ((i=3D1; i<=3D100; i++)); do echo "iteration $i" for ((i=3D1; i<=3D100; i++)); do echo "SELECT * FROM s;"; done | psql >/dev/null & for ((i=3D1; i<=3D100; i++)); do echo "ALTER SEQUENCE s AS int;"; done | = psql >/dev/null grep -A1 "ERROR: could not read block" server.log && break; wait done triggers: iteration 3 ERROR: could not read blocks 0..0 in file "base/16384/16597": read only 0 of 8192 bytes 2026-09-14 07:53:16.554 EEST [2078499:4] psql XX001 ERROR: could not read blocks 0..0 in file "base/16384/16597": read only 0 of 8192 bytes 2026-09-14 07:53:16.554 EEST [2078499:5] psql XX001 STATEMENT: SELECT * FROM s; This error is easily reproduced with io_workers, but it can be reproduced starting from 3d79013b9, with increased number of iterations and SELECT clients.