Re: How do I create a box from fields in a table? - Mailing list pgsql-general

From Tom Lane
Subject Re: How do I create a box from fields in a table?
Date
Msg-id 8739.1382108707@sss.pgh.pa.us
Whole thread Raw
In response to Re: How do I create a box from fields in a table?  (Rob Richardson <RDRichardson@rad-con.com>)
Responses Re: How do I create a box from fields in a table?
Re: How do I create a box from fields in a table?
List pgsql-general
Rob Richardson <RDRichardson@rad-con.com> writes:
> In my opinion, that is ugly to the point of uselessness.

Indeed :-(

For some reason, there's no constructor function to make a box from four
floats.  But there is a box constructor that takes two points, as well
as a point constructor that takes two floats; so you could do something
like

    box(point(location, 1), point(2, 3))

            regards, tom lane


pgsql-general by date:

Previous
From: akp geek
Date:
Subject: Re: Need some help on Performance 9.0.4
Next
From: Helen Griffiths
Date:
Subject: Cannot import logs from csv