Re: [HACKERS] New Index

2007-07-28 Thread David Fuhry
algatt, You might find the examples of PostGIS [1] and SP-GiST [2] helpful in implementing your PR-Tree index, although the former implements only 2D R-Trees and the latter implements tries, quadtrees, and kd-trees but not R-Trees (and extends GiST). Yours may be the first PostgreSQL R

Re: [HACKERS] Behavior of GENERATED columns per SQL2003

2007-05-07 Thread David Fuhry
Oracle 10g, MySQL 5, and SQL Server 2005 don't appear to support the syntax. The SQL:2003 SIGMOD paper [1] indicates pretty clearly that their intention is for the values of generated columns to be stored on disk: "... commonly used expressions are evaluated once and their results stored for

Re: [HACKERS] PostgreSQL - 'SKYLINE OF' clause added!

2007-03-07 Thread David Fuhry
The query Ranbeer gave - as with any skyline query - can be solved with just pure SQL: select * from books b where not exists( select * from books b2 where b2.rating >= b.rating and b2.price <= b.price and (b2.rating > b.rating or b2.price < b.price) ); book_name | rating | pr

Re: [HACKERS] GIN documentation

2006-09-16 Thread David Fuhry
Teodor, Attached is a diff -c against your original gindocs patch. I did my best not to change any of the semantics. My changes no doubt overlap & conflict with those Jeff Davis sent you earlier, so consider both of our diffs. Thanks, Dave Fuhry Teodor Sigaev wrote: Patch adds GIN do