This commit is contained in:
Marc G. Fournier 1996-10-21 05:45:21 +00:00
parent 0452227989
commit ede7e6b045
8 changed files with 83 additions and 8 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/hash.c,v 1.4 1996/10/20 08:31:39 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/hash.c,v 1.5 1996/10/21 05:45:11 scrappy Exp $
*
* NOTES
* This file contains only the public interface routines.
@ -66,6 +66,21 @@
#include "access/genam.h"
#include "utils/palloc.h"
#include "catalog/index.h"
#ifndef HAVE_MEMMOVE
# include "regex/utils.h"
#else
# include <string.h>
#endif
#include "storage/ipc.h"
#include "storage/bufmgr.h"
#include "miscadmin.h"
bool BuildingHash = false;
/*

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashinsert.c,v 1.3 1996/10/20 08:31:41 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashinsert.c,v 1.4 1996/10/21 05:45:13 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@ -45,6 +45,13 @@
#include "access/relscan.h"
#include "access/hash.h"
#include <stdio.h>
#include "storage/ipc.h"
#include "storage/bufmgr.h"
#include "utils/palloc.h"
#include "utils/memutils.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);

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.3 1996/10/20 08:31:44 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.4 1996/10/21 05:45:14 scrappy Exp $
*
* NOTES
* Overflow pages look like ordinary relation pages.
@ -48,6 +48,13 @@
#include "access/relscan.h"
#include "access/hash.h"
#include <stdio.h>
#include "storage/ipc.h"
#include "storage/bufmgr.h"
#include <string.h>
#include "utils/memutils.h"
static OverflowPageAddress _hash_getovfladdr(Relation rel, Buffer *metabufp);
static uint32 _hash_firstfreebit(uint32 map);

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashpage.c,v 1.3 1996/10/20 08:31:46 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashpage.c,v 1.4 1996/10/21 05:45:15 scrappy Exp $
*
* NOTES
* Postgres hash pages look like ordinary relation pages. The opaque
@ -56,8 +56,24 @@
#include "access/relscan.h"
#include "access/hash.h"
#include <stdio.h>
#include "storage/ipc.h"
#include "storage/bufmgr.h"
#include "miscadmin.h"
#include "utils/memutils.h"
#include <string.h>
#include "storage/spin.h"
#include "utils/hsearch.h"
#include "storage/shmem.h"
#include "storage/lock.h"
#include "storage/lmgr.h"
#include "access/genam.h"
static void _hash_setpagelock(Relation rel, BlockNumber blkno, int access);
static void _hash_unsetpagelock(Relation rel, BlockNumber blkno, int access);
static void _hash_splitpage(Relation rel, Buffer metabuf, Bucket obucket, Bucket nbucket);

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashscan.c,v 1.3 1996/10/20 08:31:48 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashscan.c,v 1.4 1996/10/21 05:45:16 scrappy Exp $
*
* NOTES
* Because we can be doing an index scan on a relation while we
@ -60,6 +60,8 @@
#include "access/relscan.h"
#include "access/hash.h"
#include "utils/palloc.h"
static void _hash_scandel(IndexScanDesc scan, BlockNumber blkno, OffsetNumber offno);
static bool _hash_scantouched(IndexScanDesc scan, BlockNumber blkno, OffsetNumber offno);

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashsearch.c,v 1.3 1996/10/20 08:31:49 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashsearch.c,v 1.4 1996/10/21 05:45:19 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@ -45,6 +45,18 @@
#include "access/relscan.h"
#include "access/hash.h"
#include "utils/palloc.h"
#ifndef HAVE_MEMMOVE
# include "regex/utils.h"
#else
# include <string.h>
#endif
#include <stdio.h>
#include "storage/ipc.h"
#include "storage/bufmgr.h"
/*
* _hash_search() -- Finds the page/bucket that the contains the
* scankey and loads it into *bufP. the buffer has a read lock.

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/Attic/hashstrat.c,v 1.3 1996/10/20 08:31:51 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/Attic/hashstrat.c,v 1.4 1996/10/21 05:45:20 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@ -45,6 +45,8 @@
#include "access/relscan.h"
#include "access/hash.h"
#include "access/istrat.h"
/*
* only one valid strategy for hash tables: equality.
*/

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashutil.c,v 1.3 1996/10/20 08:31:52 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashutil.c,v 1.4 1996/10/21 05:45:21 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@ -45,6 +45,20 @@
#include "access/relscan.h"
#include "access/hash.h"
#include "utils/palloc.h"
#ifndef HAVE_MEMMOVE
# include "regex/utils.h"
#else
# include <string.h>
#endif
#include "fmgr.h"
#include "utils/memutils.h"
#include "access/iqual.h"
ScanKey
_hash_mkscankey(Relation rel, IndexTuple itup, HashMetaPage metap)
{