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
82fc51e0
Commit
82fc51e0
authored
Feb 22, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More comment improvements.
parent
4f6c49fe
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
102 additions
and
101 deletions
+102
-101
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/lock.c
+89
-89
src/include/access/nbtree.h
src/include/access/nbtree.h
+4
-4
src/include/storage/lmgr.h
src/include/storage/lmgr.h
+7
-6
src/include/storage/lock.h
src/include/storage/lock.h
+2
-2
No files found.
src/backend/storage/lmgr/lock.c
View file @
82fc51e0
This diff is collapsed.
Click to expand it.
src/include/access/nbtree.h
View file @
82fc51e0
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: nbtree.h,v 1.5
3 2001/02/22 21:48:49
momjian Exp $
* $Id: nbtree.h,v 1.5
4 2001/02/22 23:02:33
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -67,7 +67,7 @@ typedef struct BTMetaPageData
#define BTPageGetMeta(p) \
((BTMetaPageData *) &((PageHeader) p)->pd_linp[0])
#define BTREE_METAPAGE 0
/* first page is meta */
#define BTREE_METAPAGE 0
/* first page is meta */
#define BTREE_MAGIC 0x053162
/* magic number of btree pages */
#define BTreeInvalidParent(opaque) \
...
...
@@ -215,8 +215,8 @@ typedef BTStackData *BTStack;
* items beginning in item 1.
*/
#define P_HIKEY ((OffsetNumber) 1)
#define P_FIRSTKEY ((OffsetNumber) 2)
#define P_HIKEY
((OffsetNumber) 1)
#define P_FIRSTKEY
((OffsetNumber) 2)
#define P_FIRSTDATAKEY(opaque) (P_RIGHTMOST(opaque) ? P_HIKEY : P_FIRSTKEY)
/*
...
...
src/include/storage/lmgr.h
View file @
82fc51e0
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: lmgr.h,v 1.2
8 2001/01/24 19:43:27
momjian Exp $
* $Id: lmgr.h,v 1.2
9 2001/02/22 23:02:33
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -25,11 +25,12 @@
#define AccessShareLock 1
/* SELECT */
#define RowShareLock 2
/* SELECT FOR UPDATE */
#define RowExclusiveLock 3
/* INSERT, UPDATE, DELETE */
#define ShareLock 4
#define ShareRowExclusiveLock 5
#define ExclusiveLock 6
#define AccessExclusiveLock 7
#define ShareLock 4
/* CREATE INDEX */
#define ShareRowExclusiveLock 5
/* like EXCLUSIVE MODE, allows SHARE ROW */
#define ExclusiveLock 6
/* blocks ROW SHARE/SELECT...FOR UPDATE */
#define AccessExclusiveLock 7
/* ALTER TABLE, DROP TABLE, VACUUM, and
* unqualified LOCK TABLE
*/
extern
LOCKMETHOD
LockTableId
;
...
...
src/include/storage/lock.h
View file @
82fc51e0
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: lock.h,v 1.4
4 2001/01/25 03:31:16 tgl
Exp $
* $Id: lock.h,v 1.4
5 2001/02/22 23:02:33 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -60,7 +60,7 @@ typedef int LOCKMODE;
typedef
int
LOCKMETHOD
;
/* MAX_LOCKMODES cannot be larger than the # of bits in LOCKMASK */
#define MAX_LOCKMODES 8
#define MAX_LOCKMODES
8
/*
* MAX_LOCK_METHODS corresponds to the number of spin locks allocated in
...
...
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