mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
-Wall'd
This commit is contained in:
parent
0452227989
commit
ede7e6b045
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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
|
* NOTES
|
||||||
* This file contains only the public interface routines.
|
* This file contains only the public interface routines.
|
||||||
@ -66,6 +66,21 @@
|
|||||||
|
|
||||||
#include "access/genam.h"
|
#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;
|
bool BuildingHash = false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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/relscan.h"
|
||||||
#include "access/hash.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 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);
|
static OffsetNumber _hash_pgaddtup(Relation rel, Buffer buf, int keysz, ScanKey itup_scankey, Size itemsize, HashItem hitem);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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
|
* NOTES
|
||||||
* Overflow pages look like ordinary relation pages.
|
* Overflow pages look like ordinary relation pages.
|
||||||
@ -48,6 +48,13 @@
|
|||||||
#include "access/relscan.h"
|
#include "access/relscan.h"
|
||||||
#include "access/hash.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 OverflowPageAddress _hash_getovfladdr(Relation rel, Buffer *metabufp);
|
||||||
static uint32 _hash_firstfreebit(uint32 map);
|
static uint32 _hash_firstfreebit(uint32 map);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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
|
* NOTES
|
||||||
* Postgres hash pages look like ordinary relation pages. The opaque
|
* Postgres hash pages look like ordinary relation pages. The opaque
|
||||||
@ -56,8 +56,24 @@
|
|||||||
#include "access/relscan.h"
|
#include "access/relscan.h"
|
||||||
#include "access/hash.h"
|
#include "access/hash.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include "storage/ipc.h"
|
||||||
#include "storage/bufmgr.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_setpagelock(Relation rel, BlockNumber blkno, int access);
|
||||||
static void _hash_unsetpagelock(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);
|
static void _hash_splitpage(Relation rel, Buffer metabuf, Bucket obucket, Bucket nbucket);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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
|
* NOTES
|
||||||
* Because we can be doing an index scan on a relation while we
|
* Because we can be doing an index scan on a relation while we
|
||||||
@ -60,6 +60,8 @@
|
|||||||
#include "access/relscan.h"
|
#include "access/relscan.h"
|
||||||
#include "access/hash.h"
|
#include "access/hash.h"
|
||||||
|
|
||||||
|
#include "utils/palloc.h"
|
||||||
|
|
||||||
static void _hash_scandel(IndexScanDesc scan, BlockNumber blkno, OffsetNumber offno);
|
static void _hash_scandel(IndexScanDesc scan, BlockNumber blkno, OffsetNumber offno);
|
||||||
static bool _hash_scantouched(IndexScanDesc scan, BlockNumber blkno, OffsetNumber offno);
|
static bool _hash_scantouched(IndexScanDesc scan, BlockNumber blkno, OffsetNumber offno);
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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/relscan.h"
|
||||||
#include "access/hash.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
|
* _hash_search() -- Finds the page/bucket that the contains the
|
||||||
* scankey and loads it into *bufP. the buffer has a read lock.
|
* scankey and loads it into *bufP. the buffer has a read lock.
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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/relscan.h"
|
||||||
#include "access/hash.h"
|
#include "access/hash.h"
|
||||||
|
|
||||||
|
#include "access/istrat.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* only one valid strategy for hash tables: equality.
|
* only one valid strategy for hash tables: equality.
|
||||||
*/
|
*/
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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/relscan.h"
|
||||||
#include "access/hash.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
|
ScanKey
|
||||||
_hash_mkscankey(Relation rel, IndexTuple itup, HashMetaPage metap)
|
_hash_mkscankey(Relation rel, IndexTuple itup, HashMetaPage metap)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user