Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
ede7e6b0
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ede7e6b0
编写于
10月 21, 1996
作者:
M
Marc G. Fournier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
-Wall'd
上级
04522279
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
83 addition
and
8 deletion
+83
-8
src/backend/access/hash/hash.c
src/backend/access/hash/hash.c
+16
-1
src/backend/access/hash/hashinsert.c
src/backend/access/hash/hashinsert.c
+8
-1
src/backend/access/hash/hashovfl.c
src/backend/access/hash/hashovfl.c
+8
-1
src/backend/access/hash/hashpage.c
src/backend/access/hash/hashpage.c
+17
-1
src/backend/access/hash/hashscan.c
src/backend/access/hash/hashscan.c
+3
-1
src/backend/access/hash/hashsearch.c
src/backend/access/hash/hashsearch.c
+13
-1
src/backend/access/hash/hashstrat.c
src/backend/access/hash/hashstrat.c
+3
-1
src/backend/access/hash/hashutil.c
src/backend/access/hash/hashutil.c
+15
-1
未找到文件。
src/backend/access/hash/hash.c
浏览文件 @
ede7e6b0
...
...
@@ -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
;
/*
...
...
src/backend/access/hash/hashinsert.c
浏览文件 @
ede7e6b0
...
...
@@ -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
);
...
...
src/backend/access/hash/hashovfl.c
浏览文件 @
ede7e6b0
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.
3 1996/10/20 08:31:4
4 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.
4 1996/10/21 05:45:1
4 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
);
...
...
src/backend/access/hash/hashpage.c
浏览文件 @
ede7e6b0
...
...
@@ -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
);
...
...
src/backend/access/hash/hashscan.c
浏览文件 @
ede7e6b0
...
...
@@ -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
);
...
...
src/backend/access/hash/hashsearch.c
浏览文件 @
ede7e6b0
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashsearch.c,v 1.
3 1996/10/20 08:31:4
9 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashsearch.c,v 1.
4 1996/10/21 05:45:1
9 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.
...
...
src/backend/access/hash/hashstrat.c
浏览文件 @
ede7e6b0
...
...
@@ -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.
*/
...
...
src/backend/access/hash/hashutil.c
浏览文件 @
ede7e6b0
...
...
@@ -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
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录