Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 18, 2013 at 10:05 AM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
> Rob Richardson <RDRichardson@xxxxxxxxxxx> 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))


shoot -- I thought so -- I looked for that, and didn't find it.  hm,
perhaps the geographical type documentation needs some TLC.

merlin


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux