1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Remove useless LockDisable() function and associated overhead, per my

proposal of 26-Aug.
This commit is contained in:
Tom Lane
2001-09-27 16:29:13 +00:00
parent 19656b7445
commit 3d59ad00e8
8 changed files with 45 additions and 127 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.233 2001/09/21 17:06:12 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.234 2001/09/27 16:29:12 tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@ -1096,7 +1096,6 @@ usage(char *progname)
printf("Developer options:\n");
printf(" -f [s|i|n|m|h] forbid use of some plan types\n");
printf(" -i do not execute queries\n");
printf(" -L turn off locking\n");
printf(" -O allow system table structure changes\n");
printf(" -t [pa|pl|ex] show timings after each query\n");
printf(" -W NUM wait NUM seconds to allow attach from a debugger\n");
@ -1207,7 +1206,7 @@ PostgresMain(int argc, char *argv[],
optind = 1; /* reset after postmaster's usage */
while ((flag = getopt(argc, argv, "A:B:c:CD:d:Eef:FiLNOPo:p:S:st:v:W:x:-:")) != EOF)
while ((flag = getopt(argc, argv, "A:B:c:CD:d:Eef:FiNOPo:p:S:st:v:W:x:-:")) != EOF)
switch (flag)
{
case 'A':
@ -1314,15 +1313,6 @@ PostgresMain(int argc, char *argv[],
dontExecute = true;
break;
case 'L':
/*
* turn off locking
*/
if (secure)
lockingOff = 1;
break;
case 'N':
/*
@ -1726,7 +1716,7 @@ PostgresMain(int argc, char *argv[],
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
puts("$Revision: 1.233 $ $Date: 2001/09/21 17:06:12 $\n");
puts("$Revision: 1.234 $ $Date: 2001/09/27 16:29:12 $\n");
}
/*