Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
cc24b846
Commit
cc24b846
authored
Aug 06, 1997
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
psort cleanups.
parent
8fd7db81
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+4
-4
src/backend/utils/sort/psort.c
src/backend/utils/sort/psort.c
+3
-3
src/include/utils/psort.h
src/include/utils/psort.h
+1
-2
No files found.
src/backend/tcop/postgres.c
View file @
cc24b846
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.3
8 1997/08/06 05:08:37
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.3
9 1997/08/06 05:38:35
momjian Exp $
*
*
* NOTES
* NOTES
* this is the "main" module of the postgres backend and
* this is the "main" module of the postgres backend and
...
@@ -108,7 +108,7 @@ extern int lockingOff;
...
@@ -108,7 +108,7 @@ extern int lockingOff;
extern
int
NBuffers
;
extern
int
NBuffers
;
int
fsyncOff
=
0
;
int
fsyncOff
=
0
;
int
SortMem
=
512
*
1024
;
int
SortMem
=
512
;
int
dontExecute
=
0
;
int
dontExecute
=
0
;
static
int
ShowStats
;
static
int
ShowStats
;
...
@@ -1045,7 +1045,7 @@ PostgresMain(int argc, char *argv[])
...
@@ -1045,7 +1045,7 @@ PostgresMain(int argc, char *argv[])
* S - amount of sort memory to use in 1k bytes
* S - amount of sort memory to use in 1k bytes
* ----------------
* ----------------
*/
*/
SortMem
=
atoi
(
optarg
)
*
1024
;
SortMem
=
atoi
(
optarg
);
break
;
break
;
#ifdef NOT_USED
#ifdef NOT_USED
...
@@ -1292,7 +1292,7 @@ PostgresMain(int argc, char *argv[])
...
@@ -1292,7 +1292,7 @@ PostgresMain(int argc, char *argv[])
*/
*/
if
(
IsUnderPostmaster
==
false
)
{
if
(
IsUnderPostmaster
==
false
)
{
puts
(
"
\n
POSTGRES backend interactive interface"
);
puts
(
"
\n
POSTGRES backend interactive interface"
);
puts
(
"$Revision: 1.3
8 $ $Date: 1997/08/06 05:08:37
$"
);
puts
(
"$Revision: 1.3
9 $ $Date: 1997/08/06 05:38:35
$"
);
}
}
/* ----------------
/* ----------------
...
...
src/backend/utils/sort/psort.c
View file @
cc24b846
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.
7 1997/08/06 04:45:39
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.
8 1997/08/06 05:38:38
momjian Exp $
*
*
* NOTES
* NOTES
* Sorts the first relation into the second relation.
* Sorts the first relation into the second relation.
...
@@ -123,10 +123,10 @@ psort_begin(Sort *node, int nkeys, ScanKey key)
...
@@ -123,10 +123,10 @@ psort_begin(Sort *node, int nkeys, ScanKey key)
PS
(
node
)
->
BytesRead
=
0
;
PS
(
node
)
->
BytesRead
=
0
;
PS
(
node
)
->
BytesWritten
=
0
;
PS
(
node
)
->
BytesWritten
=
0
;
PS
(
node
)
->
treeContext
.
tupDesc
=
PS
(
node
)
->
treeContext
.
tupDesc
=
ExecGetTupType
(
outerPlan
((
Plan
*
)
node
));
ExecGetTupType
(
outerPlan
((
Plan
*
)
node
));
PS
(
node
)
->
treeContext
.
nKeys
=
nkeys
;
PS
(
node
)
->
treeContext
.
nKeys
=
nkeys
;
PS
(
node
)
->
treeContext
.
scanKeys
=
key
;
PS
(
node
)
->
treeContext
.
scanKeys
=
key
;
PS
(
node
)
->
treeContext
.
sortMem
=
SortMem
;
PS
(
node
)
->
treeContext
.
sortMem
=
SortMem
*
1024
;
PS
(
node
)
->
Tuples
=
NULL
;
PS
(
node
)
->
Tuples
=
NULL
;
PS
(
node
)
->
tupcount
=
0
;
PS
(
node
)
->
tupcount
=
0
;
...
...
src/include/utils/psort.h
View file @
cc24b846
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: psort.h,v 1.
4 1997/08/06 03:42:13
momjian Exp $
* $Id: psort.h,v 1.
5 1997/08/06 05:38:46
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
#include "utils/lselect.h"
#include "utils/lselect.h"
#include "nodes/plannodes.h"
#include "nodes/plannodes.h"
#define SORTMEM (1 << 18)
/* 1/4 M - any static memory */
#define MAXTAPES 7
/* 7--See Fig. 70, p273 */
#define MAXTAPES 7
/* 7--See Fig. 70, p273 */
#define TAPEEXTLEN strlen("pg_psort.xxxxx.xxx")
/* TEMPDIR/TAPEEXT */
#define TAPEEXTLEN strlen("pg_psort.xxxxx.xxx")
/* TEMPDIR/TAPEEXT */
#define FREE(x) pfree((char *) x)
#define FREE(x) pfree((char *) x)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment