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
dc10387e
Commit
dc10387e
authored
Nov 12, 2006
by
Neil Conway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some typos in comments.
parent
f49baa73
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
37 additions
and
37 deletions
+37
-37
src/backend/access/gin/ginbtree.c
src/backend/access/gin/ginbtree.c
+4
-4
src/backend/access/gin/gindatapage.c
src/backend/access/gin/gindatapage.c
+8
-8
src/backend/access/gin/ginentrypage.c
src/backend/access/gin/ginentrypage.c
+5
-5
src/backend/access/gin/ginget.c
src/backend/access/gin/ginget.c
+3
-3
src/backend/access/gin/ginvacuum.c
src/backend/access/gin/ginvacuum.c
+7
-7
src/backend/access/gist/gist.c
src/backend/access/gist/gist.c
+6
-6
src/backend/access/gist/gistget.c
src/backend/access/gist/gistget.c
+2
-2
src/backend/commands/comment.c
src/backend/commands/comment.c
+2
-2
No files found.
src/backend/access/gin/ginbtree.c
View file @
dc10387e
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/gin/ginbtree.c,v 1.
5 2006/10/04 00:29:47 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/access/gin/ginbtree.c,v 1.
6 2006/11/12 06:55:53 neilc
Exp $
*-------------------------------------------------------------------------
*/
...
...
@@ -38,7 +38,7 @@ ginTraverseLock(Buffer buffer, bool searchMode)
/* But root can become non-leaf during relock */
if
(
!
GinPageIsLeaf
(
page
))
{
/* resore old lock type (very rare) */
/* res
t
ore old lock type (very rare) */
LockBuffer
(
buffer
,
GIN_UNLOCK
);
LockBuffer
(
buffer
,
GIN_SHARE
);
}
...
...
@@ -263,7 +263,7 @@ findParents(GinBtree btree, GinBtreeStack *stack,
}
/*
* Insert value (stored in GinBtree) to tree descibed by stack
* Insert value (stored in GinBtree) to tree desc
r
ibed by stack
*/
void
ginInsertValue
(
GinBtree
btree
,
GinBtreeStack
*
stack
)
...
...
@@ -316,7 +316,7 @@ ginInsertValue(GinBtree btree, GinBtreeStack *stack)
Page
newlpage
;
/*
* newlpage is a pointer to memory page, it does
'nt assosiates
* newlpage is a pointer to memory page, it does
n't associate
* with buffer, stack->buffer shoud be untouched
*/
newlpage
=
btree
->
splitPage
(
btree
,
stack
->
buffer
,
rbuffer
,
stack
->
off
,
&
rdata
);
...
...
src/backend/access/gin/gindatapage.c
View file @
dc10387e
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/gin/gindatapage.c,v 1.
4 2006/10/04 00:29:47 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/access/gin/gindatapage.c,v 1.
5 2006/11/12 06:55:53 neilc
Exp $
*-------------------------------------------------------------------------
*/
...
...
@@ -69,8 +69,8 @@ dataIsMoveRight(GinBtree btree, Page page)
}
/*
* Find correct PostingItem in non-leaf page. It supposed that
*
page correctly cho
osen and searching value SHOULD be on page
* Find correct PostingItem in non-leaf page. It supposed that
page
*
correctly ch
osen and searching value SHOULD be on page
*/
static
BlockNumber
dataLocateItem
(
GinBtree
btree
,
GinBtreeStack
*
stack
)
...
...
@@ -107,7 +107,7 @@ dataLocateItem(GinBtree btree, GinBtreeStack *stack)
if
(
mid
==
maxoff
)
/*
* Right infinity, page already correctly cho
o
sen with a help of
* Right infinity, page already correctly chosen with a help of
* dataIsMoveRight
*/
result
=
-
1
;
...
...
@@ -137,7 +137,7 @@ dataLocateItem(GinBtree btree, GinBtreeStack *stack)
/*
* Searches correct position for value on leaf page.
* Page should be corr
rectly cho
osen.
* Page should be corr
ectly ch
osen.
* Returns true if value found on page.
*/
static
bool
...
...
@@ -190,7 +190,7 @@ dataLocateLeafItem(GinBtree btree, GinBtreeStack *stack)
}
/*
* Finds links to blkno on non-leaf page, retuns
* Finds links to blkno on non-leaf page, retu
r
ns
* offset of PostingItem
*/
static
OffsetNumber
...
...
@@ -236,7 +236,7 @@ dataFindChildPtr(GinBtree btree, Page page, BlockNumber blkno, OffsetNumber stor
}
/*
* retu
nrs blkno of lef
most child
* retu
rns blkno of left
most child
*/
static
BlockNumber
dataGetLeftMostPage
(
GinBtree
btree
,
Page
page
)
...
...
@@ -252,7 +252,7 @@ dataGetLeftMostPage(GinBtree btree, Page page)
}
/*
* add ItemPointer or PostingItem to page. data should point
s
to
* add ItemPointer or PostingItem to page. data should point to
* correct value! depending on leaf or non-leaf page
*/
void
...
...
src/backend/access/gin/ginentrypage.c
View file @
dc10387e
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/gin/ginentrypage.c,v 1.
4 2006/10/04 00:29:47 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/access/gin/ginentrypage.c,v 1.
5 2006/11/12 06:55:53 neilc
Exp $
*-------------------------------------------------------------------------
*/
...
...
@@ -21,20 +21,20 @@
* non-traditional layout. Tuple may contain posting list or
* root blocknumber of posting tree. Macros GinIsPostingTre: (itup) / GinSetPostingTree(itup, blkno)
* 1) Posting list
* - itup->t_info & INDEX_SIZE_MASK contains size of tuple as us
i
al
* - itup->t_info & INDEX_SIZE_MASK contains size of tuple as us
u
al
* - ItemPointerGetBlockNumber(&itup->t_tid) contains original
* size of tuple (without posting list).
* Macroses: GinGetOrigSizePosting(itup) / GinSetOrigSizePosting(itup,n)
* - ItemPointerGetOffsetNumber(&itup->t_tid) contains number
* of elements in posting list (number of heap itempointer)
* Macroses: GinGetNPosting(itup) / GinSetNPosting(itup,n)
* - After us
i
al part of tuple there is a posting list
* - After us
u
al part of tuple there is a posting list
* Macros: GinGetPosting(itup)
* 2) Posting tree
* - itup->t_info & INDEX_SIZE_MASK contains size of tuple as us
i
al
* - itup->t_info & INDEX_SIZE_MASK contains size of tuple as us
u
al
* - ItemPointerGetBlockNumber(&itup->t_tid) contains block number of
* root of posting tree
* - ItemPointerGetOffsetNumber(&itup->t_tid) contains magic
k
number GIN_TREE_POSTING
* - ItemPointerGetOffsetNumber(&itup->t_tid) contains magic number GIN_TREE_POSTING
*/
IndexTuple
GinFormTuple
(
GinState
*
ginstate
,
Datum
key
,
ItemPointerData
*
ipd
,
uint32
nipd
)
...
...
src/backend/access/gin/ginget.c
View file @
dc10387e
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/gin/ginget.c,v 1.
3 2006/10/04 00:29:47 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/access/gin/ginget.c,v 1.
4 2006/11/12 06:55:53 neilc
Exp $
*-------------------------------------------------------------------------
*/
...
...
@@ -389,7 +389,7 @@ scanGetItem(IndexScanDesc scan, ItemPointerData *item)
*
item
=
key
->
curItem
;
}
else
return
FALSE
;
/* finshed one of keys */
return
FALSE
;
/* fin
i
shed one of keys */
}
for
(
i
=
1
;
i
<=
so
->
nkeys
;
i
++
)
...
...
@@ -405,7 +405,7 @@ scanGetItem(IndexScanDesc scan, ItemPointerData *item)
else
if
(
cmp
>
0
)
{
if
(
keyGetItem
(
scan
->
indexRelation
,
&
so
->
ginstate
,
so
->
tempCtx
,
key
)
==
TRUE
)
return
FALSE
;
/* finshed one of keys */
return
FALSE
;
/* fin
i
shed one of keys */
}
else
{
/* returns to begin */
...
...
src/backend/access/gin/ginvacuum.c
View file @
dc10387e
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/gin/ginvacuum.c,v 1.
7 2006/10/04 00:29:48 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/access/gin/ginvacuum.c,v 1.
8 2006/11/12 06:55:53 neilc
Exp $
*-------------------------------------------------------------------------
*/
...
...
@@ -34,9 +34,9 @@ typedef struct
/*
* Cleans array of ItemPointer (removes dead pointers)
* Results are always stored in *cleaned, which will be allocated
* if its needed. In case of *cleaned!=NULL caller is resposible to
* if its needed. In case of *cleaned!=NULL caller is respo
n
sible to
* enough space. *cleaned and items may point to the same
* memory addres.
* memory addres
s
.
*/
static
uint32
...
...
@@ -195,7 +195,7 @@ ginVacuumPostingTreeLeaves(GinVacuumState *gvs, BlockNumber blkno, bool isRoot,
MarkBufferDirty
(
buffer
);
END_CRIT_SECTION
();
/* if root is a leaf page, we don't desire futher processing */
/* if root is a leaf page, we don't desire fu
r
ther processing */
if
(
!
isRoot
&&
GinPageGetOpaque
(
page
)
->
maxoff
<
FirstOffsetNumber
)
hasVoidPage
=
TRUE
;
}
...
...
@@ -459,7 +459,7 @@ ginVacuumPostingTree(GinVacuumState *gvs, BlockNumber rootBlkno)
/*
* returns modified page or NULL if page isn't modified.
* Function works with original page until first change is occured,
* then page is copied into temp
r
orary one.
* then page is copied into temporary one.
*/
static
Page
ginVacuumEntryPage
(
GinVacuumState
*
gvs
,
Buffer
buffer
,
BlockNumber
*
roots
,
uint32
*
nroot
)
...
...
@@ -489,7 +489,7 @@ ginVacuumEntryPage(GinVacuumState *gvs, Buffer buffer, BlockNumber *roots, uint3
else
if
(
GinGetNPosting
(
itup
)
>
0
)
{
/*
* if we already create tem
r
orary page, we will make changes in
* if we already create tem
p
orary page, we will make changes in
* place
*/
ItemPointerData
*
cleaned
=
(
tmppage
==
origpage
)
?
NULL
:
GinGetPosting
(
itup
);
...
...
@@ -508,7 +508,7 @@ ginVacuumEntryPage(GinVacuumState *gvs, Buffer buffer, BlockNumber *roots, uint3
if
(
tmppage
==
origpage
)
{
/*
* On first difference we create temp
r
orary page in memory
* On first difference we create temporary page in memory
* and copies content in to it.
*/
tmppage
=
GinPageGetCopyPage
(
origpage
);
...
...
src/backend/access/gist/gist.c
View file @
dc10387e
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/gist/gist.c,v 1.14
3 2006/10/04 00:29:48 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/access/gist/gist.c,v 1.14
4 2006/11/12 06:55:53 neilc
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -360,8 +360,8 @@ gistplacetopage(GISTInsertState *state, GISTSTATE *giststate)
ptr
->
block
.
blkno
=
BufferGetBlockNumber
(
ptr
->
buffer
);
/*
* fill page, we can do it bec
ouse all this pages are new (ie not
* linked in tree or masked by temp page
* fill page, we can do it bec
ause all these pages are new
*
(ie not
linked in tree or masked by temp page
*/
data
=
(
char
*
)
(
ptr
->
list
);
for
(
i
=
0
;
i
<
ptr
->
block
.
num
;
i
++
)
...
...
@@ -371,7 +371,7 @@ gistplacetopage(GISTInsertState *state, GISTSTATE *giststate)
data
+=
IndexTupleSize
((
IndexTuple
)
data
);
}
/* set up ItemPointer and rem
me
ber it for parent */
/* set up ItemPointer and rem
em
ber it for parent */
ItemPointerSetBlockNumber
(
&
(
ptr
->
itup
->
t_tid
),
ptr
->
block
.
blkno
);
state
->
itup
[
state
->
ituplen
]
=
ptr
->
itup
;
state
->
ituplen
++
;
...
...
@@ -646,7 +646,7 @@ gistfindleaf(GISTInsertState *state, GISTSTATE *giststate)
/*
* Traverse the tree to find path from root page to specified "child" block.
*
* returns from the begining of closest parent;
* returns from the begin
n
ing of closest parent;
*
* To prevent deadlocks, this should lock only one page simultaneously.
*/
...
...
@@ -953,7 +953,7 @@ gistSplit(Relation r,
for
(
i
=
0
;
i
<
v
.
splitVector
.
spl_nright
;
i
++
)
rvectup
[
i
]
=
itup
[
v
.
splitVector
.
spl_right
[
i
]
-
1
];
/* final
y
ze splitting (may need another split) */
/* final
i
ze splitting (may need another split) */
if
(
!
gistfitpage
(
rvectup
,
v
.
splitVector
.
spl_nright
))
{
res
=
gistSplit
(
r
,
page
,
rvectup
,
v
.
splitVector
.
spl_nright
,
giststate
);
...
...
src/backend/access/gist/gistget.c
View file @
dc10387e
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/gist/gistget.c,v 1.6
1 2006/10/04 00:29:48 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/access/gist/gistget.c,v 1.6
2 2006/11/12 06:55:53 neilc
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -243,7 +243,7 @@ gistnext(IndexScanDesc scan, ScanDirection dir, ItemPointer tids, int maxtids, b
n
=
OffsetNumberNext
(
n
);
}
/* wonderful
l
, we can look at page */
/* wonderful, we can look at page */
for
(;;)
{
...
...
src/backend/commands/comment.c
View file @
dc10387e
...
...
@@ -7,7 +7,7 @@
* Copyright (c) 1996-2006, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/comment.c,v 1.9
2 2006/10/04 00:29:50 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/commands/comment.c,v 1.9
3 2006/11/12 06:55:54 neilc
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -52,7 +52,7 @@
/*
* Static Function Prototypes --
*
* The following protoypes are declared static so as not to conflict
* The following proto
t
ypes are declared static so as not to conflict
* with any other routines outside this module. These routines are
* called by the public function CommentObject() routine to create
* the appropriate comment for the specific object type.
...
...
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