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 1hzNzb-0005XP-PS for pgsql-general@arkaria.postgresql.org; Sun, 18 Aug 2019 16:25:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hzNzZ-0002y0-Ta for pgsql-general@arkaria.postgresql.org; Sun, 18 Aug 2019 16:25:17 +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 1hzNzZ-0002xF-KP for pgsql-general@lists.postgresql.org; Sun, 18 Aug 2019 16:25:17 +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 1hzNzX-000409-Q3 for pgsql-general@lists.postgresql.org; Sun, 18 Aug 2019 16:25:17 +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 x7IGPAmU014189; Sun, 18 Aug 2019 12:25:10 -0400 From: Tom Lane To: susan.hurst@brookhurstdata.com cc: pgsql-general@lists.postgresql.org Subject: Re: Missing Trigger after pgdump install In-reply-to: <059bade8075a3c2e17ad75baf4e399b0@mail.brookhurstdata.net> References: <53f9ff4448f5210802b5a04c8fa83186@mail.brookhurstdata.net> <40cc8a45-5276-b64f-3ad8-a39865bb2a21@aklaver.com> <059bade8075a3c2e17ad75baf4e399b0@mail.brookhurstdata.net> Comments: In-reply-to Susan Hurst message dated "Fri, 16 Aug 2019 15:00:53 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14187.1566145510.1@sss.pgh.pa.us> Date: Sun, 18 Aug 2019 12:25:10 -0400 Message-ID: <14188.1566145510@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Susan Hurst writes: > Error from Postgres server log (postgresql-2019-08-16_140110.log): > 2019-08-16 14:04:24 CDT ERROR: relation "devops.subscribers" does not > exist > 2019-08-16 14:04:24 CDT STATEMENT: create trigger subscribers_iur_trg > instead of update > on devops.subscribers > for each row > execute procedure devops.subscribers_update(); This log file is definitely where you should be looking for more information. Is that the *only* message that appears while trying to restore the dump file? Is the pg_dump version that's being used to create the dump file 9.5.0, or something later? (Use pg_dump --version if you're unsure --- but I'm suspicious that it's 9.5.0, if it's from the source server installation.) Trawling the commit log, I see a number of post-9.5.0 bug fixes related to pg_dump's handling of views that have index dependencies. I wonder whether any of those are related to this. The symptoms don't seem to quite match, but ... > CREATE VIEW subscribers appears on line 11,968 in the dump file Is it possible that you've got more than one view named "subscribers", in different schemas? If so this might not be the relevant entry. regards, tom lane