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 1hT8lB-0001Z9-9w for pgsql-general@arkaria.postgresql.org; Tue, 21 May 2019 17:41:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hT8l9-0006rP-6a for pgsql-general@arkaria.postgresql.org; Tue, 21 May 2019 17:41:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT8l8-0006rI-TR for pgsql-general@lists.postgresql.org; Tue, 21 May 2019 17:41:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT8l6-0005Mq-TM for pgsql-general@postgresql.org; Tue, 21 May 2019 17:41:06 +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 x4LHf2ia017140; Tue, 21 May 2019 13:41:02 -0400 From: Tom Lane To: =?UTF-8?Q?Fabr=C3=ADzio_de_Royes_Mello?= cc: PegoraroF10 , Postgres General Subject: Re: =?UTF-8?Q?Re=3A_Refresh_Publication_takes_hours_and_doesn=C2=B4t_fin?= =?UTF-8?Q?ish?= In-reply-to: References: <1551385426763-0.post@n3.nabble.com> <1558383480253-0.post@n3.nabble.com> <1558459007572-0.post@n3.nabble.com> Comments: In-reply-to =?UTF-8?Q?Fabr=C3=ADzio_de_Royes_Mello?= message dated "Tue, 21 May 2019 14:27:01 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17138.1558460462.1@sss.pgh.pa.us> Date: Tue, 21 May 2019 13:41:02 -0400 Message-ID: <17139.1558460462@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: > As I said before to change system catalog you should set > "allow_system_table_mods=on" and restart PostgreSQL service. > After that you'll able to recreate the "pg_catalog.pg_publication_tables" > system view. (You can use the Tom's suggestion using LATERAL) It's a view, not a table, so I don't think you need allow_system_table_mods. A quick test here says that being superuser is enough to do a CREATE OR REPLACE VIEW on it. regards, tom lane