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 1vx6zZ-00FyD6-0f for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Mar 2026 17:23:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vx6zX-001uHh-1P for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Mar 2026 17:23:36 +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 1vx6zX-001uHZ-0H for pgsql-hackers@lists.postgresql.org; Mon, 02 Mar 2026 17:23:35 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vx6zV-00000000365-1wye for pgsql-hackers@lists.postgresql.org; Mon, 02 Mar 2026 17:23:34 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4837634de51so19774135e9.1 for ; Mon, 02 Mar 2026 09:23:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1772472211; x=1773077011; 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=AcX23C4hLo3SB842BKkCQQK/C5KYX35C43THHPK0hk0=; b=QIrnsstiaGqJWpimfV86YzEgGiw1EdS1laCOe9hDabCXs/h5+B8as1m/lan6YwdFSM jcHONhdEakNOVGtxfnn19w3yJtYr6Ii6ojfZsJLTniWOXgLJDoP2rnC+jz8qqsLMjlC/ lB0vznaTK7MuVmwlgF6UAExuQKplz5pvWmQ7l1qKROX0kcU2TMqE4NneeLohMiAgD4L9 pPQPcG0Db/yG1BQ7AgUO1RozWS8kW62ABn+kv9OUSIZJKd2Djiq+PET58fvUNHUDwyA0 Yxa4lTT+BmCpxVb3UshT+c6SsFKggMf2XrQWAaembcmwBSfm1GggJLDND5MmdWeAEqe3 hFog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772472211; x=1773077011; 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=AcX23C4hLo3SB842BKkCQQK/C5KYX35C43THHPK0hk0=; b=btaMrG+CnVMyc9u+ZSsS3uMT3Lkb1cEZ/s5TzFEJUypNN1oEmTsVTxU0vsrTAf623N SbMCMtH9pOLUT3MV32KP8pkYgpYOLUVEsZ75aRZmb1yNcsMBH5/jKUfUdeMJ2j+rcR+6 qgocWdXuOQvM4EyH0shII83jRZuZQ3KrNjGLkwtUpsBw3jNS+G+hqs8jU/TKdT2meEtw HApZuTG9PPlqZgud4LyDkK1Iu/Pje8cLDrQqfvfUAc1ImipiSGLP1ldHAMqh+WoOyj8K TFM8ugM6bguQK9YFqBZcyFu4L0og/FgtNJtTBXfXkQRsQqFig/xYjAi4OHzp2qdqUcis dcAw== X-Forwarded-Encrypted: i=1; AJvYcCWbMrMj3v1QWk1JOS68vRD1j/XtaEamvNHraUOBpDmrnnbStB8TGF6FIKqlEoqyOjYdSHsp2Xh0x9zl1TkO@lists.postgresql.org X-Gm-Message-State: AOJu0Yx8nZqMrvv0FhtwN/8V4GCjBMnMphVE5Mok4wZ0P8O8q2Vvn8jN WEHLmqtKNWTjtPPESLenRdz5YdDC2nHwEOdaEOm8q1DyZ6Z+s3+FDS5qenQXIA4v9zo= X-Gm-Gg: ATEYQzxfle/japMz7UodRnQl7V62j0pOPlqjM3Gd3y/YLo6Jrmrnt2EZv3tntisjIOG HWWWwD30Txxiu/t3D2B7QUaWQ8NQXubtXz7bAljSTnh+0QgVr9r42g4e+PJ8iTbpdupP3jc01LS tZJru1IcD3J3Qird8Coh0ww9fD778XIDPeKkRsxMmVCvdVChXMUc8pPysFBu2e1A5nAOtxxio1P klZ0uwltmn9xqde2ctG3BfmG7LF7C1+OlqDCVYsAL5iBTw8znnqMykr462H9ME9IdTogoMkaQxS og3a+3ooSiQzSSuf0pDROYQPszRgBtjHxhmfvJ1+WImuFqXkpLhHLQ3TjcMdUwqNSyTSLojPmIx ySSYTaIIMjjkV61UDQvbNE6PNCkl8YxBBoLx89bBhmZhBMbuhCmBGOSs8cStUDdllqMqW91+qmh 0Wip73I3LeGZ2G6lzhUBpHaEaLQvRz6WFhBN0IvgVwTcBbdKY= X-Received: by 2002:a05:600c:46c4:b0:483:7ae2:1737 with SMTP id 5b1f17b1804b1-483c9c1bbe9mr235899325e9.17.1772472211319; Mon, 02 Mar 2026 09:23:31 -0800 (PST) Received: from localhost (109-81-168-142.rct.o2.cz. [109.81.168.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-483bd750701sm443562515e9.11.2026.03.02.09.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2026 09:23:31 -0800 (PST) From: Antonin Houska To: Mihail Nikalayeu Cc: Alvaro Herrera , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: <67772.1772462341@localhost> References: <202602251618.dpgvox64vziz@alvherre.pgsql> <97234.1772046253@localhost> <87648.1772217509@localhost> <67772.1772462341@localhost> Comments: In-reply-to Antonin Houska message dated "Mon, 02 Mar 2026 15:39:01 +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: <83636.1772472210.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Mon, 02 Mar 2026 18:23:30 +0100 Message-ID: <83637.1772472210@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Antonin Houska wrote: > Mihail Nikalayeu wrote: > > ------------ > > = > > > attrs =3D palloc0_array(Datum, desc->natts); > > > isnull =3D palloc0_array(bool, desc->natts); > > = > > It looks like there is a memory leak with those arrays. > = > I suppose you mean store_change(). Yes, I tried to free the individual c= hunks > and forgot these. The next version uses a new, per-change memory context= . I realize now that I forgot to reset the context at the end of the function. I'll fix that in the next version (which will probably be posted rather soon). -- = Antonin Houska Web: https://www.cybertec-postgresql.com