Re: SELECT composite type - Mailing list pgsql-sql

From Niklas Johansson
Subject Re: SELECT composite type
Date
Msg-id 40485D0C-8C3A-4206-9825-3A459934F356@tele2.se
Whole thread Raw
In response to SELECT composite type  (Michael Burke <michael@engtech.ca>)
Responses Re: SELECT composite type  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
On 5 apr 2006, at 17.57, Michael Burke wrote:

> So I basically want to call get_xy for every row in
> sightings, and use its output for two columns; or perhaps there is  
> another
> way to think of this.


You could try

SELECT foo.x, foo.y, title FROM
(SELECT  get_xy(SetSRID(sightings.location, 26910), 4326) AS foo,  sightings.title
FROM sightings
WHERE sighting_id = 25) bar;



Sincerely,

Niklas Johansson





pgsql-sql by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: Reverse Index ... how to ...
Next
From: Tom Lane
Date:
Subject: Re: SELECT composite type