Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8f1e1b4

Browse files
committed
No more SortTuplesInTree...
1 parent4948a51 commit8f1e1b4

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.47 1997/09/1805:19:17 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.48 1997/09/1814:33:33 vadim Exp $
1111
*
1212
* NOTES
1313
* this is the "main" module of the postgres backend and
@@ -1120,31 +1120,15 @@ PostgresMain(int argc, char *argv[])
11201120

11211121
case'S':
11221122
/* ----------------
1123-
*S - amount of sort memory to use in 1k bytes and
1124-
*(optional) max number of tuples in leftist tree
1123+
*S - amount of sort memory to use in 1k bytes
11251124
* ----------------
11261125
*/
11271126
{
11281127
intS;
1129-
char*p=strchr (optarg,',');
11301128

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-
}
1129+
S=atoi(optarg);
1130+
if (S >=4*MAXBLCKSZ/1024 )
1131+
SortMem=S;
11481132
}
11491133
break;
11501134

@@ -1407,7 +1391,7 @@ PostgresMain(int argc, char *argv[])
14071391
if (IsUnderPostmaster== false)
14081392
{
14091393
puts("\nPOSTGRES backend interactive interface");
1410-
puts("$Revision: 1.47 $ $Date: 1997/09/1805:19:17 $");
1394+
puts("$Revision: 1.48 $ $Date: 1997/09/1814:33:33 $");
14111395
}
14121396

14131397
/* ----------------

‎src/backend/utils/init/globals.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.13 1997/09/1805:23:58 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.14 1997/09/1814:33:46 vadim Exp $
1111
*
1212
* NOTES
1313
* Globals used all over the place should be declared here and not
@@ -80,7 +80,6 @@ charFloatFormat[20] = "%f";
8080

8181
intfsyncOff=0;
8282
intSortMem=512;
83-
intSortTuplesInTree=2560;
8483

8584
char*IndexedCatalogNames[]= {
8685
AttributeRelationName,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp