[COMMITTERS] pgsql: Suppress some unused-variable complaints in new LOCK_DEBUG code.

2015-03-26 Thread Tom Lane
Suppress some unused-variable complaints in new LOCK_DEBUG code. Jeff Janes Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/bed756a820a2c1ee359f5f5b44806e3599190e95 Modified Files -- src/backend/storage/lmgr/lwlock.c | 11 ++- 1 file changed, 6

[COMMITTERS] pgsql: Minor cleanup of GiST code, for readability.

2015-03-26 Thread Heikki Linnakangas
Minor cleanup of GiST code, for readability. Remove the gistcentryinit function, inlining the relevant part of it into the only caller. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/8fa393a6d739796d9f06a7fba91d7e1d0c354879 Modified Files -- src/backend

[COMMITTERS] pgsql: Add support for index-only scans in GiST.

2015-03-26 Thread Heikki Linnakangas
Add support for index-only scans in GiST. This adds a new GiST opclass method, 'fetch', which is used to reconstruct the original Datum from the value stored in the index. Also, the 'canreturn' index AM interface function gains a new 'attno' argument. That makes it possible to use index-only scans

[COMMITTERS] pgsql: Fix GiST index-only scans for opclasses with different storage t

2015-03-26 Thread Heikki Linnakangas
Fix GiST index-only scans for opclasses with different storage type. We cannot use the index's tuple descriptor directly to describe the index tuples returned in an index-only scan. That's because the index might use a different datatype for the values stored on disk than the type originally index

[COMMITTERS] pgsql: Minor refactoring of btree_gist code.

2015-03-26 Thread Heikki Linnakangas
Minor refactoring of btree_gist code. The gbt_var_key_copy function was doing two different things depending on the boolean argument. Seems cleaner to have two separate functions. Remove unused argument from gbt_num_compress. Branch -- master Details --- http://git.postgresql.org/pg/com