box function implemented? - Mailing list pgsql-general

From wsheldah@lexmark.com
Subject box function implemented?
Date
Msg-id OF13E19A23.DC520254-ON85256D18.0078B4F9@lexmark.com
Whole thread Raw
Responses Re: box function implemented?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
I think I found a glitch either in the box function or in the docs for
postgresql 7.3.2. The online docs say that the box function can find the
intersection box between two boxes. I created a table that looks like this:
CREATE TABLE boxtest (id serial primary key, b1 box, b2 box);

and inserted a row with boxes for b1 and b2. All seemed great. But when I
try:
SELECT box(b1, b2) from boxtest;

I get this error:
Function box(box, box) does not exist

Followed by a couple more lines suggesting I use typecasts. But the docs at
http://www.postgresql.org/docs/view.php?version=7.3&idoc=1&file=functions-geometry.html
 give exactly that prototype for the box function.

Having said all that, I have to say that postgresql's geometry functions
are fantastic. I just came up with my first need for them, and it looks
like they're going to really save me from writing a chunk of code and speed
things up. Thanks!

Wes


pgsql-general by date:

Previous
From: Dragan Matic
Date:
Subject: why don't string function work in WHERE clause?
Next
From: Dennis Gearon
Date:
Subject: Re: why don't string function work in WHERE clause?