line datatype

From: Tim Hart <tjhart(at)mac(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: line datatype
Date: 2002-07-14 05:09:15
Message-ID: D78BDE8F-96E7-11D6-BB83-000393460410@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

Probably the most succinct explanation would be to copy & paste from the
terminal...

tjhart=> create table a_line( foo line );
CREATE
tjhart=> insert into a_line ( foo ) values( '(0,0), (1,1)' );
ERROR: line not yet implemented
tjhart=> select version();
version
---------------------------------------------------------------------
PostgreSQL 7.2.1 on powerpc-apple-darwin5.3, compiled by GCC 2.95.2
(1 row)

The documentation (datatype-geometric.html) indicates both a 'line' type
and an 'lseg' type in the summary table at the top of the page. The same
code above using the type 'lseg' in place of 'line' works just fine.

Why can I create a table with a column of type 'line' if I can't insert
into it?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masaru Sugawara 2002-07-14 12:23:28 Re: [HACKERS] please help on query
Previous Message Joe Conway 2002-07-14 02:25:53 Re: question re internal functions requiring initdb

Browse pgsql-sql by date

  From Date Subject
Next Message Masaru Sugawara 2002-07-14 12:23:28 Re: [HACKERS] please help on query
Previous Message Ahti Legonkov 2002-07-14 02:38:45 Re: sql question: