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 1vrreS-00A4DM-2z for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Feb 2026 06:00:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vrreR-003qYe-1Z for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Feb 2026 06:00:07 +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 1vrreR-003qYW-0Z for pgsql-hackers@lists.postgresql.org; Mon, 16 Feb 2026 06:00:07 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vrreO-00000000q6Y-0RXN for pgsql-hackers@postgresql.org; Mon, 16 Feb 2026 06:00:06 +0000 Received: by mail-wm1-x342.google.com with SMTP id 5b1f17b1804b1-483487335c2so25350205e9.2 for ; Sun, 15 Feb 2026 22:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771221603; x=1771826403; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=uXu1cmU6iu6HiDdcO75H5rQTAkUD8nwM9hcPZca14hs=; b=ZxjIQ8p00vlxdoGxumz7wpx+Ah/O0eCQbjdv2l+MS0zhr+oehVYK8/gFYF9PNXP4H5 qeKqtpMoOJklxJYUBjc05r6pOM8xo3dHYK0tAvPj/J/TJ3lJHoEQWs9AY0IwRpTdgOv+ oUofXD9ivzWJ/5vbv6h+b5dmzWLN5WakHyfkhMGxDkCqZzQscMkFlK7Ch8iFw3IHoJxA cUwBlzFa3VnqEpn1pkTNnc0U5e7GdK9EJyLIefiQBxDdVtnk3GIQW+4xxVDdxSVrosOM Nm6CzlLS+zfZPOpaD4VI2B4i2xx1RB9xKj5hcOEFtvIH8jgqqfQbSuDrmcW8QA+AtqCW mqqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771221603; x=1771826403; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uXu1cmU6iu6HiDdcO75H5rQTAkUD8nwM9hcPZca14hs=; b=VS1VwzJLUngLRyLsxPw7CHQDAmXltqiyx6sNs+Y4zYoRnR44Y1iRdyZKziJS8JA/1y JwttXwnVChghTNeD4WnChy1zJfd7k9MFjjHse2xz7V1c6v+EnU/u53wryTiKhcSqeiDL NaoaOR9oxOLwxaae+3VJJ6hAMUpI/2w+f7UeKpKDZXYKbk7JTPIOyOgB/3H1fdQV+54q UDqo5sRBstUvRpIAtv8lCC1uXTzlF9x4DI8gDXqQCzJ5E8UqNIsDUM7q2zzu8r98DMC+ 5sI5j1oFchesWplGjJjAcMNQ0NW65LkWuYj4IhFiGh71pktpGb1pSL5UPZSnwhSzu6So uObw== X-Gm-Message-State: AOJu0Yw77KT1VIsCDu9yVWL9Y46r7HEphJD/NkHzD/3Vq2p7nwgo3x6V FYUSx02dCi9a9I5OQKga2ey/X0bZ39LyzzeDJ6UoJGbpcF94WBp+aL8ZCVRY0JVFaHs= X-Gm-Gg: AZuq6aK3IO/JQA62hQC5k27Hhn4oyofk5Iv5hhjg/eGWSna/BiQ9AQJW/MyPqfRfpQZ bZsIKltPtmbOjr1259w5IBpNK88zhwfEaEX0/Ve/QY1lH08cEbGCVCrS/dKZUKGQGHy/fce8sN/ toiC8UP1F5/I7xBXIl4er2R5QDKaRmgIi0mJ0mUga/T8SzekTo0NKXnUZieAO87pQMvKvL+97qI 8o0IHl/Ck9tIwPlPQvYtIYmT7uc68E2OgjrgN3ie/pzZly/Ju9dboktCEZurYIWH6wsM7ptUwB9 C2AsTknCscy8tlo9bQgG0G6J0tuKadbr3PUYdJwYZR81+wl6hPQ6EeERURV00PRmB9egvehcNSW GaHLd+RyU2TRCGI5fnhxheaAEZQdaSB84r6fysWCv1Lg/RdBJDJqVbb3M8tIluwVko9oNVM7Ltw XI6N9C2+qy2rALjATM5jbQtCoH11VM8BcY6BQ= X-Received: by 2002:a05:600c:3e88:b0:480:5951:fc1e with SMTP id 5b1f17b1804b1-48373a02bf6mr135887545e9.11.1771221602492; Sun, 15 Feb 2026 22:00:02 -0800 (PST) Received: from [192.168.0.50] ([89.149.93.164]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48370a41be2sm126874665e9.1.2026.02.15.22.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 15 Feb 2026 22:00:01 -0800 (PST) Message-ID: <9f7cc148-55d1-4062-8229-b6886d7aa380@gmail.com> Date: Mon, 16 Feb 2026 08:00:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: race condition in pg_class From: Alexander Lakhin To: Noah Misch Cc: pgsql-hackers@postgresql.org References: <20231027214946.79.nmisch@google.com> <1617596.1698446455@sss.pgh.pa.us> <20231027232612.99.nmisch@google.com> <20231102030915.d3.nmisch@google.com> <20240512232923.aa.nmisch@google.com> <20240605181706.fe.nmisch@google.com> <20240611024525.9f.nmisch@google.com> <20240614003549.c2.nmisch@google.com> <20240621212842.98.nmisch@google.com> <20240628051353.a0.nmisch@google.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Noah, 20.07.2024 11:00, Alexander Lakhin wrote: > > 28.06.2024 08:13, Noah Misch wrote: >> Pushed. > > A recent buildfarm test failure [1] showed that the > intra-grant-inplace-db.spec test added with 0844b3968 may fail > on a slow machine (per my understanding): Could you please look at one more interesting failure produced by 001_pgbench_with_server.pl [1]? regress_log_001_pgbench_with_server: [13:11:27.325](0.001s) ok 3 - concurrent OID generation stderr /(?^:^$)/ # Running: pgbench ... [13:11:29.481](2.156s) not ok 4 - concurrent GRANT/VACUUM status (got 2 vs expected 0) # TODO PROC_IN_VACUUM scan breakage [13:11:29.483](0.002s) #   Failed (TODO) test 'concurrent GRANT/VACUUM status (got 2 vs expected 0)' #   at C:/tools/xmsys64/home/pgrunner/bf/root/REL_18_STABLE/pgsql/src/bin/pgbench/t/001_pgbench_with_server.pl line 77. [13:11:29.484](0.001s) not ok 5 - concurrent GRANT/VACUUM stdout /(?^:processed: 250/250)/ # TODO PROC_IN_VACUUM scan breakage [13:11:29.485](0.001s) #   Failed (TODO) test 'concurrent GRANT/VACUUM stdout /(?^:processed: 250/250)/' ... [13:11:29.486](0.001s) not ok 6 - concurrent GRANT/VACUUM stderr /(?^:^$)/ # TODO PROC_IN_VACUUM scan breakage [13:11:29.486](0.000s) #   Failed (TODO) test 'concurrent GRANT/VACUUM stderr /(?^:^$)/' #   at C:/tools/xmsys64/home/pgrunner/bf/root/REL_18_STABLE/pgsql/src/bin/pgbench/t/001_pgbench_with_server.pl line 77. [13:11:29.487](0.001s) #                   'pgbench: error: client 1 script 1 aborted in command 0 query 0: ERROR:  relation 266643 deleted while still in use # pgbench: error: Run was aborted; the above results are incomplete. # ' #     doesn't match '(?^:^$)' 001_pgbench_with_server_main.log contains: 2026-02-12 13:11:28.603 UTC [6012:36] 001_pgbench_with_server.pl ERROR:  relation 266643 deleted while still in use 2026-02-12 13:11:28.603 UTC [6012:37] 001_pgbench_with_server.pl STATEMENT:  VACUUM ddl_target; I'm able to reproduce this error with: numcouples=40 for ((j=1;j<=numcouples;j++)); do createdb db$j echo "CREATE TABLE t(i int);" | psql -d db$j done for ((i=1;i<=1000;i++)); do   echo "iteration $i"   for ((j=1;j<=numcouples;j++)); do     for ((k=1;k<=100;k++)); do echo "GRANT SELECT ON t TO public /* $k */;"; done | psql -d db$j >psql-grant-$j.log 2>&1 &     for ((k=1;k<=10;k++)); do echo "VACUUM t /* $k */;"; done | psql -d db$j >psql-vacuum-$j.log 2>&1 &   done   wait   grep -E 'ERROR: ' server.log && break; done This fails for me as below: ... iteration 47 2026-02-16 07:13:14.855 EET|law|db13|6992a76a.a6983|ERROR:  relation 16434 deleted while still in use ... iteration 6 2026-02-16 07:13:42.537 EET|law|db20|6992a786.ab3bc|ERROR:  pg_class entry for relid 16462 vanished during vacuuming ... iteration 7 2026-02-16 07:14:01.182 EET|law|db2|6992a799.ad54f|ERROR:  could not open relation with OID 16390 ... iteration 9 2026-02-16 07:14:26.160 EET|law|db12|6992a7b2.aedf8|ERROR:  relation 16430 deleted while still in use ... [1] https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=fairywren&dt=2026-02-12%2012%3A17%3A56&stg=pgbench-check Best regards, Alexander