*** pgsql/src/backend/access/hash/hashinsert.c 2009/01/01 17:23:35 1.52 --- pgsql/src/backend/access/hash/hashinsert.c 2009/11/01 21:25:32 1.52.2.1 *************** *** 8,14 **** * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/access/hash/hashinsert.c,v 1.51 2008/09/15 18:43:41 tgl Exp $ * *------------------------------------------------------------------------- */ --- 8,14 ---- * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/access/hash/hashinsert.c,v 1.52 2009/01/01 17:23:35 momjian Exp $ * *------------------------------------------------------------------------- */ *************** *** 20,29 **** #include "utils/rel.h" - static OffsetNumber _hash_pgaddtup(Relation rel, Buffer buf, - Size itemsize, IndexTuple itup); - - /* * _hash_doinsert() -- Handle insertion of a single index tuple. * --- 20,25 ---- *************** _hash_doinsert(Relation rel, IndexTuple *** 180,194 **** /* * _hash_pgaddtup() -- add a tuple to a particular page in the index. * ! * This routine adds the tuple to the page as requested; it does ! * not write out the page. It is an error to call pgaddtup() without ! * a write lock and pin. */ ! static OffsetNumber ! _hash_pgaddtup(Relation rel, ! Buffer buf, ! Size itemsize, ! IndexTuple itup) { OffsetNumber itup_off; Page page; --- 176,191 ---- /* * _hash_pgaddtup() -- add a tuple to a particular page in the index. * ! * This routine adds the tuple to the page as requested; it does not write out ! * the page. It is an error to call pgaddtup() without pin and write lock on ! * the target buffer. ! * ! * Returns the offset number at which the tuple was inserted. This function ! * is responsible for preserving the condition that tuples in a hash index ! * page are sorted by hashkey value. */ ! OffsetNumber ! _hash_pgaddtup(Relation rel, Buffer buf, Size itemsize, IndexTuple itup) { OffsetNumber itup_off; Page page;