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 1uhnbh-004DyL-3K for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Aug 2025 11:07:25 +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 1uhnbf-007JS8-Hu for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Aug 2025 11:07:23 +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 1uhnbf-007JS0-8c for pgsql-hackers@lists.postgresql.org; Fri, 01 Aug 2025 11:07:23 +0000 Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uhnbd-000BvN-0F for pgsql-hackers@lists.postgresql.org; Fri, 01 Aug 2025 11:07:22 +0000 Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-3e3fcf5b150so10634895ab.1 for ; Fri, 01 Aug 2025 04:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754046437; x=1754651237; 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=rXnajatl/L+eVKawXu2fhJdDMIcIH95FQ1c3n54q3yk=; b=Ap4KUKAOJ/BVP6LCuA0h0Jv6t4f4XvBtakGRoMxEfPuBVOqqMQA83KMJVEd1KoMbmF i4P0x8341fmRA/8vuNxBNAI+d0i/odNlnFO9Ov08CJNQSMeP6X7zUVBphi2Pg59/uw9Y 4sPOha0OItsQVnobnqM7zeqXc6Uc0nlcANppHDbJ0Bgn/Rv/TlvYwJsGF/RWiWc6oxkq wN1ZWhxxPnxqWipXQQDtH1HUclu0KDpVeAe+zJg7DbgNJmIYYHkWzGY9UK2p/4v2+AQc l86AX1yfkFwtI30CNLZXmdEMSqEvTu+dMXCJtDip6u721q1SjuQPOtsgpLpajSwiVaPY y9Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754046437; x=1754651237; 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=rXnajatl/L+eVKawXu2fhJdDMIcIH95FQ1c3n54q3yk=; b=NHU+2k2Ma4soGqDM2+dJCx8B3m7hM2Jdj9bXa2zuQMo9489Jh1zjD+5B+Rb7BGWbsg mFVg02nppC4hvw7dAgHRy6hQwrAbyPxXkaP0rgA5eDN2xhwI/74exkpvl1nzsHggSXSb UyrtvaC+NnLMG7hAHseHRh9EYJrVMEPNU4VLDRpvWjEargPSMqJNrM5R41V4wO6Ow7LT 4FVlJpzIKBlasIdNKUuSuc6re6IjYHlD0AYT/Kz66Suu1uPYzs/xiyZOVqM1kaQ9A5CQ h4r5mU9uyT8OUCKoZBrIHK1i1PQnzolPpWp9vD4pZ22MKOkXcxhwiclyUK86hDvYFzn1 B1ow== X-Forwarded-Encrypted: i=1; AJvYcCXLsw0UtcEBOdpXRIYSqmKVL5gbSQo/o9+0sJUwpXNIST0dsWQpEvLW+kWbEGmCCGdq6TDQzMVEZQBmqXWm@lists.postgresql.org X-Gm-Message-State: AOJu0YwoTTUPlRPLIQCKZRxQ9EcmcbPJK0vU7wV2Is77iya9lv06kPoY DY0ewo3iJ+cTWGvZUbtYYDCywwHUoMtRgSDwSyaXL6axSgwH4Af9FFWtWqDgMJwNn5QWaXzl22g RslugFYKqqmsrQUMLmKEpOmHIFmbSYdQ= X-Gm-Gg: ASbGnctrXDy0Gz2TUJNA3QQU1EJuP4WgTXY89U84tl0uo2NFzHYlDAn5dWWCF3+bccR iYyNN0sRmHj1r2kP2b0YQegDC1TGLhX3/TslUg8ghr/dev+aHS7/is4cnz4JNkgr4uRLuvh3gSj qc2mX0C42QGw/ivFMXpHhJHeNqwgTJZFHC75CwsHQRdoimOxoHu/1R3wU5TJbgHDzxpB+ovYRBJ DQXMcYBsWtjP7EPITV9Lv7k57HO2c0NY9LAawojbg== X-Google-Smtp-Source: AGHT+IEveyuGFq99svEQjj96dtntWJZ/b3TDnAYRxIdeAWpZJr8kvde0Y5oRh6znNZb2fcVhdWEqmJ9KTiLfZ+UNWlM= X-Received: by 2002:a05:6e02:1c0b:b0:3e3:d968:bb2b with SMTP id e9e14a558f8ab-3e40d687384mr43874165ab.7.1754046437033; Fri, 01 Aug 2025 04:07:17 -0700 (PDT) MIME-Version: 1.0 References: <202507311650.3a44mqyi3xnw@alvherre.pgsql> In-Reply-To: <202507311650.3a44mqyi3xnw@alvherre.pgsql> From: Fujii Masao Date: Fri, 1 Aug 2025 20:07:05 +0900 X-Gm-Features: Ac12FXwjOHmpQT0E-9_1VZqURSIMieUOF-jOlfsjVZrdbTQ88kXFAbnrcvZbgvA Message-ID: Subject: Re: Adding REPACK [concurrently] To: Alvaro Herrera Cc: Robert Treat , Pg Hackers , Antonin Houska 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 Fri, Aug 1, 2025 at 1:50=E2=80=AFAM Alvaro Herrera wrote: > One of the later patches in the series, which I have not included yet, > intends to implement the idea of transiently enabling wal_level=3Dlogical > for the table being repacked concurrently, so that you can still use > the concurrent mode if you have a non-logical-wal_level instance. Sounds good to me! > Here's v17. I just tried REPACK command and observed a few things: When I repeatedly ran REPACK on the regression database while make installcheck was running, I got the following error: ERROR: StartTransactionCommand: unexpected state STARTED "REPACK (VERBOSE);" failed with the following error. ERROR: syntax error at or near ";" REPACK (CONCURRENTLY) USING INDEX failed with the following error, while the same command without CONCURRENTLY completed successfully: =3D# REPACK (CONCURRENTLY) parallel_vacuum_table using index regular_sized_index ; ERROR: cannot process relation "parallel_vacuum_table" HINT: Relation "parallel_vacuum_table" has no identity index. When I ran REPACK (CONCURRENTLY) on a table that's also a logical replication target, I saw the following log messages. Is this expected? =3D# REPACK (CONCURRENTLY) t; LOG: logical decoding found consistent point at 1/00021F20 DETAIL: There are no running transactions. STATEMENT: REPACK (CONCURRENTLY) t; Regards, --=20 Fujii Masao