Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZQMgn-0002Xu-LL for pgsql-admin@arkaria.postgresql.org; Fri, 14 Aug 2015 21:39:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZQMgn-0001zj-53 for pgsql-admin@arkaria.postgresql.org; Fri, 14 Aug 2015 21:39:01 +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_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZQMgm-0001xt-97 for pgsql-admin@postgresql.org; Fri, 14 Aug 2015 21:39:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZQMgj-0001Mu-2Z for pgsql-admin@postgresql.org; Fri, 14 Aug 2015 21:38:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t7ELcndp013869; Fri, 14 Aug 2015 17:38:49 -0400 From: Tom Lane To: Adam FUCHS cc: Korry Douglas , pgsql-admin@postgresql.org Subject: Re: postgres_fdw error In-reply-to: References: <55CE4142.9030204@enterprisedb.com> Comments: In-reply-to Adam FUCHS message dated "Fri, 14 Aug 2015 14:19:21 -0700" Date: Fri, 14 Aug 2015 17:38:49 -0400 Message-ID: <13868.1439588329@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Adam FUCHS writes: > Thanks Korry, how would I check the search_path that is being used by the > FDW user? postgres_fdw always does "SET search_path = pg_catalog" when opening the connection. Probably this needs to be documented, since it's user-visible if you try to attach a foreign table to a remote view. Anyway the short answer is that you should fully schema-qualify references in functions used by such a view, or else attach "SET search_path" options to the functions. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin