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 1wCDo1-001m4l-2b for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2026 09:42: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 1wCDo0-00652r-0g for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2026 09:42: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 1wCDnz-00652P-2T for pgsql-hackers@lists.postgresql.org; Mon, 13 Apr 2026 09:42:08 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wCDny-00000000m9l-0BGX for pgsql-hackers@lists.postgresql.org; Mon, 13 Apr 2026 09:42:07 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-48896199cbaso45304285e9.1 for ; Mon, 13 Apr 2026 02:42:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1776073325; x=1776678125; darn=lists.postgresql.org; h=message-id:date:mime-version:comments:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=2bTkPOC0DrrGh6LBfn2EPOM9btYb7Ji7hN7YZpHuFmI=; b=FPnZN4EBfSZkhXr7kpDQkkbJOPSPxYmZY/Dw3aYeE20nRFDt0lte7DPPjmwMbQG5LO 4XAyl3NM4cZnpKrkONpwLTip3ikDPtr74sqxwhGxutO/wny912ctnJeaXlaRoYTGUxp5 AgNrOEdg0QmoGhq1aZajmxiD+beSG10vHosgBNoZEmuyaMoZrSyp+d1UhkBZ9LxaUJPI Qxj0TxSDg/zkcgYNqaVrZNBlQ5c93zddVNLnPd12VtiDMTyoq3wnq8HZ6JFpdiPSDmbs 6vN03ViBLXudwevtwmuBEuKXigi0twh1BkmHqFGMeX8Odml52EbLB3KqbkeztXHEFTcb autQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776073325; x=1776678125; h=message-id:date: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=2bTkPOC0DrrGh6LBfn2EPOM9btYb7Ji7hN7YZpHuFmI=; b=HGI/a2pyj+9pJhMrTzj6cZqBf1fUVfn5z9j2DqXdong5rkerWd3MFled/N6jI3q0Ky Xg7c7nol9Amgh4S+yujGUuuYn7c3RzwdoAWUBD8fx6TX2XTW7ryZMdJKUwoOP/BvLEez e4+YOdbIq4ZDvZFLSzOaODIugqbzyxQN5ZWMOepH8kNoTW4iOMPoxgSro6iHpjq5LnSi ljX8h+i8aTbEAXh/iYg1Eq+Y58hRjd8/qqjtRBlqQUI3aXiFytvlSIETHK6u3UL8ENZo Ei38w5JhrL5pOhM5yFB2nXOgBxFXCc7vIeVvHAz/XP0C09wS49qLvuHuGAQ3GanapOLT o5Og== X-Forwarded-Encrypted: i=1; AFNElJ8E4VHajvg3X+NTY2nzL8Gj7jJtTholzmWQi9Bgz9iyDuhTtTi1STTv55acdk9MCwY5EM/lggjXpV0fhqVN@lists.postgresql.org X-Gm-Message-State: AOJu0YxmVMszaggjL/7P9bOLewOeB+4ZRcNEWK5Afgdo2HkIQFEUmppb kmEcb9Y0vEfXxqxnGL/3mqUHPAfjsmGK42bgou4dO1B13dwlG/ycfLZrj7vmTGOCAzc= X-Gm-Gg: AeBDieuzSpIg7HBB/gG/EwxwBJHyIxMhVvqb4oCqVqIKZC6JGMvkj7Wk5oJqD997hJe EgFpxLlq94UvigEWT9Fc5YLxKXJIhQrxA99dhwJMCMHtLy8+UB0Mz3JsxS0+OgRLjhiw72WIVr1 0JG5+TXDprUQnTBnTYbW9IJ+/eHfePnXm1fNtyF4b+Yls8L0rF/gsQbZC/ohht5HDC6LPaFySmZ by2cWUs36hT9sbjcT2ginFlwn32YOAfvWt7teu5NGyoRDhcNpet0If/IsHla0V610pGp5AdfSmp rVnSLCBrsr2NBSka25FG4BpFUYRC2kLLXu+GoxhLu9NpAqZj1cxKSiIqqbQYG5QXRM/2qa4lZse 4PG7TMRWar2JaxTY5PMqv1uzIkhTsnrj668ERrljQOPeThcO9szpy/pB4JhUD0DA88O8E1g8TGt SgIPNaXkPUXAJu5QqLiJUKh/QhEVayvLC/w2FG X-Received: by 2002:a05:600d:8449:b0:486:fdba:f5db with SMTP id 5b1f17b1804b1-488d664f29emr140578455e9.0.1776073324878; Mon, 13 Apr 2026 02:42:04 -0700 (PDT) Received: from localhost (109-81-168-142.rct.o2.cz. [109.81.168.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488d5347ea5sm321653265e9.8.2026.04.13.02.42.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2026 02:42:04 -0700 (PDT) From: Antonin Houska To: Alexander Lakhin cc: Alvaro Herrera , Amit Kapila , "Hayato Kuroda (Fujitsu)" , Srinath Reddy Sadipiralla , Mihail Nikalayeu , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: <18181295-8375-4789-ad32-269d78d6001e@gmail.com> References: <202604072027.gazfa2zt2l2j@alvherre.pgsql> <121156.1775818667@localhost> <18181295-8375-4789-ad32-269d78d6001e@gmail.com> Comments: In-reply-to Alexander Lakhin message dated "Sun, 12 Apr 2026 17:00:00 +0300." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Mon, 13 Apr 2026 11:42:03 +0200 Message-ID: <182883.1776073323@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-=-= Content-Type: text/plain Alexander Lakhin wrote: > I've stumbled upon one more issue with this feature: > CREATE TABLE t (i int PRIMARY KEY); > REPACK (CONCURRENTLY) t; > > fails for me with sanitizers enabled and > min_dynamic_shared_memory = '1GB' > in postgresql.conf as below: > 2026-04-12 13:23:02.000 UTC [2733633] LOG: statement: REPACK (CONCURRENTLY) t; > repack.c:3373:15: runtime error: load of value 240, which is not a valid value for type '_Bool' > #0 0x6441f7eba454 in start_repack_decoding_worker .../src/backend/commands/repack.c:3373 > #1 0x6441f7ebdaad in rebuild_relation .../src/backend/commands/repack.c:1010 > #2 0x6441f7ebe9a2 in cluster_rel .../src/backend/commands/repack.c:656 > #3 0x6441f7ebefea in process_single_relation .../src/backend/commands/repack.c:2359 > #4 0x6441f7ebf870 in ExecRepack .../src/backend/commands/repack.c:296 > #5 0x6441f886f20e in standard_ProcessUtility .../src/backend/tcop/utility.c:867 I could not reproduce the problem, but noticed that the field is not initialized correctly. Please confirm that 0001 should fix that. While working on it, I noticed that one field can be removed from DecodingWorkerShared - 0002 removes that. -- Antonin Houska Web: https://www.cybertec-postgresql.com --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Add-missing-initialization.patch