Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
500ce42f
Commit
500ce42f
authored
Nov 05, 1996
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Almost done access...
parent
4fa90e38
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
70 additions
and
135 deletions
+70
-135
src/backend/access/nbtree/Makefile
src/backend/access/nbtree/Makefile
+3
-2
src/backend/access/nbtree/nbtcompare.c
src/backend/access/nbtree/nbtcompare.c
+4
-3
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtinsert.c
+7
-28
src/backend/access/nbtree/nbtpage.c
src/backend/access/nbtree/nbtpage.c
+8
-18
src/backend/access/nbtree/nbtree.c
src/backend/access/nbtree/nbtree.c
+15
-19
src/backend/access/nbtree/nbtscan.c
src/backend/access/nbtree/nbtscan.c
+4
-13
src/backend/access/nbtree/nbtsearch.c
src/backend/access/nbtree/nbtsearch.c
+8
-12
src/backend/access/nbtree/nbtsort.c
src/backend/access/nbtree/nbtsort.c
+7
-15
src/backend/access/nbtree/nbtstrat.c
src/backend/access/nbtree/nbtstrat.c
+5
-11
src/backend/access/nbtree/nbtutils.c
src/backend/access/nbtree/nbtutils.c
+9
-14
No files found.
src/backend/access/nbtree/Makefile
View file @
500ce42f
...
...
@@ -4,14 +4,15 @@
# Makefile for access/nbtree
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/nbtree/Makefile,v 1.
2 1996/11/03 09:06:55
scrappy Exp $
# $Header: /cvsroot/pgsql/src/backend/access/nbtree/Makefile,v 1.
3 1996/11/05 10:35:27
scrappy Exp $
#
#-------------------------------------------------------------------------
SRCDIR
=
../../..
include
../../../Makefile.global
INCLUDE_OPT
=
-I
../../port/
$(PORTNAME)
\
INCLUDE_OPT
=
-I
../..
\
-I
../../port/
$(PORTNAME)
\
-I
../../../include
CFLAGS
+=
$(INCLUDE_OPT)
...
...
src/backend/access/nbtree/nbtcompare.c
View file @
500ce42f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.
4 1996/11/03 22:57:4
8 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.
5 1996/11/05 10:35:2
8 scrappy Exp $
*
* NOTES
* These functions are stored in pg_amproc. For each operator class
...
...
@@ -22,8 +22,9 @@
#include <string.h>
#include "postgres.h"
#include "utils/nabstime.h"
#include <postgres.h>
#include <utils/nabstime.h>
int32
btint2cmp
(
int16
a
,
int16
b
)
...
...
src/backend/access/nbtree/nbtinsert.c
View file @
500ce42f
...
...
@@ -7,41 +7,20 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.
5 1996/11/03 12:35:11
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.
6 1996/11/05 10:35:29
scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#include <stdio.h>
#include <time.h>
#include <postgres.h>
#include "postgres.h"
#include "utils/rel.h"
#include "storage/buf.h"
#include "storage/block.h"
#include "storage/off.h"
#include "storage/itemptr.h"
#include "access/itup.h"
#include "access/funcindex.h"
#include "storage/itemid.h"
#include "storage/item.h"
#include "storage/bufpage.h"
#include "utils/nabstime.h"
#include "utils/palloc.h"
#include "access/htup.h"
#include "utils/tqual.h"
#include "access/relscan.h"
#include "access/sdir.h"
#include "access/nbtree.h"
#include "storage/ipc.h"
#include "storage/bufmgr.h"
#include <utils/memutils.h>
#include <storage/bufpage.h>
#include <access/nbtree.h>
#include <storage/bufmgr.h>
#ifndef HAVE_MEMMOVE
# include
"regex/utils.h"
# include
<regex/utils.h>
#else
# include <string.h>
#endif
...
...
src/backend/access/nbtree/nbtpage.c
View file @
500ce42f
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.
5 1996/11/03 22:57:52
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.
6 1996/11/05 10:35:30
scrappy Exp $
*
* NOTES
* Postgres btree pages look like ordinary relation pages. The opaque
...
...
@@ -22,30 +22,20 @@
#include <stdio.h>
#include <time.h>
#include
"postgres.h"
#include
<postgres.h>
#include "utils/rel.h"
#include "access/itup.h"
#include "access/funcindex.h"
#include "storage/bufpage.h"
#include "access/htup.h"
#include "access/relscan.h"
#include "access/sdir.h"
#include "access/nbtree.h"
#include "storage/lmgr.h"
#include <storage/bufpage.h>
#include <access/nbtree.h>
#include <miscadmin.h>
#include <storage/bufmgr.h>
#include <storage/lmgr.h>
#ifndef HAVE_MEMMOVE
# include
"regex/utils.h"
# include
<regex/utils.h>
#else
# include <string.h>
#endif
#include "miscadmin.h"
#include "storage/bufmgr.h"
#define BTREE_METAPAGE 0
#define BTREE_MAGIC 0x053162
#define BTREE_VERSION 0
...
...
src/backend/access/nbtree/nbtree.c
View file @
500ce42f
...
...
@@ -8,34 +8,30 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.
8 1996/11/03 22:57:54
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.
9 1996/11/05 10:35:32
scrappy Exp $
*
* NOTES
* This file contains only the public interface routines.
*
*-------------------------------------------------------------------------
*/
#include <stdio.h>
#include <time.h>
#include "postgres.h"
#include "utils/rel.h"
#include "access/genam.h"
#include "storage/bufpage.h"
#include "storage/bufmgr.h"
#include "access/htup.h"
#include "utils/palloc.h"
#include "access/nbtree.h"
#include "executor/executor.h"
#include "access/heapam.h"
#include "catalog/index.h"
#include "miscadmin.h"
#include <postgres.h>
#include <access/genam.h>
#include <storage/bufpage.h>
#include <storage/bufmgr.h>
#include <access/nbtree.h>
#include <executor/executor.h>
#include <access/heapam.h>
#include <catalog/index.h>
#include <miscadmin.h>
#ifndef HAVE_MEMMOVE
# include <regex/utils.h>
#else
# include <string.h>
#endif
bool
BuildingBtree
=
false
;
bool
FastBuild
=
false
;
/* turn this on to make bulk builds work*/
...
...
src/backend/access/nbtree/nbtscan.c
View file @
500ce42f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.
4 1996/11/03 22:57:55
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.
5 1996/11/05 10:35:33
scrappy Exp $
*
*
* NOTES
...
...
@@ -27,19 +27,10 @@
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "utils/rel.h"
#include "access/itup.h"
#include "access/funcindex.h"
#include "storage/bufpage.h"
#include "access/htup.h"
#include "utils/palloc.h"
#include "access/relscan.h"
#include "access/sdir.h"
#include "access/nbtree.h"
#include <postgres.h>
#include <storage/bufpage.h>
#include <access/nbtree.h>
typedef
struct
BTScanListData
{
IndexScanDesc
btsl_scan
;
...
...
src/backend/access/nbtree/nbtsearch.c
View file @
500ce42f
...
...
@@ -7,29 +7,25 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsearch.c,v 1.
7 1996/11/03 22:57:56
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsearch.c,v 1.
8 1996/11/05 10:35:34
scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#include
"postgres.h"
#include
<postgres.h>
#include "utils/rel.h"
#include "access/genam.h"
#include "storage/bufpage.h"
#include "storage/bufmgr.h"
#include "access/htup.h"
#include "utils/palloc.h"
#include "access/nbtree.h"
#include <access/genam.h>
#include <fmgr.h>
#include <storage/bufpage.h>
#include <storage/bufmgr.h>
#include <access/nbtree.h>
#ifndef HAVE_MEMMOVE
# include
"regex/utils.h"
# include
<regex/utils.h>
#else
# include <string.h>
#endif
#include "fmgr.h"
static
BTStack
_bt_searchr
(
Relation
rel
,
int
keysz
,
ScanKey
scankey
,
Buffer
*
bufP
,
BTStack
stack_in
);
static
OffsetNumber
_bt_firsteq
(
Relation
rel
,
TupleDesc
itupdesc
,
Page
page
,
Size
keysz
,
ScanKey
scankey
,
OffsetNumber
offnum
);
...
...
src/backend/access/nbtree/nbtsort.c
View file @
500ce42f
...
...
@@ -5,7 +5,7 @@
*
*
* IDENTIFICATION
* $Id: nbtsort.c,v 1.
7 1996/11/03 22:57:57
scrappy Exp $
* $Id: nbtsort.c,v 1.
8 1996/11/05 10:35:35
scrappy Exp $
*
* NOTES
*
...
...
@@ -47,30 +47,22 @@
*-------------------------------------------------------------------------
*/
#include <stdio.h>
#include <fcntl.h>
#include
"postgres.h"
#include
<postgres.h>
#include "utils/rel.h"
#include <utils/memutils.h>
#include <storage/bufpage.h>
#include <access/nbtree.h>
#include <storage/bufmgr.h>
#include "access/itup.h"
#include "access/funcindex.h"
#include "storage/bufpage.h"
#include "access/htup.h"
#include "utils/palloc.h"
#include "access/relscan.h"
#include "access/sdir.h"
#include "access/nbtree.h"
#ifndef HAVE_MEMMOVE
# include
"regex/utils.h"
# include
<regex/utils.h>
#else
# include <string.h>
#endif
#include "storage/bufmgr.h"
#ifdef FASTBUILD
#define MAXTAPES (7)
...
...
src/backend/access/nbtree/nbtstrat.c
View file @
500ce42f
...
...
@@ -7,22 +7,16 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtstrat.c,v 1.
3 1996/11/03 22:57:59
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtstrat.c,v 1.
4 1996/11/05 10:35:37
scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#include
"postgres.h"
#include
<postgres.h>
#include "utils/rel.h"
#include "access/itup.h"
#include "access/funcindex.h"
#include "storage/bufpage.h"
#include "access/htup.h"
#include "access/relscan.h"
#include "access/sdir.h"
#include "access/nbtree.h"
#include <access/istrat.h>
#include <storage/bufpage.h>
#include <access/nbtree.h>
/*
* Note:
...
...
src/backend/access/nbtree/nbtutils.c
View file @
500ce42f
...
...
@@ -7,30 +7,25 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtutils.c,v 1.
6 1996/11/03 22:57:59
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtutils.c,v 1.
7 1996/11/05 10:35:38
scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#include <
time
.h>
#include <
postgres
.h>
#include "postgres.h"
#include <access/genam.h>
#include <fmgr.h>
#include <storage/bufpage.h>
#include <access/nbtree.h>
#include <access/istrat.h>
#include <access/iqual.h>
#include "utils/rel.h"
#include "access/genam.h"
#include "storage/bufpage.h"
#include "access/htup.h"
#include "utils/palloc.h"
#include "access/nbtree.h"
#include "access/istrat.h"
#include "access/iqual.h"
#ifndef HAVE_MEMMOVE
# include
"regex/utils.h"
# include
<regex/utils.h>
#else
# include <string.h>
#endif
#include "fmgr.h"
ScanKey
_bt_mkscankey
(
Relation
rel
,
IndexTuple
itup
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment