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
bb55e583
Commit
bb55e583
authored
19 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Allocate a few extra LWLocks for possible use by add-on modules.
Per request from Marc Munro.
parent
426d0158
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend/storage/lmgr/lwlock.c
+3
-2
3 additions, 2 deletions
src/backend/storage/lmgr/lwlock.c
src/include/pg_config_manual.h
+6
-1
6 additions, 1 deletion
src/include/pg_config_manual.h
with
9 additions
and
3 deletions
src/backend/storage/lmgr/lwlock.c
+
3
−
2
View file @
bb55e583
...
...
@@ -15,7 +15,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/lmgr/lwlock.c,v 1.3
0
2005/
09/16 00:30
:0
5
tgl Exp $
* $PostgreSQL: pgsql/src/backend/storage/lmgr/lwlock.c,v 1.3
1
2005/
10/07 20:11
:0
3
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -140,7 +140,8 @@ NumLWLocks(void)
*/
numLocks
+=
2
*
NUM_SLRU_BUFFERS
;
/* Perhaps create a few more for use by user-defined modules? */
/* Leave a few extra for use by user-defined modules. */
numLocks
+=
NUM_USER_DEFINED_LWLOCKS
;
return
numLocks
;
}
...
...
This diff is collapsed.
Click to expand it.
src/include/pg_config_manual.h
+
6
−
1
View file @
bb55e583
...
...
@@ -6,7 +6,7 @@
* for developers. If you edit any of these, be sure to do a *full*
* rebuild (and an initdb if noted).
*
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.1
7
2005/10/0
3
2
2:55:56
tgl Exp $
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.1
8
2005/10/0
7
2
0:11:03
tgl Exp $
*------------------------------------------------------------------------
*/
...
...
@@ -74,6 +74,11 @@
*/
#define INDEX_MAX_KEYS 32
/*
* Number of spare LWLocks to allocate for user-defined add-on code.
*/
#define NUM_USER_DEFINED_LWLOCKS 4
/*
* Define this to make libpgtcl's "pg_result -assign" command process
* C-style backslash sequences in returned tuple data and convert
...
...
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