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 1oE8oi-0001dJ-8H for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jul 2022 12:28:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oE8oh-000319-5i for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jul 2022 12:28:39 +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 1oE8nN-0002gg-FR for pgsql-hackers@lists.postgresql.org; Wed, 20 Jul 2022 12:27:17 +0000 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oE8nG-0004o3-G2 for pgsql-hackers@postgresql.org; Wed, 20 Jul 2022 12:27:16 +0000 Received: by mail-qk1-x72c.google.com with SMTP id c24so7948151qkm.4 for ; Wed, 20 Jul 2022 05:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=uu+vhL7fthRunZge/u+ht47WhI2+J/m+yr2Ul1bo+Gc=; b=zeTa3uxdXNfpbvgVNVCsUUK3dTqz/wDyjI8QDas3Xy6EwQePsyOHintq6bpB/iJj57 C/o4OEdsSjFyLPrDFrORTfHAtqAANb+00NvY5QwLiA1yiv3CVO5yXLRtZCnnInI7vxLB Z6oRHIFdiwylmWAKmrHEs2UcL3DqjDbCD3xtHvlxn/fZ7xYf6uy4/5n3zan+hNBFJW+u cum3j1Ly+LCg9urHZxpllo5zpMOUJ7MJVOkAp2TpaazVrWjHSzHTynJaBYPCnzzaFYA5 JltPQRH9/jYNLvq1fQkyZo4P/p3ptyKGhTbumXniH6mPlVGb3FJpcG+vjkyGrrx/RPTP qYjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=uu+vhL7fthRunZge/u+ht47WhI2+J/m+yr2Ul1bo+Gc=; b=qpaJtuLoEbP5EuMd8AOu5GBiEBQVLRj8h4ia9LSIYfMoZPv3VwAoxvhG4mdjQIP7d8 vV0YQN72C/lU5RmWjkzIJYKIvah7UZO0Pa6gvbV/yiUwqwUCUBG0GrNK3kMEJfx9b8tD +qlPznTaOX5EpXKgxT39XsVlH3EztG9kNRJvgSwEN0I0KPHbRJH+HRvsWglaIK9/ADZH W/bzY2oeATFsYdQqt51N9duUMsvFBoufmW/oYQ4rTgHz2bajEEKMnbXovyqfglXLhd+S 182dOk1vA5eWzz0SahnDzkO1ZmfAU56mc/kHs54Jr2ga+Q10v6fpVg6+d8DrA+PwGjG4 K8mw== X-Gm-Message-State: AJIora+0yENh/LPOLkT2PtfqwHWXUg+0PKk69LNCRsQ3cKEHo3xW/lKR VeSx7D48g5PhsjBmGJKUU3irtg== X-Google-Smtp-Source: AGRyM1tFsKpMKv/rsTlbB7ixCc3TOsSijLZ4r/9mqjw3C4S4OS4TcTb6/2qWpFQaJZIoPnNp3U9o2g== X-Received: by 2002:a05:620a:3196:b0:6b6:99b:ce33 with SMTP id bi22-20020a05620a319600b006b6099bce33mr984373qkb.760.1658320028873; Wed, 20 Jul 2022 05:27:08 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id s22-20020ac85296000000b0031eed13a58asm5904473qtn.92.2022.07.20.05.27.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jul 2022 05:27:08 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 7FA1D8009F4; Wed, 20 Jul 2022 07:27:07 -0500 (CDT) Date: Wed, 20 Jul 2022 07:27:07 -0500 From: Justin Pryzby To: Michael Paquier Cc: Simon Riggs , Tom Lane , Alvaro Herrera , Bernd Helmle , Ashutosh Bapat , pgsql-hackers@postgresql.org, Ashutosh Bapat Subject: Re: Allowing REINDEX to have an optional name Message-ID: <20220720122707.GI12702@telsasoft.com> References: <1386216.1656884491@sss.pgh.pa.us> <20220719022652.GE12702@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Tue, Jul 19, 2022 at 01:13:34PM +0900, Michael Paquier wrote: > > It looks like you named the table "toast_relfilenodes", but then also store > > to it data for non-toast tables. > > How about naming that index_relfilenodes? One difference with what I > posted previously and 5fb5b6 is the addition of an extra regclass that > stores the parent table, for reference in the output. Looks fine > - 'CREATE TABLE toast_relfilenodes (parent regclass, indname regclass, relfilenode oid);' > + 'CREATE TABLE index_relfilenodes (parent regclass, indname regclass, relfilenode oid);' -- Justi