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 1wuuqF-000z9r-2w for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Aug 2026 16:33:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wuuqD-001fzs-2F for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Aug 2026 16:33:10 +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 1wuuqD-001fzj-1T for pgsql-bugs@lists.postgresql.org; Fri, 14 Aug 2026 16:33:10 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wuuqC-00000000d0q-3yea for pgsql-bugs@lists.postgresql.org; Fri, 14 Aug 2026 16:33:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 67EGX7GV3767381; Fri, 14 Aug 2026 12:33:07 -0400 From: Tom Lane To: Andrey Borodin cc: Andrey Rachitskiy , ilia.kashintsev@gmail.com, PostgreSQL mailing lists Subject: Re: BUG #19613: pg_restore: several SEGVs in ReadToc() in pg_backup_archiver.c In-reply-to: <09D266FA-E7FE-4816-B5A3-EEF13140D7F0@yandex-team.ru> References: <19613-3a9ffc23ee402382@postgresql.org> <09D266FA-E7FE-4816-B5A3-EEF13140D7F0@yandex-team.ru> Comments: In-reply-to Andrey Borodin message dated "Fri, 14 Aug 2026 14:58:23 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3767379.1786725187.1@sss.pgh.pa.us> Date: Fri, 14 Aug 2026 12:33:07 -0400 Message-ID: <3767380.1786725187@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrey Borodin writes: > Could we add a regression test? -1 ... I think the engineering, maintenance, and runtime cost of a test like this would never pay for itself. The thing you would wish that a regression test could catch is adding a new TOC field that is effectively required while failing to use ReadRequiredStr for it. Which a test like this wouldn't. regards, tom lane