Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f39BcU828477 for ; Mon, 9 Apr 2001 07:38:30 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f398P0890283 for ; Mon, 9 Apr 2001 04:25:10 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f397x9x07569 for pgsql-sql@postgresql.org; Mon, 9 Apr 2001 03:59:09 -0400 (EDT) (envelope-from news) From: =?iso-8859-1?Q?Hans=2DJ=FCrgen=20Sch=F6nig?= X-Newsgroups: comp.databases.postgresql.sql Subject: Re: open and closed paths ... Date: Mon, 09 Apr 2001 10:02:58 +0200 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 31 Message-ID: <3AD16CB2.633AF77B@cybertec.at> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: scrappy@hub.org X-Mailer: Mozilla 4.76 [de] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en To: pgsql-sql@postgresql.org X-Archive-Number: 200104/117 X-Sequence-Number: 2464 The only problem left is the correct syntax of the command when using []. I've tried some versions but it did not work. Maybe Tom can include an example into the docs. Hans shop=# INSERT INTO temppath(fieldname) VALUES '((1,3), (4,12))'; ERROR: parser: parse error at or near "'" shop=# INSERT INTO temppath(fieldname) VALUES ((1,3), (4,12)); ERROR: parser: parse error at or near "," shop=# INSERT INTO temppath(fieldname) VALUES ('(1,3), (4,12)'); INSERT 51947 1 shop=# INSERT INTO temppath(fieldname) VALUES ['(1,3), (4,12)']; ERROR: parser: parse error at or near "[" shop=# INSERT INTO temppath(fieldname) VALUES '[(1,3), (4,12)]'; ERROR: parser: parse error at or near "'" shop=# INSERT INTO temppath(fieldname) VALUES '[(1,3), (4,12)]'::path; ERROR: parser: parse error at or near "'" shop=# INSERT INTO temppath(fieldname) VALUES ['(1,3), (4,12)']::path; ERROR: parser: parse error at or near "[" shop=# SELECT isopen(fieldname) FROM temppath; isopen -------- f (1 row)