Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5dH6-0001tQ-Vy for pgsql-bugs@arkaria.postgresql.org; Tue, 21 Jan 2014 15:30:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W5dH5-0002zy-BU for pgsql-bugs@arkaria.postgresql.org; Tue, 21 Jan 2014 15:29:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5bxy-0004ya-8L for pgsql-bugs@postgresql.org; Tue, 21 Jan 2014 14:06:10 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5bxr-0007SV-2W for pgsql-bugs@postgresql.org; Tue, 21 Jan 2014 14:06:09 +0000 MIME-Version: 1.0 Subject: BUG #8901: postgres_fdw double-qualifying schemas To: pgsql-bugs@postgresql.org From: byteslayer7@gmail.com Date: Tue, 21 Jan 2014 14:05:04 +0000 Message-ID: <20140121140504.26700.70742@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.1 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following bug has been logged on the website: Bug reference: 8901 Logged by: Alex Email address: byteslayer7@gmail.com PostgreSQL version: 9.3.2 Operating system: Windows 7 Description: I posted a question on Stackoverflow regarding postgres_fdw. I was advised to report it here and link to it: http://stackoverflow.com/q/21193642/797021. In short, the issue is that this psql input: CREATE USER test_user SUPERUSER PASSWORD 'password'; SET ROLE test_user; CREATE DATABASE import; CREATE DATABASE export; \c export test_user CREATE SCHEMA export_schema; CREATE TABLE export_schema.aa ( id serial PRIMARY KEY, dat text ); \c import test_user CREATE EXTENSION postgres_fdw; CREATE SERVER export_server FOREIGN DATA WRAPPER postgres_fdw OPTIONS (host 'localhost', dbname 'export', port '5432'); CREATE USER MAPPING FOR test_user SERVER export_server OPTIONS (user 'test_user', password 'password'); CREATE SCHEMA import_schema; CREATE FOREIGN TABLE import_schema.aa( id serial NOT NULL, dat text ) SERVER export_server OPTIONS (table_name 'export_schema.aa'); SELECT * FROM import_schema.aa; Which I expect to work, instead gives this error: ERROR: relation "import_schema.export_schema.aa" does not exist CONTEXT: Remote SQL command: SELECT id, dat FROM import_schema."export_schema.aa" -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs