*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/hash/hash.c,v 1.2 1996/08/26 06:27:28 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/hash.c,v 1.3 1996/10/20 06:34:11 scrappy Exp $
*
* NOTES
* This file contains only the public interface routines.
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
-#include "storage/bufmgr.h"
-#include "storage/bufpage.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
+#include "postgres.h"
#include "utils/rel.h"
-#include "utils/excid.h"
-#include "access/heapam.h"
-#include "access/genam.h"
-#include "access/sdir.h"
#include "access/hash.h"
-#include "access/funcindex.h"
#include "nodes/execnodes.h"
-#include "nodes/plannodes.h"
-#include "executor/executor.h"
-#include "executor/tuptable.h"
-#include "catalog/index.h"
-
bool BuildingHash = false;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/hash/hashfunc.c,v 1.1.1.1 1996/07/09 06:21:10 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/hashfunc.c,v 1.2 1996/10/20 06:34:14 scrappy Exp $
*
* NOTES
* These functions are stored in pg_amproc. For each operator class
*
*-------------------------------------------------------------------------
*/
+
#include "postgres.h"
-#include "utils/nabstime.h"
uint32 hashint2(int16 key)
{
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/hash/hashinsert.c,v 1.1.1.1 1996/07/09 06:21:10 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/hashinsert.c,v 1.2 1996/10/20 06:34:16 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
-
-#include "storage/bufmgr.h"
-#include "storage/bufpage.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
+#include "postgres.h"
#include "utils/rel.h"
-#include "utils/excid.h"
-
-#include "access/heapam.h"
-#include "access/genam.h"
#include "access/hash.h"
+
static InsertIndexResult _hash_insertonpg(Relation rel, Buffer buf, int keysz, ScanKey scankey, HashItem hitem, Buffer metabuf);
static OffsetNumber _hash_pgaddtup(Relation rel, Buffer buf, int keysz, ScanKey itup_scankey, Size itemsize, HashItem hitem);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.1.1.1 1996/07/09 06:21:10 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.2 1996/10/20 06:34:19 scrappy Exp $
*
* NOTES
* Overflow pages look like ordinary relation pages.
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
-
-#include "storage/bufmgr.h"
-#include "storage/bufpage.h"
-#include "utils/elog.h"
+#include "postgres.h"
#include "utils/rel.h"
-#include "utils/excid.h"
-
-#include "access/genam.h"
#include "access/hash.h"
+
static OverflowPageAddress _hash_getovfladdr(Relation rel, Buffer *metabufp);
static uint32 _hash_firstfreebit(uint32 map);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/hash/hashpage.c,v 1.1.1.1 1996/07/09 06:21:10 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/hashpage.c,v 1.2 1996/10/20 06:34:21 scrappy Exp $
*
* NOTES
* Postgres hash pages look like ordinary relation pages. The opaque
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
-
-#include "storage/bufmgr.h"
-#include "storage/bufpage.h"
-#include "utils/elog.h"
+#include "postgres.h"
#include "utils/rel.h"
-#include "utils/excid.h"
-
-#include "access/genam.h"
#include "access/hash.h"
+#include "storage/bufmgr.h"
static void _hash_setpagelock(Relation rel, BlockNumber blkno, int access);
static void _hash_unsetpagelock(Relation rel, BlockNumber blkno, int access);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/hash/hashscan.c,v 1.1.1.1 1996/07/09 06:21:10 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/hashscan.c,v 1.2 1996/10/20 06:34:23 scrappy Exp $
*
* NOTES
* Because we can be doing an index scan on a relation while we
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
-
-#include "storage/bufmgr.h"
-#include "storage/bufpage.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
+#include "postgres.h"
#include "utils/rel.h"
-#include "utils/excid.h"
-
-#include "access/heapam.h"
-#include "access/genam.h"
-#include "access/sdir.h"
#include "access/hash.h"
static void _hash_scandel(IndexScanDesc scan, BlockNumber blkno, OffsetNumber offno);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/hash/hashsearch.c,v 1.1.1.1 1996/07/09 06:21:10 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/hashsearch.c,v 1.2 1996/10/20 06:34:26 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
-
-#include "storage/bufmgr.h"
-#include "storage/bufpage.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
+#include "postgres.h"
#include "utils/rel.h"
-#include "utils/excid.h"
-
-#include "fmgr.h"
-
-#include "access/heapam.h"
-#include "access/genam.h"
-#include "access/skey.h"
-#include "access/sdir.h"
#include "access/hash.h"
/*
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/hash/Attic/hashstrat.c,v 1.1.1.1 1996/07/09 06:21:10 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/Attic/hashstrat.c,v 1.2 1996/10/20 06:34:28 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
-
-#include "storage/bufpage.h"
-#include "utils/elog.h"
+#include "postgres.h"
#include "utils/rel.h"
-#include "utils/excid.h"
-
-#include "access/genam.h"
#include "access/hash.h"
/*
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/hash/hashutil.c,v 1.1.1.1 1996/07/09 06:21:10 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/hashutil.c,v 1.2 1996/10/20 06:34:30 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
-
-#include "storage/bufmgr.h"
-#include "storage/bufpage.h"
-#include "fmgr.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
+#include "postgres.h"
#include "utils/rel.h"
-#include "utils/excid.h"
-
-#include "access/heapam.h"
-#include "access/genam.h"
-#include "access/iqual.h"
#include "access/hash.h"
ScanKey