Re: How do I create a box from fields in a table?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rob Richardson <RDRichardson(at)rad-con(dot)com>
Cc: Merlin Moncure <mmoncure(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How do I create a box from fields in a table?
Date: 2013-10-18 15:05:07
Message-ID: 8739.1382108707@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rob Richardson <RDRichardson(at)rad-con(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message akp geek 2013-10-18 15:06:07 Re: Need some help on Performance 9.0.4
Previous Message Rob Richardson 2013-10-18 12:37:32 Re: How do I create a box from fields in a table?