Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffuYu-00045M-O3 for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Jul 2018 22:04:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ffuYs-0000gM-Ef for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Jul 2018 22:04:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffuYs-0000gF-55 for pgsql-bugs@lists.postgresql.org; Wed, 18 Jul 2018 22:04:42 +0000 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ffuYk-0000WM-8M for pgsql-bugs@lists.postgresql.org; Wed, 18 Jul 2018 22:04:40 +0000 Received: by mail-qt0-x242.google.com with SMTP id y5-v6so5504418qti.12 for ; Wed, 18 Jul 2018 15:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=V3fdzU9F/XiFn7p4dvsk7V9cf5K9dMyEi7Ek7M4quwI=; b=El2YvFXUU0spbm432ynZzr9YA4IkIBgH5BIy26DcW8QLjL18ecLnDbTmCJdVCa2MwO jFiWKW+THFqbLwrYhdI6XojpxDVOVOztejl8A7BF23yYgX0Vf2mj3GfKkuJQUX3Xh3eO Sf+GvslI/talwdEDTfer+0oasAboesqNA3NrJEn4epM5nURKjHSCCRHQkJTubSkfQm/d 1ip3d3599OW+l0Mc+I4hs4fI/OmMTlb3px7piVCu3NZDLXu51pVxlAuoBmYZ5SeI5X80 koCnoQXUW1rDnwUj2jPJseMO5Ie6cYh9uxpYORNp+bx/c4Bk7Eh0bc8ZYy1K4pB8QJKY VJmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=V3fdzU9F/XiFn7p4dvsk7V9cf5K9dMyEi7Ek7M4quwI=; b=CdQ0stiHzOOzg0syzlllkVP5tU3EgQmILP8WdTXtZ4ussfRtC+9XDmtyoI/8WA6SHH BcZCGAkapUSDcpVLugwky8vth+Y3jCRhFyDsQ8UCChusIPYfhSN935MhZv3vioDRGt6O UbvSYXqR6FE8YzWd3loX/dzlqBaBWDIstgpIXG8Oe8PeNhlLf11EKI+M8UXxeq1NsHbQ luL9z5WPCRMfi29tJ+JE7otU5sP4Z/9N0f/J5iRPpE2JiosMSIrEjvRH7WWvOxuqzLqN /5q3GhC2eHpI6XjJybtNDusOqVx15n2ypbcEfJBSBU43VHaCkl0S9ToUnDP9LhoL+lo9 nlfQ== X-Gm-Message-State: AOUpUlEu5LF7pYMVk+ihDy7tmbhlTliItv2Cbquz4WKltGzH7bJayYqy VopxvJu5UDk2XL7uqSSs+VaoxA== X-Google-Smtp-Source: AAOMgpdo2Kfpx6YBbUbeDIivssRPmDLP4IP1vJowtEZ4iB2YlHmVXPibyuanff1MVQBi0omKZxMBbA== X-Received: by 2002:a0c:9408:: with SMTP id h8-v6mr8354536qvh.135.1531951473163; Wed, 18 Jul 2018 15:04:33 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id p13-v6sm4314609qki.12.2018.07.18.15.04.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Jul 2018 15:04:32 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 0E0D2D63; Wed, 18 Jul 2018 18:04:31 -0400 (-04) Date: Wed, 18 Jul 2018 18:04:31 -0400 From: Alvaro Herrera To: firstname lastname Cc: Peter Eisentraut , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15263: pg_dump / psql failure. When loading, psql does not see function-based constraints or indices Message-ID: <20180718220431.b6dmz7z3i7imi2ux@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <136380404.83820.1531950460781@webmail.hostway.com> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Jul-18, firstname lastname wrote: > Peter, > > Both of your suggestions work. I opted to change the search path in > the dump file. The alternative is is to prefix "public" to hundreds > of functions. I do not want to do that. Too much work. Hmm, surely you can just do "ALTER FUNCTION ... SET search_path" in a DO block that processes all functions, or something to that effect. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services