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.94.2) (envelope-from ) id 1v6kI9-0091pE-JP for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Oct 2025 06:38:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v6kI7-0001ps-CY for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Oct 2025 06:38:20 +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.94.2) (envelope-from ) id 1v6kI7-0001pY-1D for pgsql-hackers@lists.postgresql.org; Thu, 09 Oct 2025 06:38:19 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v6kI4-000nyk-1t for pgsql-hackers@lists.postgresql.org; Thu, 09 Oct 2025 06:38:18 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-b3c2db014easo118595566b.0 for ; Wed, 08 Oct 2025 23:38:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1759991896; x=1760596696; darn=lists.postgresql.org; h=message-id:date:content-transfer-encoding:mime-version:comments :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bUyOxRAIivxJLOc92GMQk2QCGQKMTmkHzn0cCeORMPs=; b=fp6ArLA+nbYdqrmXwOQ92sh+tJl4MPB342P2UuT7SW77GsasZFpZ5HqBd+0MSJGFQU JDrTY8BtnLrsEkrOCcXasrIt7vU0f534Pgh+eI2KXZUsuV0BHxnJHSis+HoYZ79Osjbc 91Zy9PGf7t6eQkcyx2vOy67Slf/5HBBZmbwAfhJjXPeJJVMh4b8KOJjjmLHUkT65Opqt I6gdlJf51kBrt4mdU3aZfkUboy6CxNaMDb0e1FiZGg0zmcgNdcxKWPvh/GhYsqRyIulZ JRdlO7v3QuWvA8YqZlLAMIrerCQS5r0aeKL/YhKGKugviXrOCFRFD/Wrbxu9PNaBGKBU W1yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759991896; x=1760596696; h=message-id:date:content-transfer-encoding:mime-version:comments :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=bUyOxRAIivxJLOc92GMQk2QCGQKMTmkHzn0cCeORMPs=; b=GQCycWHJRmiL7uyiGsG4/8q/dIVIzA5Vy3aR6cccg8F/wSK0kLil6zcfVEt5DU78Xl tPsrSX90xVcLyLVJ4v6O+d1gMGUp6YN+bjGMWCK7b6s5MKWbKk/BMvJhjZ8vcJmh3Qx2 chbntoPmrB1q+7BgqGEN6cnuUjn8Q8VZts0xSKWEujzfJFYtauFw57xTaEwNiXqHtlpG lrX95JZebdh7tZmK9i/nJTYFO7FgkcT1YCOVvR5yXoKVIcwBHOi6cZpCg+qlwE4pJ/L9 +AKZvUCZMqZasjxaAknD/iir/QDPUEmfJ0uHEvaHQbySdwsp4phtrSXHFtPslVPx+xMR pjeQ== X-Forwarded-Encrypted: i=1; AJvYcCWqsloXM9WBMyY8NsvtRGboMNu0iBd9ryrFkO58XHzbehgzaIZ9+8ufAvAVEC4EZ4PhENJEkc32lcvYkZDh@lists.postgresql.org X-Gm-Message-State: AOJu0YzMIXKauSluvOlfl6dHsyBw+Ep9xgzQFeDiUPVZxVK3qNCxfj0F N+ZJZ5JHbSal2VLGA5oFH4Q1i3+BcAmKx8nirqTjNuEPHgrr7sNPNZSjSVJ+OgCnc3SeyL6WvSR LO0hf X-Gm-Gg: ASbGncugFQqrtYR4tWtz3P5XugFVmdAQ9INQQ1LyW0EHMd6pTMAQFAAwOtGQWjdqAly xLUu+BLZZHpIOQOJ+r7sV4V1wsllC/uc1jLEQwi+f3AtBHxB64jXIPGXG7cm1iIpq7/if5aN1/J E2/YipIzEuOA5wYZUl6jZwtjoARDgzj7TydSy1zwMHRNelobKlp49FlJ+cBdtmNpGyt9tkJ71kB lgHaiVetcV7829+ZfyB/GWt/SCzXL6H+IBzzkFwOzlL+XcPygKmIxLH/vCxSqU5HfzxaAOBirnb qvKeJwA9xQOQN2+7/zizYzzXMuqK8ZN+pINHYInReJwmzDejKLrjarGffDlgaQzkMoFq2JaFGex 9yqhDAXLV8AwjWBFkN75fM5iKj+YKQDsxac45O65wrpTZ17APYYl0njeoR+cjamTQVN2ltC0= X-Google-Smtp-Source: AGHT+IGw6wwNhlXI8pytpbNzE+g4Fj93/WIPc4UOAgk7Nc2vm7mkwhEd2Fmn9opQtBzFJwts9VGRMA== X-Received: by 2002:a17:907:7e82:b0:b48:44bc:44de with SMTP id a640c23a62f3a-b50abfd67a2mr660020866b.51.1759991895923; Wed, 08 Oct 2025 23:38:15 -0700 (PDT) Received: from localhost (109-81-168-246.rct.o2.cz. [109.81.168.246]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b4865e7e8d8sm1819716466b.41.2025.10.08.23.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Oct 2025 23:38:15 -0700 (PDT) From: Antonin Houska To: alvherre@kurilemu.de cc: Mihail Nikalayeu , Robert Treat , Pg Hackers , Fujii Masao Subject: Re: Adding REPACK [concurrently] In-reply-to: <202510070909.biaseppvydvg@alvherre.pgsql> References: <202510070909.biaseppvydvg@alvherre.pgsql> Comments: In-reply-to =?us-ascii?Q?=3D=3Futf-8=3FQ=3F=3DC3=3D81lvaro=3F=3D?= Herrera message dated "Tue, 07 Oct 2025 16:05:33 +0200." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 09 Oct 2025 08:38:15 +0200 Message-ID: <7535.1759991895@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =C3=81lvaro Herrera wrote: > On 2025-Sep-26, Mihail Nikalayeu wrote: >=20 > > Should we rename it to repack_context to be aligned with the calling si= de? >=20 > Sure, done. >=20 > > > cmd =3D=3D REPACK_COMMAND_CLUSTER ? "CLUSTER" : "REPACK", > >=20 > > May be changed to RepackCommandAsString >=20 > Oh, of course. >=20 > > Documentation of pg_repackdb contains a lot of "analyze" and even > > "--analyze" parameter - but I can't see anything related in the code. >=20 > Hmm, yeah, that was missing. I added it. In doing so I noticed that > because vacuumdb allows a column list to be given, then we should do > likewise here, both in pg_repackdb and in the REPACK command, so I added > support for that. + /* + * Make sure ANALYZE is specified if a column list is present. + */ + if ((params->options & CLUOPT_ANALYZE) =3D=3D 0 && stmt->relation->va_col= s !=3D NIL) + ereport(ERROR, + (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), + errmsg("ANALYZE option must be specified when a column list is provid= ed"))); Shouldn't the user documentation mention this restriction? --=20 Antonin Houska Web: https://www.cybertec-postgresql.com