Received: from flex.flex.ro (IDENT:root@[193.230.255.4]) by hub.org (8.9.3/8.9.3) with ESMTP id LAA60381 for ; Fri, 28 Jan 2000 11:26:47 -0500 (EST) (envelope-from teo@flex.ro) Received: from flex.ro (IDENT:teo@teo.flex.ro [193.230.255.3]) by flex.flex.ro (8.9.3/8.9.3) with ESMTP id TAA01461 for ; Fri, 28 Jan 2000 19:30:05 +0200 Sender: teo@flex.flex.ro Message-ID: <3891C356.3DB84582@flex.ro> Date: Fri, 28 Jan 2000 18:27:02 +0200 From: Constantin Teodorescu X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i586) X-Accept-Language: en MIME-Version: 1.0 To: PostgreSQL Interfaces Subject: How to get the X or Y coordinate from a point field? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit It may be a stupid question but I didn't find the answer in the docs! I want to hold in a table column a complex reference type to some data as a pair (table id, record id) and I had in mind to use a "point" data type. Now, I want to wind the right record in the right table in a SQL sentence but I have to extract the X coordinate from the point (and use it then to build the table name) and the Y coordinate to point to the record ID. But I didn't find some functions for this. Any clue? Or, is there is any other sollution for my problem? Thanks in advance, Constantin Teodorescu FLEX Consulting Braila, ROMANIA