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.98.2) (envelope-from ) id 1x9RGJ-00000002039-1Poq for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Sep 2026 18:00:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1x9RGI-00000006wc4-1RMq for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Sep 2026 18:00:06 +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.98.2) (envelope-from ) id 1x9RGH-00000006wbw-45KT for pgsql-bugs@lists.postgresql.org; Wed, 23 Sep 2026 18:00:06 +0000 Received: from mail-wm2-x11.google.com ([2a00:1450:4864:31::11]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x9RGF-00000000tWL-2jP3 for pgsql-bugs@lists.postgresql.org; Wed, 23 Sep 2026 18:00:05 +0000 Received: by mail-wm2-x11.google.com with SMTP id 5b1f17b1804b1-49e6c0fce17so6558275e9.1 for ; Wed, 23 Sep 2026 11:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790186402; x=1790791202; darn=lists.postgresql.org; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:content-type:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6FPPBc/qF0MZrEor7rQQiEnZOVDpv6diVTkfn9Bw0a0=; b=MTdFvU7bCtl2qUA8qESdBwPq6SJkdDyoOMTu3HGz5A1g5oUaYA2GZcvrC5Q0FtL0JL 0vNq/JHOIKmKneBCf1hpkSFuK6NoUxukPfBSwAngRyiZrXQvRMHbvsHtAmJGiSTiB/Q3 qHnlwibzkFpdBJC8SuZ21atJuWs2775RcoEFlXdbnyYIKzic+nQP9wg9rTzkmhp+823N 69R5KQtCPByvvOdjHWQBK1MFInuat/iNJiFGpOOAhM1MhHqYh/WouGvWqJq6OMGkg6OU g0/gYIxZM/HG4Ji0ioX2eybSrsJ1kl1UN65slZ//xo3cVQOcBHHsSQEBN6l1zsX20TfE MoSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790186402; x=1790791202; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6FPPBc/qF0MZrEor7rQQiEnZOVDpv6diVTkfn9Bw0a0=; b=wy7MYwy2vJZPmuVI1Z/WDXeUfnIQrlSE7TGvoyAEpKgbpp7nai0AJB6h8HAX12jzce KvYgGOJaZsXDUBZGqZ2SFsLF3UL5V93KMW6MMTl/JWeAKuhyuE3Cqg/uS0RIr3+9UGMz XDZcQ20zbigAvBn8/rQT+g9lL8wSfCaGwo1nB9fFZXmJNNkypcAHFQZfsrkcxt8GdcgF 04BXB87iQIoz0hP/+uZwnxtObdexakEs20tcFPl7kOEC/FFJ4wSZetUwh90frGPftxga fygc0lk2xdwVJAH3KHhe2MDpB/Y5uYL7iEJI+ilyCEPU8RhtRdqAlDszbCEX+H/UxAX1 KV8Q== X-Forwarded-Encrypted: i=1; AKwUvBy4bQGke6+qyalBd9veLQLpVBU6mZ2LdHnyL4S/V6auV4+n5RyJ924hBapZ/8ei4OfUj9muflFTaIiV@lists.postgresql.org X-Gm-Message-State: AFuF++mi4jeFTK8uv7JH9NgamJV0CwDeqAR3QCqXYSJ/BuqZ9po18pmT NQbr1Pi2RiN2NgEMk95Aw7FUkY7QoWLmoMiKjf4fzofG9Ju+03GOXSQs X-Gm-Gg: AYBFou3c/cfRFV4/1vjhhfT6A2agvjsfaZWyxuuvwAzYvtgQXgmlJY3EdSoA55SwNUR /7b25eu/bJyCwfsotr7RmhQ+jS0aM0EPyV73TE8KmB090xjkdPsfddEql8L7UsQep/7P5zWrLa6 9m8Yk2C6uO/Bv1kgiOYJ/mw2OOgTQfHzUo8ayEPHl55/Tv8ELjNJPmj5+h+LSQUZjv+uWw5NNwb 55NADrFQqbzsZUzTrqYOlzfhKcEFyxb5jlDLf1hTuCOKxPb0f1vv+kFaojeXOyPJKVYvaBvPNKd UlCSix+mbwXb0R8MUF7YIz3pSlFNImmADzkczTbGjWB22cdUYDgTRqrEB6/KE8CC/GoweC9KMG/ +A5UfmXQPhXXo+C9cGq3vgrX+xd3lrhi/LsmEgOtho4j4v+k/27xrye2eAwZ+JOUO7OVkd9H7B9 4Zh/WW+GLQNhRkt6b0/PDEqWG/vvCdFmshGb5PwoWaySNb0T+ZmJ9AhSSsKavhTlsSo2gQSf0bP 6qmC2/VERSLDPnmYhQMUTQ= X-Received: by 2002:a05:600c:198a:b0:49e:6e7c:d895 with SMTP id 5b1f17b1804b1-49fdf145480mr51633535e9.26.1790186402105; Wed, 23 Sep 2026 11:00:02 -0700 (PDT) Received: from [192.168.0.50] ([89.149.68.133]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fe0c77b8csm48227615e9.3.2026.09.23.11.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Sep 2026 11:00:01 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------C76AiUXfnaPhPVrpV6QZarJ0" Message-ID: <7ac90032-cf60-4415-a7f9-cf512196db35@gmail.com> Date: Wed, 23 Sep 2026 21:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: BUG #19687: ALTER SEQUENCE provokes error XX001 could not read blocks To: Ayush Tiwari , pgsql-bugs@lists.postgresql.org, Alexandre Felipe References: <19687-dd094472b0c48afb@postgresql.org> Content-Language: en-US From: Alexander Lakhin In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------C76AiUXfnaPhPVrpV6QZarJ0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello Ayush and Alexandre, 14.09.2026 22:07, Ayush Tiwari wrote: > On Mon, 14 Sept 2026 at 20:23, PG Bug reporting form > wrote: >> The following bug has been logged on the website: >> >> Bug reference: 19687 >> ... >> The following script: >> ... >> >> 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; Thank you for working on the fix! Just for the record: with these parameters: cpu_tuple_cost = 10000 min_parallel_table_scan_size = 1 set, the same script triggers also: TRAP: failed Assert("RelFileLocatorEquals(relation->rd_locator, pscan->phs_locator)"), File: "tableam.c", Line: 173, PID: 4140896 ExceptionalCondition at assert.c:51:13 table_beginscan_parallel at tableam.c:178:14 ExecSeqScanInitializeWorker at nodeSeqscan.c:450:30 ExecParallelInitializeWorker at execParallel.c:1406:5 ParallelQueryMain at execParallel.c:1566:2 ParallelWorkerMain at parallel.c:1571:2 BackgroundWorkerMain at bgworker.c:868:2 postmaster_child_launch at launch_backend.c:269:3 StartBackgroundWorker at postmaster.c:4222:5  (inlined by) maybe_start_bgworkers at postmaster.c:4385:9 ServerLoop at postmaster.c:1745:6 CreateOptsFile at postmaster.c:4166:3  (inlined by) PostmasterMain at postmaster.c:1301:7 check_root at main.c:448:3  (inlined by) main at main.c:195:3 ... Best regards, Alexander --------------C76AiUXfnaPhPVrpV6QZarJ0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Hello Ayush and Alexandre,

14.09.2026 22:07, Ayush Tiwari wrote:
On Mon, 14 Sept 2026 at 20:23, PG Bug reporting form
<noreply@postgresql.org> wrote:
The following bug has been logged on the website:

Bug reference:      19687
...
The following script:
...

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;

Thank you for working on the fix!

Just for the record: with these parameters:
cpu_tuple_cost = 10000
min_parallel_table_scan_size = 1

set, the same script triggers also:
TRAP: failed Assert("RelFileLocatorEquals(relation->rd_locator, pscan->phs_locator)"), File: "tableam.c", Line: 173, PID: 4140896
ExceptionalCondition at assert.c:51:13
table_beginscan_parallel at tableam.c:178:14
ExecSeqScanInitializeWorker at nodeSeqscan.c:450:30
ExecParallelInitializeWorker at execParallel.c:1406:5
ParallelQueryMain at execParallel.c:1566:2
ParallelWorkerMain at parallel.c:1571:2
BackgroundWorkerMain at bgworker.c:868:2
postmaster_child_launch at launch_backend.c:269:3
StartBackgroundWorker at postmaster.c:4222:5
 (inlined by) maybe_start_bgworkers at postmaster.c:4385:9
ServerLoop at postmaster.c:1745:6
CreateOptsFile at postmaster.c:4166:3
 (inlined by) PostmasterMain at postmaster.c:1301:7
check_root at main.c:448:3
 (inlined by) main at main.c:195:3
...

Best regards,
Alexander
--------------C76AiUXfnaPhPVrpV6QZarJ0--