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 1vGZAG-000qLW-PK for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Nov 2025 08:46:48 +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 1vGZAE-001J9y-Dq for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Nov 2025 08:46:45 +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.94.2) (envelope-from ) id 1vGZAE-001J9o-2X for pgsql-hackers@lists.postgresql.org; Wed, 05 Nov 2025 08:46:45 +0000 Received: from mail-ua1-x92b.google.com ([2607:f8b0:4864:20::92b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vGZAA-0065NQ-2f for pgsql-hackers@lists.postgresql.org; Wed, 05 Nov 2025 08:46:44 +0000 Received: by mail-ua1-x92b.google.com with SMTP id a1e0cc1a2514c-930ae1b2627so4171089241.2 for ; Wed, 05 Nov 2025 00:46:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762332401; x=1762937201; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=uH5pO0ChYGjIG7F/1hZL0FkynB3PvCjcJoPfJwq68c8=; b=AN18iQhA81TKtjN9+bLnLVdGwQvrJ8pBmhIQpm6RdCirKT6j1KUg6Uo+q+4MOePbMx n0ygxaf54UmjH9AFUEfa21F+4JRnxZQAWfJ3zIUuHP+Iu0wU4ZwhcHDQC6uhs0VNQnBr 9IQHvEaJUsswR5ON98oTYsr8yVx9UX2xRdKk1XRdTf5szmanS8OdPMJknehsfkjmV+bV FhuKy+jgugLv4BPhIKbCR9T5ZBnq8XLWTtlXfApYzVVp+znkHUL2R1fX+4aigWNhRBvo YeTLhuQVpc5ZXj3v2JehiV+oybkLiQdI6AeutgM4OL3RiWuocFlRaA9VjeTd5b3nZKl/ BL0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762332401; x=1762937201; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uH5pO0ChYGjIG7F/1hZL0FkynB3PvCjcJoPfJwq68c8=; b=FNNX/dzYWCHPZ53HiyIP8LG8RbquYxbMVqhDTHuYu67jGZdh1HRJ69Uq8E5aMLgB+C f6gXrbL5Gf8EFXjGtj6DxYB6hqOSVolCK9jt2nI3d/QxkxieYrR06tT2nEyqwdesqCXS RbN3do3ge/LGQ16Es3KYouz+aAfMOgmzkpLbqgY6CTnILzR7TOMmVaUexazeww+WKW0+ htgX5koAeiLr8QEClTrf0ugz/wsp3EXcUdjH/1UW+Ok6Iwfq6/9Tif+dMhtgvRQP08f/ A+Dk5ynN3inOHR0EM94Z04UXqpzUdAVGYZcCfJtcPWLg/i/qUR57EeRgzuuXPOrV/DDx LXTg== X-Forwarded-Encrypted: i=1; AJvYcCWUIMFa6EQyNLJ6uEkLTxb4YSsIXonsfchFMFNIgE8XClAmQ+V9aU5Cb9unWAf0MfZmhgvWoeeCblMIfH+N@lists.postgresql.org X-Gm-Message-State: AOJu0YyVVOoL8WDac0sRBBhEo+pBppZdxqP/HpRyAb7PSQYcM5dQm3rE 32wP9IDRsfKrKTqrHyKmr3W7ad1hp1xjfoO4q8XZkApkYm7JRmz0Fp94wdr5BMu72AeC/DaqYmH ChwO61B+xadIneW3P3w7PQU3OE9DhTH0= X-Gm-Gg: ASbGnctcPjMMFjdaUFXxwWELIo0EwwUA7jS3u7Vn9I/K/PH1FPuf1m2mUIq9FWos64a jfPtAZpGVx3LL/ohVbrDBMhaIZ7A2gCVcGADvJ6lmh2EsoogKn7SweGfIHd384FhpajbuYon6Gd H10B2+hpm5z1mzsHgpXA6fKAbSGA0EiMWdMtJQcxdvmTk4kNpfP/4sIaE7rbGuIr/aO2x+n8WaP twDYgFzEhhcn+dq7uAjhLZko6tBP+tkMgQUhhc5JI5AGWQTYC9BGYeKexwUZ4PDNSmtchPTPoF5 eLO04NHx1jgPKopOZgmHsBUUFEm5jIw3UNpv4ofop0X0zbv4YF11eJuYrJ3aQktqFNwQ5LfJRzv tsEJ7AvI84vkoK6+FOSMMltrtg8e/OMrYOTA+j/WFaAWJfgzG/93ZsMz9WlsmB/04trGSukTnaQ == X-Google-Smtp-Source: AGHT+IHe1f4lP47GdweoLPySQzi5/KeowLqe4IaIg/xhQdzrf+GvWjJUbtezEKc3Px4iNG0rEjvFQUTrbZQXHiBKkAU= X-Received: by 2002:a05:6102:cc6:b0:534:cfe0:f85b with SMTP id ada2fe7eead31-5dd892073a9mr1000256137.20.1762332400586; Wed, 05 Nov 2025 00:46:40 -0800 (PST) MIME-Version: 1.0 References: <202507262156.sb455angijk6@alvherre.pgsql> <202510301734.pj4uds3mqxx4@alvherre.pgsql> In-Reply-To: From: jian he Date: Wed, 5 Nov 2025 16:46:04 +0800 X-Gm-Features: AWmQ_blpZXKzg7RjAF-9ThCVpNRQ45rfLymDzOHJiHsxxDInG5IQC7zB_sl7ctw Message-ID: Subject: Re: Adding REPACK [concurrently] To: Robert Treat Cc: Alvaro Herrera , Pg Hackers , Antonin Houska , Mihail Nikalayeu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Nov 5, 2025 at 1:11=E2=80=AFPM Robert Treat wrote: > > -------------------- > > > > + printf(_(" --index[=3DINDEX] repack following an ind= ex\n")); > > should it be > > + printf(_("--index[=3DINDEX] repack following an ind= ex\n")); > > ? > > > > I believe this is included for alignment, since this option has no > shorthand version. > if you compare pg_dump --help, pg_repackdb --help then you will see the inconsistency. This is legacy behavior, but can we move some of the error checks in do_analyze_rel to an earlier point? we call cluster_rel before analyze_rel, cluster_rel is way more time-consum= ing, a failure in analyze_rel means all the previous work (cluster_rel) is waste= d. + else if (HeadMatches("REPACK", "(*") && + !HeadMatches("REPACK", "(*)")) + { + /* + * This fires if we're in an unfinished parenthesized option list. + * get_previous_words treats a completed parenthesized option list as + * one word, so the above test is correct. + */ + if (ends_with(prev_wd, '(') || ends_with(prev_wd, ',')) + COMPLETE_WITH("VERBOSE"); + else if (TailMatches("VERBOSE")) + COMPLETE_WITH("ON", "OFF"); + } this part can also support the ANALYZE option? ClusterStmt should be removed from src/tools/pgindent/typedefs.list? doc/src/sgml/ref/clusterdb.sgml clusterdb has been superceded by pg_repackdb. google told me, "superceded" should be "superseded" -- jian he EDB: http://www.enterprisedb.com