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
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Missing Trigger after pgdump install
Date: Fri, 16 Aug 2019 17:36:20 -0700
Message-ID: <3ef62678-ca2d-bbc0-eecf-c9e027397aa8@aklaver.com> (raw)
In-Reply-To: <075cabbaff9591811d6ed04c4c099f2a@mail.brookhurstdata.net>
References: <53f9ff4448f5210802b5a04c8fa83186@mail.brookhurstdata.net>
	<40cc8a45-5276-b64f-3ad8-a39865bb2a21@aklaver.com>
	<059bade8075a3c2e17ad75baf4e399b0@mail.brookhurstdata.net>
	<79a8cb5c-d5d9-7dcb-35d2-08947aa5fbcb@aklaver.com>
	<a05a31ff7022eca1c291b560d9220d52@mail.brookhurstdata.net>
	<ddc73214-1f90-9fef-01b0-6aa0128160ea@aklaver.com>
	<075cabbaff9591811d6ed04c4c099f2a@mail.brookhurstdata.net>

On 8/16/19 3:45 PM, Susan Hurst wrote:
> We're using the 9.5.14 in the sandbox to extract data and objects from 
> the pgdump that was created in the 9.5.0 version.  Hope I answered your 
> question correctly.  If not, let me know and I'll try again.

As Rob pointed out I was wanting to know what pg_binary was used to grab 
the schema and data from the 9.5.0 instance?

> 
> Our biggest concern is that there may be other silent issues that we 
> have not yet discovered.  Thanks for the info you just provided, Adrian. 
>   We'll read up on the path settings to see if we can find an answer there.

In a post upstream you had:

CREATE VIEW subscribers appears on line 11,968 in the dump file


CREATE FUNCTION subscribers_update() appears on line 2,466


CREATE TRIGGER subscribers_iur_trg appears on line 5,457,362


Is that direct from the pg_dump file?

In other words are the above not schema qualified in the file?

In the 9.5.14 instance when you do in psql:

\d  subscribers

what do you get?



> 
> Sue
> 
> ---
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Susan E Hurst
> Principal Consultant
> Brookhurst Data LLC
> Email: susan.hurst@brookhurstdata.com
> Mobile: 314-486-3261
> 
> On 2019-08-16 17:29, Adrian Klaver wrote:
>> On 8/16/19 3:18 PM, Susan Hurst wrote:
>>> Production version:
>>> PostgreSQL 9.5.0 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 
>>> 20120313 (Red Hat 4.4.7-16), 64-bit
>>>
>>> Sandbox version:
>>> "PostgreSQL 9.5.14, compiled by Visual C++ build 1800, 64-bit"
>>>
>>
>> I going to say it has something to do with this:
>>
>> https://www.postgresql.org/docs/9.5/release-9-5-12.html
>>
>> "Avoid use of insecure search_path settings in pg_dump and other
>> client programs (Noah Misch, Tom Lane)"
>>
>> Are you using the 9.5.0 or 9.5.14 version of pg_dump to dump from the
>> production server?
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (10+ messages)  latest in thread

Message-ID: <3ef62678-ca2d-bbc0-eecf-c9e027397aa8@aklaver.com>
Permalink:  ../3ef62678-ca2d-bbc0-eecf-c9e027397aa8@aklaver.com/
Also on:    postgresql.org/message-id/3ef62678-ca2d-bbc0-eecf-c9e027397aa8@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: <3ef62678-ca2d-bbc0-eecf-c9e027397aa8@aklaver.com>
  References: <53f9ff4448f5210802b5a04c8fa83186@mail.brookhurstdata.net> <40cc8a45-5276-b64f-3ad8-a39865bb2a21@aklaver.com> <059bade8075a3c2e17ad75baf4e399b0@mail.brookhurstdata.net> <79a8cb5c-d5d9-7dcb-35d2-08947aa5fbcb@aklaver.com> <a05a31ff7022eca1c291b560d9220d52@mail.brookhurstdata.net> <ddc73214-1f90-9fef-01b0-6aa0128160ea@aklaver.com> <075cabbaff9591811d6ed04c4c099f2a@mail.brookhurstdata.net> <3ef62678-ca2d-bbc0-eecf-c9e027397aa8@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