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 1wzenu-0049Hk-05 for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Aug 2026 18:26:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wzenr-003uae-29 for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Aug 2026 18:26:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wzenr-003uaS-1B for pgsql-hackers@lists.postgresql.org; Thu, 27 Aug 2026 18:26:19 +0000 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wzenp-00000001az0-0Jo5 for pgsql-hackers@postgresql.org; Thu, 27 Aug 2026 18:26:19 +0000 Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-52f2577ac01so1627721cf.1 for ; Thu, 27 Aug 2026 11:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787855175; x=1788459975; darn=postgresql.org; h=content-disposition:content-type:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ClU3sZIc4T9b282bJCyuzfxKyC6uAa9SjV/pedrE+U0=; b=QlgdrX990lD4WwiYwvL9A/KKk4ls9tvQuuDFbN9jW7rv4B3SKbwQWIrDFE19OcsAss 1lS9erxOfmYKoPURJWVy2vmEPPKI8REmIhzy6hGPx8vTm21x6BUgTRmV75rV0LtaE9j3 feq1z1JJ46hemC7avuboOO14Vj8JpyagmIekF6aA1v7Q7DZMPA5pFBg/SvFOGjEdLXOP x0ZgoRjfo1nma6yx6X47vSqw4mUJhMBkc2NklzbCH6dg64tWDozfJPhRtvlShajUTLE3 cQjU9zE9Yzx1rl6bfLW7Tc7X+n38vVUWLeedNC7jqT5EyHa7apSen39q4SD/+dTCBN9h aoZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787855175; x=1788459975; h=content-disposition:content-type:mime-version:message-id:subject:cc :to:from:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ClU3sZIc4T9b282bJCyuzfxKyC6uAa9SjV/pedrE+U0=; b=VS/iNAu7mFGVtO2zRB029H5loBrDw0JBMfRar1aKXCbfthjxudHyPsqg3wQHxlY2Rn 9egH0yjRdRfnVRVZnvugtwfxxeXuwz10dEQvd9oWSi/oz9NlmYl1alnaxYnEJ3tCSAYt 2dMAvcgMKvOKr2Qk4jrJjMwrrwccDIBay+fiRjT9APH77iccq4upzXPr7GZCoNbr1dv3 kyBhropM0p2xWDUDa5JJpppVbO0KxkYFifq+YaMjoxWFlSCFMCK0hW4fb6abT23tzoW3 tctQksp0ZlG9YFKsi5zxqQbsXracChETuFtUlBJDQyFg8P5/4oxL9Gp7fE0L3WWA/USS Jilw== X-Gm-Message-State: AFuF++kvAEtUOKKzzxSTXSNi3nMbiRjSsDOmBENZWjmUTC6cLsVU6Yfu X6Fc01ETCDJph6qXKvQ52BwAtrgGrAeTzkgFeB2SmQZ6Mfq14akRPASOBi8d7g== X-Gm-Gg: AR+sD12188wK7mT+sD73gjmKhbcCRUhBkMXqkvsP/odNQkyz5ABRznf7ozf9dG7+iPU 9OLLlgMVd0FLgH8OoQFyHfDN5xBlqtSiQUaGKDwmAuKUHSKiMdZK5QZpx8dZU2o2wii2qN4KtBt 527NSpyDZRj5YKs7cJmeNZI8aMjY1EINjv6dwA3AZ/DeahgVZPx0Zhd7SQud2K0rVjWwdsXKK0A nK0ZffZxZyQs3irchHz6TPfwUCVQQEGjqBvpo2smLQj2TpcJvB8RU6tHKyNlLyF9ZlKZidWL6jR xolB8+volC51sGabSbOmHV6jE+jyHUObYcOJWXb2edXbVTQaJvQxS2IZfK0N3FGUaBh8d7zaXc7 DqG4lV5E8Q9UFnUK1VAJaPp/3Ak46Yc4cjSQUOShs0SmsPDQpZLh5S02eLaFgUhTrlhPzp+4JWe UGFabYsIFmJG5VmfvxBghxNvmK7CLYEh9DJ6td08xAIEfQCWWZpt6rjNywPFCSA+UeETeLdZvmd EKb8kGOtzx0Mhz/NtvEX2FKZN3sUEXqZ9IBSrDf89h5ImPkly5oJysu7ZcO+/dkIr5S7o1Hc/P+ FdUNdSfQwWSFUk4= X-Received: by 2002:a05:622a:4107:b0:52d:6afd:7d9c with SMTP id d75a77b69052e-52fb968f774mr13291291cf.29.1787855174546; Thu, 27 Aug 2026 11:26:14 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-52fb9ee053csm1718471cf.21.2026.08.27.11.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2026 11:26:14 -0700 (PDT) Date: Thu, 27 Aug 2026 13:26:12 -0500 From: Nathan Bossart To: pgsql-hackers@postgresql.org Cc: alvherre@kurilemu.de Subject: REPACK (CONCURRENTLY) fails when replica identity index is dropped Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I don't fully understand the mechanics of this one, but here is a reproducer: CREATE TABLE t (a INT PRIMARY KEY, b INT, c TEXT); INSERT INTO t SELECT g, g, repeat('x', 1000) FROM generate_series(1, 1000000) g; CREATE UNIQUE INDEX i ON t (a); ALTER TABLE t REPLICA IDENTITY USING INDEX i; DROP INDEX i; REPACK (CONCURRENTLY) t; -- in a separate session, while REPACK is still running DELETE FROM t WHERE a = 1; This produces the following ERROR from the REPACK command: ERROR: incomplete delete info CONTEXT: slot "pg_repack_34213", output plugin "pgrepack", in the change callback, associated LSN 0/A6CC1ED0 REPACK decoding worker I think this can be addressed by verifying the index exists in check_concurrent_repack_requirements() and erroring out if it doesn't. -- nathan