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 1umtba-005JEQ-SJ for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Aug 2025 12:32:23 +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 1umtbX-00FDkb-Di for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Aug 2025 12:32:19 +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 1umtbW-00FDkT-OQ for pgsql-hackers@lists.postgresql.org; Fri, 15 Aug 2025 12:32:19 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1umtbR-000uzU-2T for pgsql-hackers@lists.postgresql.org; Fri, 15 Aug 2025 12:32:18 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-afcb7ace3baso318664766b.3 for ; Fri, 15 Aug 2025 05:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1755261132; x=1755865932; 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=BO5M9non8SaLpwO6k2eewsMDENusUqb4uvo3OxCWEtg=; b=eQ8HdDpHr74Vx1ft8xLQAjI/SrmpfvfKgNMPdUP2GsMCfH8xBgY9d1VOD31+z3WOI9 SqfFJOJviNaq5sRstk2boOSaz5Hq5dFaJyrKb2UDci1qsjBJbzLcq3aQ7mh5oP0/IY8U MbwLH3v3lEw59jxhTHI4mxRGyt5cp8UDf7HNR4g/eAhhbGt1bAFufikVPjrJIF3rvJhs VllfE8QmUEv/cMjKm0FFh4avF7Xj8MzG/vQVR9s3OAUZBz6uExvUiOaZRpPit3P4+H1m AWhx3Qh5j18EUSCXYlWxWZzzIsDE89/BrgHy2GCrsUq5sWZP1VGucDHiHRL52cMf012T er9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755261132; x=1755865932; h=message-id:date: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=BO5M9non8SaLpwO6k2eewsMDENusUqb4uvo3OxCWEtg=; b=uUHGUYuouGABQnU1GMCGolJD0Q50jJro6uAL7OqYTAj6zxog4EMbMRKXfAD0e3srnR j4RNS+VIFlcK8WfhoTqI0NPem6NUXm5k3cL6acdNJpQMW8Z1A8W1+v3jaPSXbP4TCrg3 +VX6MSQqQx1hbUIvTmJxiDfO6qn1gw961FFNt+8LM25WqBK77vqXmLWMP1lau9ZB3Gj8 QfKfXb7dFdU1EkzsNHeSrffJRVMZYIpNEiLikirDZIBh8Zov4c/71mK8shJukjgmrzO+ Pc2Wbaz54EfKZG1FjGbqkBrE39XlYaPPB/uG8kzZdgeBgnGCUSuxI4zwViRZznvuOT+v Q11g== X-Forwarded-Encrypted: i=1; AJvYcCXGldNTRG3ZL5Y0xmf0oV4VlENEox28cVWjn/uRjo6vTmJq+IKbQPxeXq7p1BroxjAU5zIhLoc7ytYiTVYv@lists.postgresql.org X-Gm-Message-State: AOJu0YzSTFWpuRKm52g3H/+TCJHJK7M7/DKMrq0OUumApM2Z74KD+DIG DlZnlNpr6jsMdcghz4hAbTzQeo5Rz1v/QLB/ekEJK0JD/AuiVOBEbAQIW63X/jLqm/8= X-Gm-Gg: ASbGncszXtYcMWdgbqpsbh0T6eJ3vl/TL/xqhRnSJSWRUwCllQeZC3MaT65M1pVVJaa gsOW9CWJVFfS+QwJm1rpB0VfLWC1gs8wbyxbqDSMhAr1xRN4hKmYdE4fcHd1MuZegBIUgiWZH6B UPUecA2nGuFqEM6C0pKcwm4Xm8MFRCKvIzxb0nz6FIXQUufpMr/gu3NTHqW/jQqlRSz/fGfRshu GMmYuP0LrDvDjN/PXnw7lCRcqcFCwY0qnJnWWZIu+Xmu3e1v9DRZ3ECv2sXxSCBvk1zKPYnlKHU NMXH/o5gsDdvKhA5tjifD4bbSdSKVDKnDCH2fTj6gAhgGfFr/Usrk6DTewkY8GXi4oVsHJyB9uo bw5nXWqggHCWPJHK7pgGaes7zDUMc7sM/ykAMlqfjRo047to= X-Google-Smtp-Source: AGHT+IHM5/QfcatWktVQn+L+/i3Z5RWGPJcMkl6g1OMRdzmciE6bSblDa480kt7GAhic0eFcyKpN2g== X-Received: by 2002:a17:907:6d06:b0:af6:361e:664d with SMTP id a640c23a62f3a-afcdc1f8b6bmr160212366b.7.1755261131053; Fri, 15 Aug 2025 05:32:11 -0700 (PDT) Received: from localhost (109-81-168-144.rct.o2.cz. [109.81.168.144]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-afcdce54016sm137850066b.9.2025.08.15.05.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Aug 2025 05:32:10 -0700 (PDT) From: Antonin Houska To: Alvaro Herrera cc: Mihail Nikalayeu , Fujii Masao , Robert Treat , Pg Hackers Subject: Re: Adding REPACK [concurrently] In-reply-to: <41104.1754922120@localhost> References: <202507311650.3a44mqyi3xnw@alvherre.pgsql> <41104.1754922120@localhost> Comments: In-reply-to Antonin Houska message dated "Mon, 11 Aug 2025 16:22:00 +0200." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Fri, 15 Aug 2025 14:32:09 +0200 Message-ID: <76312.1755261129@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-=-= Content-Type: text/plain Antonin Houska wrote: > Mihail Nikalayeu wrote: > > > One more thing - I think build_new_indexes and > > index_concurrently_create_copy are very close in semantics, so it > > might be a good idea to refactor them a bit. > > You're right. I think I even used the latter for reference when writing the > first. > > 0002 in the attached series tries to fix that. build_new_indexes() (in 0004) > is simpler now. This is v18 again. Parts 0001 through 0004 are unchanged, however 0005 is added. It implements a new client application pg_repackdb. (If I posted 0005 alone its regression tests would not work. I wonder if the cfbot handles the repeated occurence of the 'v18-' prefix correctly.) -- Antonin Houska Web: https://www.cybertec-postgresql.com --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=v18-0001-Add-REPACK-command.patch