Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFhKK-0004tg-Oc for pgsql-bugs@arkaria.postgresql.org; Tue, 30 May 2017 13:36:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dFhKK-0005bZ-9g for pgsql-bugs@arkaria.postgresql.org; Tue, 30 May 2017 13:36:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dFhKI-0005bN-Mb for pgsql-bugs@postgresql.org; Tue, 30 May 2017 13:36:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dFhKF-0001QN-Sk for pgsql-bugs@postgresql.org; Tue, 30 May 2017 13:36:45 +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 v4UDaguH010092; Tue, 30 May 2017 09:36:42 -0400 From: Tom Lane To: Flo cc: pgsql-bugs@postgresql.org Subject: Re: Can't restore view with pg_restore In-reply-to: References: <2329.1495640378@sss.pgh.pa.us> <27471.1496084009@sss.pgh.pa.us> Comments: In-reply-to Flo message dated "Tue, 30 May 2017 14:24:12 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10090.1496151402.1@sss.pgh.pa.us> Date: Tue, 30 May 2017 09:36:42 -0400 Message-ID: <10091.1496151402@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Flo writes: > I was not able to find any explicit trigger creation related to > bmv_visits_list, but I have found where the issue comes from. > ... > So basicaly, the extension pglogical adds the table to its list of known > tables and set a trigger to it. Hm, I don't know much about pglogical. Does it automatically add a trigger to every new table without user intervention? If so, that's kinda broken. > What I don't know and don't understand is why it doesn't happen with the > other views. Probably because they don't have to be split into two steps like this one is. I'm guessing that pglogical has a hook installed that sees the CREATE TABLE, thinks this is going to be a regular table, and gloms onto it before it's converted to a view. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs