From: Tom Lane <tgl@sss.pgh.pa.us>
To: Flo <fluancefg@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Can't restore view with pg_restore
Date: Tue, 30 May 2017 09:36:42 -0400
Message-ID: <10091.1496151402@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPW7RPkQLb_4VmwQYqd6oVVJNYzxqw0wwWzdGP8yqhEUe_91Bg@mail.gmail.com>
References: <CAPW7RP=YgN+sa_TV2OvQ5404bJ9vA9_YAOd7upJNiNLbtg4qvw@mail.gmail.com>
<2329.1495640378@sss.pgh.pa.us>
<CAPW7RP=mvCOxb=K2cnUgdqmRbnpdz4EX_0hZ+djDyorJ-5VfUQ@mail.gmail.com>
<27471.1496084009@sss.pgh.pa.us>
<CAPW7RPkQLb_4VmwQYqd6oVVJNYzxqw0wwWzdGP8yqhEUe_91Bg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Flo <fluancefg@gmail.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, fluancefg@gmail.com
Subject: Re: Can't restore view with pg_restore
In-Reply-To: <10091.1496151402@sss.pgh.pa.us>
References: <CAPW7RP=YgN+sa_TV2OvQ5404bJ9vA9_YAOd7upJNiNLbtg4qvw@mail.gmail.com> <2329.1495640378@sss.pgh.pa.us> <CAPW7RP=mvCOxb=K2cnUgdqmRbnpdz4EX_0hZ+djDyorJ-5VfUQ@mail.gmail.com> <27471.1496084009@sss.pgh.pa.us> <CAPW7RPkQLb_4VmwQYqd6oVVJNYzxqw0wwWzdGP8yqhEUe_91Bg@mail.gmail.com> <10091.1496151402@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox