Proposed patch for contrib/cube

From: Joshua Reich <josh(at)root(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Proposed patch for contrib/cube
Date: 2006-07-17 17:37:51
Message-ID: 44BBCAEF.5060007@root.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I use the cube datatype a fair bit, and one thing I have always wanted
is the ability to do this:

pg=# select cube_from_arrays('{1,2,3}'::float[], '{3,5,6}'::float[]);
cube_from_arrays
---------------------
(1, 2, 3),(3, 5, 6)
(1 row)

That is - build a cube by specifying 2 arrays, one for the UR
coordinate, one for LL.

I hope people find this useful, and if so, we can add it to contrib/cube.

Source is attached.

Thanks,

Joshua Reich
(jdigittl on #postgresql)

Attachment Content-Type Size
cube_from_arrays.c text/plain 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Neil Conway 2006-07-17 17:45:23 Re: plPHP and plRuby
Previous Message Joshua D. Drake 2006-07-17 17:22:06 Re: plPHP and plRuby