Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTXN3-0003Ap-Bv for pgsql-committers@arkaria.postgresql.org; Wed, 22 May 2019 19:57:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hTXN2-0003S2-27 for pgsql-committers@arkaria.postgresql.org; Wed, 22 May 2019 19:57:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTXN1-0003Ru-OY for pgsql-committers@lists.postgresql.org; Wed, 22 May 2019 19:57:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTXMz-0006sr-LS for pgsql-committers@lists.postgresql.org; Wed, 22 May 2019 19:57:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x4MJvlYw011442; Wed, 22 May 2019 15:57:47 -0400 From: Tom Lane To: fabriziomello@gmail.com cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix O(N^2) performance issue in pg_publication_tables view. In-reply-to: References: <7015.1558548098@sss.pgh.pa.us> Comments: In-reply-to =?UTF-8?Q?Fabr=C3=ADzio_de_Royes_Mello?= message dated "Wed, 22 May 2019 16:54:54 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11440.1558555067.1@sss.pgh.pa.us> Date: Wed, 22 May 2019 15:57:47 -0400 Message-ID: <11441.1558555067@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?UTF-8?Q?Fabr=C3=ADzio_de_Royes_Mello?= writes: > There are some case I missed to force us to use pg_get_publication_tables > SRF instead of use pg_publication_rel ?? pg_publication_rel isn't going to provide the correct expansion of a FOR ALL TABLES publication, IIUC. regards, tom lane