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 1vpPmM-007q5L-1W for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Feb 2026 11:50:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vpPmL-00AMQ5-1Z for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Feb 2026 11:50:09 +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 1vpPmL-00AMPu-0S for pgsql-hackers@lists.postgresql.org; Mon, 09 Feb 2026 11:50:09 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vpPmI-00000001Gf3-0hvY for pgsql-hackers@lists.postgresql.org; Mon, 09 Feb 2026 11:50:07 +0000 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-4362197d174so2507507f8f.3 for ; Mon, 09 Feb 2026 03:50:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1770637804; x=1771242604; darn=lists.postgresql.org; h=message-id:date:content-transfer-encoding:content-id:mime-version :comments:references:in-reply-to:subject:cc:to:from:from:to:cc :subject:date:message-id:reply-to; bh=pCumuENRxH2olYM0jO2LldsOUMRsPix669Ojs8wuh3I=; b=r2SW95bCTKMUo8+S9kAU3L8CQvnziRu0CUU7LCk5DkUusblF1jU/woPGL8V80vUCqS pP6chbPs52p14wHmKslyiBhJUoe3uVdRPEiO0xv/A/ykWV4PTEqSZJrUTJuKwIT1Tw3i wPoUiWw6ivbcqZSwub1a0KEEmpiCoqykkL2hnasrRlidOHQNV1RJMoM+hSNiTpSnsf8L GvcM0IReCgy9n1SPkr61YxT5IjjQtPPRvlyLAacR9FNtD7y+JlcfX8NSKLw5ddr+IqVX UmJBQxxIrjegKTq11cgiY6iN8O4Td7M9tgd381V+NXVMM06obbeOOeA5x68KQtETeVNr WhEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770637804; x=1771242604; h=message-id:date:content-transfer-encoding:content-id:mime-version :comments:references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pCumuENRxH2olYM0jO2LldsOUMRsPix669Ojs8wuh3I=; b=ALEdDZcDL5B3wM7sJuRg6tR89uyGPE00fwB2l9iJX2BWt9eW59hd5sHITBNHpzZZcg 3bGvDRw31ORGkRQfxGVd0JCzScKjLpH+AmJr/XftZW6G8PunnxzpamSeS2dCsu/VK6EK n/0u9rsUFmeOipsmUlcjZN2Z/juKLMN4W4VoSuBHhAwV5JShBX68R4R+H7PpNxpa64RW CIT0eR6WeQ6yLwus1cgWc9vJmarQwGsLpubQO9dXKwe7l0e2Z0OZdbWpZeLEjKJWYnxS WT5k3LnaKyUW5hJRFZIY+5O6EWTwcymOlWA8qqhiYnosh3X/+S2l8I15YZy2dFIbaig+ KV/w== X-Forwarded-Encrypted: i=1; AJvYcCWCfTX6ZJNYQ3LyI5Qne9S9h4znjltEV7ZskDBc9PjRWej475mRhliG2y4pjoWgNiujz/4k8zXNfGYeRqvK@lists.postgresql.org X-Gm-Message-State: AOJu0YxjC9c2oVRe3uiehLkBspBOIA5zCLuQaU/tPSTzvX4sZ8dKAgz+ sGcPgwb3YsYr3mkpixJH4GTctTnSBo1m/6SNsf66DJ2OQD1TWNLnVsMd/yvjoLw5EVg= X-Gm-Gg: AZuq6aLoeHHLr+9RddT7+9Od9UZ8VG3Cc2t75ESfGYzpQgCvkfrzxXsqEp1h6Fpq3AB 5x/4bCWavGzglkDOz5THKWoMell78DXZfY2UACWNKqbR/h5aLfzpDd4rkvkYMB+b6F6enCW7LhS QqUuFOXtOMSQjPpd0ueoY+njXyrNIZNk8W8mpQt9P7EThpvlOSIJhlyINiPiyjP9fPSty2C43Er R8MW5IQo7VyMXxM2QtzVE6QxtOqnv/DCmTlbPhFElp5qMmo3GTXpbJ4u6ksLk2ziW5I4oOb/i2C 5Hdk16263aUMHQmW+lGjN4qU3JVq/9x9uVMnRZbqR9CGkuppkQoMiJF/BA+Jg+EZRH9HxS0h7Lt cdB7HDxjirkqq5rgvRlN9F2GW4qMYG5FTcMIIrEL1OyI9WNXJPuq3JR9ZPKMAFtebNp9CeDmNbY 2uEN8x8HQJmxo8ogz5QvE3j/5p X-Received: by 2002:adf:fb49:0:b0:436:30b0:759f with SMTP id ffacd0b85a97d-43630b076d0mr10367675f8f.27.1770637804489; Mon, 09 Feb 2026 03:50:04 -0800 (PST) Received: from localhost (109-81-168-246.rct.o2.cz. [109.81.168.246]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4376d3a32basm9275853f8f.14.2026.02.09.03.50.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Feb 2026 03:50:04 -0800 (PST) From: Antonin Houska To: Mihail Nikalayeu cc: Alvaro Herrera , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: References: <202512151349.vlq3mpfniyk3@alvherre.pgsql> <11247.1767609087@localhost> <11558.1767609632@localhost> <141054.1767891540@localhost> <137668.1768235610@localhost> <74802.1769071060@localhost> <3901.1769412880@localhost> <88003.1769511456@localhost> <57210.1769801636@localhost> <8029.1770024929@localhost> <27597.1770395398@localhost> Comments: In-reply-to Mihail Nikalayeu message dated "Sat, 07 Feb 2026 15:16:27 +0100." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <62226.1770637803.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Mon, 09 Feb 2026 12:50:03 +0100 Message-ID: <62227.1770637803@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mihail Nikalayeu wrote: > > Indeed, the server log seems to indicate relationship to > > VACUUM: > > 2026-02-01 16:44:58.878 UTC autovacuum worker[22589] LOG: automatic v= acuum of table "postgres.pg_catalog.pg_class": index scans: 1 > = > O, it's a good clue! > = > I have added some vacuum calls for pg_class in a stress test - and now i= t fails much more often (check attachment). > = > It is "ERROR: cache lookup failed for relation" - but I think it may sh= are the cause with "attempted to overwrite invisible tuple. I've just reported one issue [1] that causes this, but that does not seem = to be related to the "attempted to overwrite invisible tuple" error. > See: > https://cirrus-ci.com/build/4852126532239360 - with "Use multiple snapsh= ots to copy the data." > https://cirrus-ci.com/build/6429084491710464 - with "Use background work= er to do logical decoding." > = > But I am unable to reproduce the issue with only "Add CONCURRENTLY optio= n to REPACK command." > https://cirrus-ci.com/build/6467070524653568 No idea why VACUUM makes the issue happen too often. Maybe it's related to= the PD_ALL_VISIBLE flage, but I've got no detailed explanation. I also don't k= now why it does not reproduce w/o the logical decoding worker. Thanks again for your testing! [1] https://www.postgresql.org/message-id/61812.1770637345%40localhost -- = Antonin Houska Web: https://www.cybertec-postgresql.com