X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 89D253A411D for ; Wed, 5 Jan 2005 18:10:17 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 09831-01 for ; Wed, 5 Jan 2005 18:10:05 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 1B0B53A4273 for ; Wed, 5 Jan 2005 18:03:31 +0000 (GMT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j05I3Qr26040; Wed, 5 Jan 2005 13:03:26 -0500 (EST) From: Bruce Momjian Message-Id: <200501051803.j05I3Qr26040@candle.pha.pa.us> Subject: Re: syntax error with example sql of createtable In-Reply-To: <20050106.022407.116372061.fwif0083@mb.infoweb.ne.jp> To: Honda Shigehiro Date: Wed, 5 Jan 2005 13:03:26 -0500 (EST) Cc: pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/10 X-Sequence-Number: 2769 Thanks. Changed to 'array_int'. --------------------------------------------------------------------------- Honda Shigehiro wrote: > Hello, > > I got a error when execute below command in > http://developer.postgresql.org/docs/postgres/sql-createtable.html > > postgres=# CREATE TABLE array (vector int[][]); > ERROR: syntax error at or near "array" at character 14 > LINE 1: CREATE TABLE array (vector int[][]); > > ^ > (I tried it on 8.0.0rc2.) > > 'array' is a reserved word, so it needs quote to create table > named array: > postgres=# CREATE TABLE "array" (vector int[][]); > CREATE TABLE > > regards, > -- Shigehiro Honda > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073