pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: susan.hurst@brookhurstdata.com
To: Discuss List Postgres <pgsql-general@lists.postgresql.org>
Subject: Re: Missing Trigger after pgdump install
Date: Fri, 16 Aug 2019 11:37:59 -0700
Message-ID: <40cc8a45-5276-b64f-3ad8-a39865bb2a21@aklaver.com> (raw)
In-Reply-To: <53f9ff4448f5210802b5a04c8fa83186@mail.brookhurstdata.net>
References: <53f9ff4448f5210802b5a04c8fa83186@mail.brookhurstdata.net>

On 8/16/19 11:27 AM, Susan Hurst wrote:
> What scenarios can cause a single trigger to be omitted when populating 
> an empty database from a pgdump file?
> 
> We have nightly backups of our production database that we load into a 
> fresh, empty database in our sandbox using the pgdump file.
> 
> psql.exe -h localhost -U mi601db -p 5432 -o 
> C:<filepath>db_create_output.txt -L C:\<filepath>\db_create_log.txt -d 
> skyfall < C:<filepath>\mi601db.pg

What is the dump command?

What happens if you add -b to above?

Which log file are you referring to below, the one generated above or 
the Postgres server log?

> 
> All objects and data appear in the new database as expected, except for 
> a single trigger named subscribers_iur_trg.  The trigger exists in 
> production and in the pgdump file.  I can add it manually with no errors 
> but it's always missing after our automated process.  Nothing useful 
> appears in the log file. The dependent function, 
> devops.subscribers_update() is present and accounted for as is the view, 
> devops.subscribers.
> 
> CREATE TRIGGER subscribers_iur_trg
>    INSTEAD OF UPDATE
>    ON devops.subscribers
>    FOR EACH ROW
>    EXECUTE PROCEDURE devops.subscribers_update();
> 
> We've checked everything we can think of but we're still missing the 
> trigger every day.
> 
> Thanks for your help!
> 
> Sue


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (10+ messages)  latest in thread

Message-ID: <40cc8a45-5276-b64f-3ad8-a39865bb2a21@aklaver.com>
Permalink:  ../40cc8a45-5276-b64f-3ad8-a39865bb2a21@aklaver.com/
Also on:    postgresql.org/message-id/40cc8a45-5276-b64f-3ad8-a39865bb2a21@aklaver.com

 · 

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: adrian.klaver@aklaver.com, susan.hurst@brookhurstdata.com
  Subject: Re: Missing Trigger after pgdump install
  In-Reply-To: <40cc8a45-5276-b64f-3ad8-a39865bb2a21@aklaver.com>
  References: <53f9ff4448f5210802b5a04c8fa83186@mail.brookhurstdata.net> <40cc8a45-5276-b64f-3ad8-a39865bb2a21@aklaver.com>

* 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