7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.40 1997/08/12 20:15:49 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.41 1997/08/14 16:11:15 momjian Exp $
11
11
*
12
12
* NOTES
13
13
* this is the "main" module of the postgres backend and
@@ -107,10 +107,7 @@ extern int lockDebug;
107
107
extern int lockingOff ;
108
108
extern int NBuffers ;
109
109
110
- int fsyncOff = 0 ;
111
- int SortMem = 512 ;
112
-
113
- int dontExecute = 0 ;
110
+ int dontExecute = 0 ;
114
111
static int ShowStats ;
115
112
static bool IsEmptyQuery = false;
116
113
@@ -782,7 +779,7 @@ static void usage(char* progname)
782
779
fprintf (stderr , " p: backend started by postmaster\n" );
783
780
fprintf (stderr , " P: set port file descriptor\n" );
784
781
fprintf (stderr , " Q: suppress informational messages\n" );
785
- fprintf (stderr , " S: assume stable main memory\n" );
782
+ fprintf (stderr , " S: set amount of sort memory available \n" );
786
783
fprintf (stderr , " s: show stats after each query\n" );
787
784
fprintf (stderr , " t: trace component execution times\n" );
788
785
fprintf (stderr , " T: execute all possible plans for each query\n" );
@@ -800,7 +797,6 @@ PostgresMain(int argc, char *argv[])
800
797
{
801
798
int flagC ;
802
799
int flagQ ;
803
- int flagS ;
804
800
int flagE ;
805
801
int flagEu ;
806
802
int flag ;
@@ -855,7 +851,7 @@ PostgresMain(int argc, char *argv[])
855
851
* parse command line arguments
856
852
* ----------------
857
853
*/
858
- flagC = flagQ = flagS = flagE = flagEu = ShowStats = 0 ;
854
+ flagC = flagQ = flagE = flagEu = ShowStats = 0 ;
859
855
ShowParserStats = ShowPlannerStats = ShowExecutorStats = 0 ;
860
856
#ifdef LOCK_MGR_DEBUG
861
857
lockDebug = 0 ;
@@ -1047,18 +1043,6 @@ PostgresMain(int argc, char *argv[])
1047
1043
*/
1048
1044
SortMem = atoi (optarg );
1049
1045
break ;
1050
-
1051
- #ifdef NOT_USED
1052
- case 'S' :
1053
- /* ----------------
1054
- * S - assume stable main memory
1055
- * (don't flush all pages at end transaction)
1056
- * ----------------
1057
- */
1058
- flagS = 1 ;
1059
- SetTransactionFlushEnabled (false);
1060
- break ;
1061
- #endif
1062
1046
1063
1047
case 's' :
1064
1048
/* ----------------
@@ -1180,7 +1164,6 @@ PostgresMain(int argc, char *argv[])
1180
1164
puts ("\t---debug info---" );
1181
1165
printf ("\tQuiet = %c\n" , Quiet ? 't' : 'f' );
1182
1166
printf ("\tNoversion = %c\n" , Noversion ? 't' : 'f' );
1183
- printf ("\tstable = %c\n" , flagS ? 't' : 'f' );
1184
1167
printf ("\ttimings = %c\n" , ShowStats ? 't' : 'f' );
1185
1168
printf ("\tdates = %s\n" , EuroDates ? "European" : "Normal" );
1186
1169
printf ("\tbufsize = %d\n" , NBuffers );
@@ -1292,11 +1275,11 @@ PostgresMain(int argc, char *argv[])
1292
1275
*/
1293
1276
if (IsUnderPostmaster == false) {
1294
1277
puts ("\nPOSTGRES backend interactive interface" );
1295
- puts ("$Revision: 1.40 $ $Date: 1997/08/12 20:15:49 $" );
1278
+ puts ("$Revision: 1.41 $ $Date: 1997/08/14 16:11:15 $" );
1296
1279
}
1297
1280
1298
1281
/* ----------------
1299
- * if stable main memory is assumed (-S flag is set), it is necessary
1282
+ * if stable main memory is assumed (-S(old) flag is set), it is necessary
1300
1283
* to flush all dirty shared buffers before exit
1301
1284
* plai 8/7/90
1302
1285
* ----------------
0 commit comments