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 1gtIYM-0000Ui-4j for pgsql-general@arkaria.postgresql.org; Mon, 11 Feb 2019 20:51:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gtIYJ-0002bR-Hs for pgsql-general@arkaria.postgresql.org; Mon, 11 Feb 2019 20:51:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtHHG-0007fg-7J for pgsql-general@lists.postgresql.org; Mon, 11 Feb 2019 19:30:02 +0000 Received: from email.noao.edu ([140.252.1.57]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtHHD-0002Fs-Cy for pgsql-general@postgresql.org; Mon, 11 Feb 2019 19:30:00 +0000 Received: from weaver.tuc.noao.edu ([140.252.14.8] verified) by email.noao.edu (CommuniGate Pro SMTP 6.2.10) with ESMTPS id 105629846; Mon, 11 Feb 2019 12:29:58 -0700 Received: from [127.0.0.1] (localhost [127.0.0.1]) by weaver.tuc.noao.edu (8.14.7/8.14.7) with ESMTP id x1BJTvN1014649; Mon, 11 Feb 2019 12:29:57 -0700 Reply-To: swampler@nso.edu Subject: Re: Odd messages on reloading DB table To: "David G. Johnston" Cc: Postgres-General References: <862e9109-6544-8d87-31fd-5fe9b88819dc@nso.edu> From: Steve Wampler Message-ID: <69add2d8-f3ba-3e06-ce13-008cd8696ce0@nso.edu> Date: Mon, 11 Feb 2019 12:29:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: 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 2/7/19 3:24 PM, David G. Johnston wrote: > On Thursday, February 7, 2019, Steve Wampler > wrote: > >    (1) the table already exist and the immediately doesn't exist? >    (2) report ERROR on UPDATE when there are no UPDATES in the input file > > > > Most likely the first attempt was schema qualified and so found the existing targets table while the second attempt was > not schema qualified and targets is not in the search path. > > One guess I have is that triggers are involved here and those triggers need to be more resiliant in face of the recent > search_path security update. Thanks - but I thought the search_path update was a PG 10 change and so shouldn't reflect on 9.5.15 behavior. Did it get back-ported? In any event I'm surprised that pg_dump for 9.5.15 can produce a dump that can't be restored by either pg_restore (when -Fc is used on both ends) or with psql (without -Fc used on pg_dump). I would have expected some message from pg_dump if it ran into issues preventing this. -- Steve Wampler -- swampler@nso.edu The gods that smiled on your birth are now laughing out loud.