pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: susan.hurst@brookhurstdata.com
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Missing Trigger after pgdump install
Date: Sun, 18 Aug 2019 12:25:10 -0400
Message-ID: <14188.1566145510@sss.pgh.pa.us> (raw)
In-Reply-To: <059bade8075a3c2e17ad75baf4e399b0@mail.brookhurstdata.net>
References: <53f9ff4448f5210802b5a04c8fa83186@mail.brookhurstdata.net>
	<40cc8a45-5276-b64f-3ad8-a39865bb2a21@aklaver.com>
	<059bade8075a3c2e17ad75baf4e399b0@mail.brookhurstdata.net>

Susan Hurst <susan.hurst@brookhurstdata.com> 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





view thread (10+ messages)

Message-ID: <14188.1566145510@sss.pgh.pa.us>
Permalink:  ../14188.1566145510@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14188.1566145510@sss.pgh.pa.us

 · 

reply

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, susan.hurst@brookhurstdata.com
  Subject: Re: Missing Trigger after pgdump install
  In-Reply-To: <14188.1566145510@sss.pgh.pa.us>
  References: <53f9ff4448f5210802b5a04c8fa83186@mail.brookhurstdata.net> <40cc8a45-5276-b64f-3ad8-a39865bb2a21@aklaver.com> <059bade8075a3c2e17ad75baf4e399b0@mail.brookhurstdata.net> <14188.1566145510@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