Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIAJw-0007aH-AV for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Jan 2023 15:25:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pIAJv-0002fm-4T for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Jan 2023 15:25:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIAJu-0002fc-O1 for pgsql-hackers@lists.postgresql.org; Wed, 18 Jan 2023 15:25:46 +0000 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pIAJo-0003if-8e for pgsql-hackers@lists.postgresql.org; Wed, 18 Jan 2023 15:25:46 +0000 Received: by mail-io1-xd33.google.com with SMTP id q130so3596903iod.4 for ; Wed, 18 Jan 2023 07:25:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=QNu+tr+GMiQKpXMZEMPpWjtFwyRCgGTNaF//QKtZ0Yo=; b=sLxhWcZeVHMEGIbSh4rXB3MqAnZv71MM9MxS7lFCHYVvu1siRIgHcxYxMxf0oNJx9k +Nq8gtB9H+A2zUFJyNCw3V27YwBHSLZFTQrJvondDLa4l0F2/wC/npfp8UGFX78JCpE3 mfBd3Y3yWcfoEvVzOdZ6N8pWxZLrRFNdy5UclT9iLWOCR5ACKoFaMLytp8g4S4wOK/M7 Z9KzBD4jxeVA1/P3qsSH56gmB/C4vl15folDSV9WLsZWzZuPnWMmigYVSLrGA839T3YQ +ww33mCRSm3aB5ebqde/UhufggSX+CqATA+J51FQ4+gRaQ4dsemTQHKYGuUNJCQ5FqDf U3HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QNu+tr+GMiQKpXMZEMPpWjtFwyRCgGTNaF//QKtZ0Yo=; b=dTF90vBmIGwUYtXKVyHQaurChZ//NBF810epzHOlj3iuSl1A8vbZ/y2GjAEP1HZ/nK CLzdwNrff6O60p2l9A8s7vI5aDYztXztzMhitz7KurrLb4P6JYPqoC6MV063IAUQElzy opbKMvU27F0t8vsjlkffZiYfVPIVD5cswdUPMMIwMLSn/XvCJHieocJdlR+AOFOcbyrZ +CmZ7Z9Dmm24G26+symZh1IEMRNnsK2Ty9mTD9brDbx06vFlvEVNa8wkAQNIoQYC7f9K azdHF/FRGelpGoBkAtGD8PqnttwshAxshDfGF7ofH5HM14x7IFaoiv5WXsYBUiKlicCZ 1naQ== X-Gm-Message-State: AFqh2kpuqnb4VA+zs4mEuoO7kFvj5GJZWft8d2xEyHzuv+0pnzKm+I4h wtSWyGq5H04Pp403N87yIzyfdA== X-Google-Smtp-Source: AMrXdXtfHv2t8YpClesYl/1x/hcJpndw/DUyLrHUsyKHuLzu1cDw5AR99iyz3wODMt465rZqosFDBQ== X-Received: by 2002:a5d:9045:0:b0:704:cf7f:27f6 with SMTP id v5-20020a5d9045000000b00704cf7f27f6mr4671367ioq.17.1674055537433; Wed, 18 Jan 2023 07:25:37 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id d18-20020a0566022d5200b006cecd92164esm11564352iow.34.2023.01.18.07.25.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 07:25:36 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id A95E58008F8; Wed, 18 Jan 2023 09:25:35 -0600 (CST) Date: Wed, 18 Jan 2023 09:25:35 -0600 From: Justin Pryzby To: Tomas Vondra Cc: Ilya Gladyshev , pgsql-hackers@lists.postgresql.org, Alvaro Herrera Subject: Re: Progress report of CREATE INDEX for nested partitioned tables Message-ID: <20230118152535.GZ9837@telsasoft.com> References: <039564d234fc3d014c555a7ee98be69a9e724836.camel@gmail.com> <20221217143002.GR1153@telsasoft.com> <20230108164849.GA21731@telsasoft.com> <865a4ff239b6824fd5bbdd4a972390d1e95144b4.camel@gmail.com> <31ee17da-8705-9afc-9451-5374a5e51aff@enterprisedb.com> <20230117205904.GW9837@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230117205904.GW9837@telsasoft.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk TBH, I think the best approach is what I did in: 0001-report-top-parent-progress-for-CREATE-INDEX.txt That's a minimal patch, ideal for backpatching. ..which defines/clarifies that the progress reporting is only for *direct* children. That avoids the need to change any data structures, and it's what was probably intended by the original patch, which doesn't seem to have considered intermediate partitioned tables. I think it'd be fine to re-define that in some future release, to allow showing indirect children (probably only "leaves", and not intermediate partitioned tables). Or "total_bytes" or other global progress. -- Justin