|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.46 1997/09/15 14:28:16 vadim Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.47 1997/09/18 05:19:17 vadim Exp $ |
11 | 11 | *
|
12 | 12 | * NOTES
|
13 | 13 | * this is the "main" module of the postgres backend and
|
@@ -1120,10 +1120,32 @@ PostgresMain(int argc, char *argv[])
|
1120 | 1120 |
|
1121 | 1121 | case'S':
|
1122 | 1122 | /* ----------------
|
1123 |
| - *S - amount of sort memory to use in 1k bytes |
| 1123 | + *S - amount of sort memory to use in 1k bytes and |
| 1124 | + *(optional) max number of tuples in leftist tree |
1124 | 1125 | * ----------------
|
1125 | 1126 | */
|
1126 |
| -SortMem=atoi(optarg); |
| 1127 | +{ |
| 1128 | +intS; |
| 1129 | +char*p=strchr (optarg,','); |
| 1130 | + |
| 1131 | +if (p!=NULL ) |
| 1132 | +{ |
| 1133 | +*p=0; |
| 1134 | +S=atoi(optarg); |
| 1135 | +if (S >=4*MAXBLCKSZ/1024 ) |
| 1136 | +SortMem=S; |
| 1137 | +S=atoi (p+1); |
| 1138 | +if (S >=32 ) |
| 1139 | +SortTuplesInTree=S; |
| 1140 | +*p=','; |
| 1141 | +} |
| 1142 | +else |
| 1143 | +{ |
| 1144 | +S=atoi(optarg); |
| 1145 | +if (S >=4*MAXBLCKSZ/1024 ) |
| 1146 | +SortMem=S; |
| 1147 | +} |
| 1148 | +} |
1127 | 1149 | break;
|
1128 | 1150 |
|
1129 | 1151 | case's':
|
@@ -1385,7 +1407,7 @@ PostgresMain(int argc, char *argv[])
|
1385 | 1407 | if (IsUnderPostmaster== false)
|
1386 | 1408 | {
|
1387 | 1409 | puts("\nPOSTGRES backend interactive interface");
|
1388 |
| -puts("$Revision: 1.46 $ $Date: 1997/09/15 14:28:16 $"); |
| 1410 | +puts("$Revision: 1.47 $ $Date: 1997/09/18 05:19:17 $"); |
1389 | 1411 | }
|
1390 | 1412 |
|
1391 | 1413 | /* ----------------
|
|