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 1hT9UF-0003aO-9f for pgsql-general@arkaria.postgresql.org; Tue, 21 May 2019 18:27:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hT9UD-0003c5-Mg for pgsql-general@arkaria.postgresql.org; Tue, 21 May 2019 18:27:41 +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 1hT9UD-0003ZJ-B1 for pgsql-general@lists.postgresql.org; Tue, 21 May 2019 18:27:41 +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 1hT9UB-0006PQ-22 for pgsql-general@postgresql.org; Tue, 21 May 2019 18:27:40 +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 x4LIRXA7011567; Tue, 21 May 2019 14:27:33 -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_Re=3A_Refresh_Publication_takes_hours_and_doesn=C2=B4t?= =?UTF-8?Q?_finish?= In-reply-to: References: <1551385426763-0.post@n3.nabble.com> <1558383480253-0.post@n3.nabble.com> <1558459007572-0.post@n3.nabble.com> <17139.1558460462@sss.pgh.pa.us> Comments: In-reply-to =?UTF-8?Q?Fabr=C3=ADzio_de_Royes_Mello?= message dated "Tue, 21 May 2019 14:57:25 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <11565.1558463253.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 21 May 2019 14:27:33 -0400 Message-ID: <11566.1558463253@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: > Em ter, 21 de mai de 2019 às 14:41, Tom Lane escreveu: >> 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. > Interesting, I tried the following commands and got error: Oh, huh, this is something that changed recently in HEAD --- since commit 2d7d946cd, stuff created by system_views.sql is not protected as though it were a system catalog. So in released versions, yes you need allow_system_table_mods=on. Sorry for the misinformation. regards, tom lane