Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZhQKT-0007Dp-Qw for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Sep 2015 22:58:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZhQKT-0008GQ-Bp for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Sep 2015 22:58:29 +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 1ZhN0w-0000NQ-5v for pgsql-bugs@postgresql.org; Wed, 30 Sep 2015 19:26:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZhN0s-00069G-SV for pgsql-bugs@postgresql.org; Wed, 30 Sep 2015 19:26:04 +0000 MIME-Version: 1.0 Subject: BUG #13655: Incorrect Syntax Error To: pgsql-bugs@postgresql.org From: stormbyte@gmail.com Date: Wed, 30 Sep 2015 19:25:26 +0000 Message-ID: <20150930192526.359.78719@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" 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: 13655 Logged by: David Email address: stormbyte@gmail.com PostgreSQL version: 9.4.4 Operating system: Gentoo Linux Description: When using field names with "", and custom data type, with its name also with "", a syntax error is triggered in CREATE TABLE when tab character is used instead of spaces. To reproduce, create a sql file with: (Insert tab and NOT space when is specified) CREATE TYPE "GPSPoint" AS ("lat" DECIMAL(9,6), "lon" DECIMAL(9,6)); CREATE TABLE "TestTable" ("testGPS""GPSPoint" NOT NULL); Save it, and copy/paste to psql, you will see an syntax error near NOT. That is workarounded by inserting before or instead of , but should not trigger any syntax error, as the same syntax works for bundled types, so the following does not fail: CREATE TABLE "TestTable" ("test"SMALLINT NOT NULL); This is a low priority bug, but a bit annoying -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs