On 12.07.2013 14:57, Stas Kelvich wrote:
Hello.
here is a patch adding to cube extension support for compressed representation
of point cubes. If cube is a point, i.e. has coincident lower left and upper
right corners, than only one corner is stored. First bit of the cube header
indicates whether the cube is point or not. Few moments:
* Patch preserves binary compatibility with old indices
* All functions that create cubes from user input, check whether it is a point
or not
* All internal functions that can return cubes takes care of all cases where a
cube might become a point
Great!
cube_is_point() needs to still handle old-style points. An NDBOX without
the point-flag set, where the ll and ur coordinates for each dimension
are the same, still needs to be considered a point. Even if you are
careful to never construct such structs in the code, they can be present
on-disk if you have upgraded from an earlier version with pg_upgrade.
Same in cube_out().
* Added tests for checking correct point behavior
You'll need to adjust all the expected output files, not only cube_1.out.
Also this patch includes adapted Alexander Korotkov's patch with kNN-based
ordering operator, which he wrote for postgresql-9.0beta1 with knngist patch.
More info there
http://www.postgresql.org/message-id/aanlktimhfaq6hcibrnk0tlcqmiyhywhwaq2zd87wb...@mail.gmail.com
To make review easier, it would be better to keep that as a separate
patch, actually. Could you split it up again, please?
- Heikki
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers