From dfdbf6898f378420ef136daf3ce786b225dc9d5d Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 12 Sep 2001 14:06:37 +0000 Subject: [PATCH] max_locks_per_transaction seems to be a more consistent name than max_locks_per_xact. --- doc/src/sgml/runtime.sgml | 6 +++--- src/backend/utils/misc/guc.c | 4 ++-- src/backend/utils/misc/postgresql.conf.sample | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index be2ae89ade..e08a3770b3 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -1187,11 +1187,11 @@ dynamic_library_path = '/usr/local/lib:/home/my_project/lib:$libdir:$libdir/cont - MAX_LOCKS_PER_XACT (integer) + MAX_LOCKS_PER_TRANSACTION (integer) The shared lock table is sized on the assumption that at most - max_locks_per_xact * max_connections distinct objects will need + max_locks_per_transaction * max_connections distinct objects will need to be locked at any one time. The default, 64, has historically proven sufficient, but you might need to raise this value if you have clients that touch many different tables in a single transaction. diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index b1299df067..5af9fc67ab 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -4,7 +4,7 @@ * Support for grand unified configuration scheme, including SET * command, configuration file, and command line options. * - * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.47 2001/09/07 00:27:29 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.48 2001/09/12 14:06:37 petere Exp $ * * Copyright 2000 by PostgreSQL Global Development Group * Written by Peter Eisentraut . @@ -317,7 +317,7 @@ static struct config_int {"max_fsm_pages", PGC_POSTMASTER, &MaxFSMPages, 10000, 1000, INT_MAX, NULL, NULL}, - {"max_locks_per_xact", PGC_POSTMASTER, &max_locks_per_xact, + {"max_locks_per_transaction", PGC_POSTMASTER, &max_locks_per_xact, 64, 10, INT_MAX, NULL, NULL}, {"checkpoint_segments", PGC_SIGHUP, &CheckPointSegments, diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample index 2d5ac37cae..8faf8304eb 100644 --- a/src/backend/utils/misc/postgresql.conf.sample +++ b/src/backend/utils/misc/postgresql.conf.sample @@ -47,7 +47,7 @@ #shared_buffers = 64 # 2*max_connections, min 16 #max_fsm_relations = 100 # min 10 #max_fsm_pages = 10000 # min 1000 -#max_locks_per_xact = 64 # min 10 +#max_locks_per_transaction = 64 # min 10 #wal_buffers = 8 # min 4 #