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 1hymhy-0000dA-2y for pgsql-general@arkaria.postgresql.org; Sat, 17 Aug 2019 00:36:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hymhw-0005Vg-JQ for pgsql-general@arkaria.postgresql.org; Sat, 17 Aug 2019 00:36:36 +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 1hymhu-0005P5-J2 for pgsql-general@lists.postgresql.org; Sat, 17 Aug 2019 00:36:36 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hymhl-0008Ab-6S for pgsql-general@lists.postgresql.org; Sat, 17 Aug 2019 00:36:32 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 64D973F9; Fri, 16 Aug 2019 20:36:22 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 16 Aug 2019 20:36:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=n DrBPL8FauAioQVnhudOPtTechWYEhLypkU9/FAUQCU=; b=CF27mEZgfdIJktJsB G1KDJUG6c1VSKeHV2nzxaHFNMrzfzVPI4dU8n7Gkcn88BRztnktWnPfqyIQ7YXZV cYacf+B8t+dOMyLLbme6sJYzXhNJ4+ZWxwIi0x+1pvGHKuWuTohHm5+o9btkizPQ 4wa2+xQNOFUvu/ProLO9JtHivutW+r7wYBAE9cjWatgY9zfnWZ2bSCY+P8zZkrCc s1QnqNCcKf1s5Yg6MJZrsNYqY/3ztQ3aiaVThmLRZz16bQBXecU9Z61IPSjstFtV Q+x1WmuaBzu2lvzowewZj+BvdkEFRsgMNKLCgtMQgu3E7OXxWUQGUNOe6U7VbN62 9J0gw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=nDrBPL8FauAioQVnhudOPtTechWYEhLypkU9/FAUQ CU=; b=ZH3SRJn+a1gWj/0jtv4Jz1E5Il4hcvFABlZqojuanDy+EGpheohoUiJ3q tp1hF0hddyRNu/AmTgMtxkAYVQOk4KEv47N9aRIOStle4dj0AVbyoFofvLN997du CduUIV/lAaQdtUg2DhGAxDTVgZVT4+TMLSKAAnTsd0ACJUF07QiBNCMcmV44/sfQ krzg6RlGIch+4UaTfGPP9I/Ye1wj2XuMIu3v0NlDpt1FtoWoCQHSJezgGzOLLhIj zBtrBwTPBn1/AfTu34iSeLDk649P+hVFAXVC6tyyRmSyyDHG0/jfmAatfGk/9tDH bEr0TVrhkoGOo+wXGtHAbnYD2ONxg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudefgedgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdrohhrghenucfkphepjedurddvuddvrdduhedtrddvtddvnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuve hluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 2A8E480063; Fri, 16 Aug 2019 20:36:21 -0400 (EDT) Subject: Re: Missing Trigger after pgdump install To: susan.hurst@brookhurstdata.com Cc: pgsql-general@lists.postgresql.org References: <53f9ff4448f5210802b5a04c8fa83186@mail.brookhurstdata.net> <40cc8a45-5276-b64f-3ad8-a39865bb2a21@aklaver.com> <059bade8075a3c2e17ad75baf4e399b0@mail.brookhurstdata.net> <79a8cb5c-d5d9-7dcb-35d2-08947aa5fbcb@aklaver.com> <075cabbaff9591811d6ed04c4c099f2a@mail.brookhurstdata.net> From: Adrian Klaver Message-ID: <3ef62678-ca2d-bbc0-eecf-c9e027397aa8@aklaver.com> Date: Fri, 16 Aug 2019 17:36:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <075cabbaff9591811d6ed04c4c099f2a@mail.brookhurstdata.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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