File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 15
15
* Portions Copyright (c) 1994, Regents of the University of California
16
16
*
17
17
* IDENTIFICATION
18
- * $PostgreSQL: pgsql/src/backend/storage/lmgr/lwlock.c,v 1.30 2005/09/16 00:30:05 tgl Exp $
18
+ * $PostgreSQL: pgsql/src/backend/storage/lmgr/lwlock.c,v 1.31 2005/10/07 20:11:03 tgl Exp $
19
19
*
20
20
*-------------------------------------------------------------------------
21
21
*/
@@ -140,7 +140,8 @@ NumLWLocks(void)
140
140
*/
141
141
numLocks += 2 * NUM_SLRU_BUFFERS ;
142
142
143
- /* Perhaps create a few more for use by user-defined modules? */
143
+ /* Leave a few extra for use by user-defined modules. */
144
+ numLocks += NUM_USER_DEFINED_LWLOCKS ;
144
145
145
146
return numLocks ;
146
147
}
Original file line number Diff line number Diff line change 6
6
* for developers. If you edit any of these, be sure to do a *full*
7
7
* rebuild (and an initdb if noted).
8
8
*
9
- * $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.17 2005/10/03 22:55:56 tgl Exp $
9
+ * $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.18 2005/10/07 20:11:03 tgl Exp $
10
10
*------------------------------------------------------------------------
11
11
*/
12
12
74
74
*/
75
75
#define INDEX_MAX_KEYS 32
76
76
77
+ /*
78
+ * Number of spare LWLocks to allocate for user-defined add-on code.
79
+ */
80
+ #define NUM_USER_DEFINED_LWLOCKS 4
81
+
77
82
/*
78
83
* Define this to make libpgtcl's "pg_result -assign" command process
79
84
* C-style backslash sequences in returned tuple data and convert
You can’t perform that action at this time.
0 commit comments