Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z2Jtd-000343-05 for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Jun 2015 13:48:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z2Jtc-000461-5g for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Jun 2015 13:48:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z2Jtb-00045u-7h for pgsql-bugs@postgresql.org; Tue, 09 Jun 2015 13:48:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z2JtT-0003mE-D8 for pgsql-bugs@postgresql.org; Tue, 09 Jun 2015 13:48:49 +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 t59Dme06029892; Tue, 9 Jun 2015 09:48:40 -0400 From: Tom Lane To: reiner peterke cc: pgsql-bugs@postgresql.org Subject: Re: 9.5 Import foreign schema error with user defined type in schema other than public. In-reply-to: <46A815E3-DE1A-4A70-AAED-F395C24DE19C@drizzle.com> References: <46A815E3-DE1A-4A70-AAED-F395C24DE19C@drizzle.com> Comments: In-reply-to reiner peterke message dated "Tue, 09 Jun 2015 10:56:26 +0200" Date: Tue, 09 Jun 2015 09:48:40 -0400 Message-ID: <29891.1433857720@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org reiner peterke writes: > I was testing the import foreign schema feature in 9.5. i have a schema with a defined type timerange. When i tried to import the the foreign schema i got the following error. I don't see any reason to think this isn't operating as designed. postgres_fdw does not attempt to import user-defined data types from the remote server. Per the manual: If the remote tables to be imported have columns of user-defined data types, the local server must have compatible types of the same names. ("Same names" includes the schema name, btw.) regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs