Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
986915c1
Commit
986915c1
authored
24 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused include file for long-dead flavors of locking.
parent
695e5754
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/storage/multilev.h
+0
-82
0 additions, 82 deletions
src/include/storage/multilev.h
with
0 additions
and
82 deletions
src/include/storage/multilev.h
deleted
100644 → 0
+
0
−
82
View file @
695e5754
/*-------------------------------------------------------------------------
*
* multilev.h
* multi level lock table consts/defs for single.c and multi.c and their
* clients
*
*
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: multilev.h,v 1.18 2001/01/24 19:43:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef MULTILEV_H
#define MULTILEV_H
#include
"storage/lmgr.h"
#ifdef LowLevelLocking
/* DML locks */
#define RowShareLock 1
/* SELECT FOR UPDATE */
#define RowExclusiveLock 2
/* INSERT, UPDATE, DELETE */
#define ShareLock 3
#define ShareRowExclusiveLock 4
#define ExclusiveLock 5
/* DDL locks */
#define ObjShareLock 6
#define ObjExclusiveLock 7
/* Special locks */
#define ExtendLock 8
#else
#define READ_LOCK 2
#define WRITE_LOCK 1
/* any time a small granularity READ/WRITE lock is set.
* Higher granularity READ_INTENT/WRITE_INTENT locks must
* also be set. A read intent lock is has value READ+INTENT.
* in this implementation.
*/
#define NO_LOCK 0
#define INTENT 2
#define READ_INTENT (READ_LOCK+INTENT)
#define WRITE_INTENT (WRITE_LOCK+INTENT)
#define EXTEND_LOCK 5
#endif
/* !LowLevelLocking */
#define SHORT_TERM 1
#define LONG_TERM 2
#define UNLOCK 0
#define N_LEVELS 3
#define RELN_LEVEL 0
#define PAGE_LEVEL 1
#define TUPLE_LEVEL 2
typedef
int
PG_LOCK_LEVEL
;
/* multi.c */
extern
LOCKMETHOD
MultiTableId
;
#ifdef NOT_USED
extern
LOCKMETHOD
ShortTermTableId
;
#endif
/*
* function prototypes
*/
extern
LOCKMETHOD
InitMultiLevelLocks
(
void
);
extern
bool
MultiLockReln
(
LockInfo
lockinfo
,
LOCKMODE
lockmode
);
extern
bool
MultiLockPage
(
LockInfo
lockinfo
,
ItemPointer
tidPtr
,
LOCKMODE
lockmode
);
extern
bool
MultiReleaseReln
(
LockInfo
lockinfo
,
LOCKMODE
lockmode
);
#endif
/* MULTILEV_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment