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
fd86ae15
Commit
fd86ae15
authored
Aug 14, 1997
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup global variables, remove stable memory stuff.
parent
e99e4ba8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
27 deletions
+16
-27
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+6
-23
src/backend/utils/init/globals.c
src/backend/utils/init/globals.c
+4
-1
src/backend/utils/sort/psort.c
src/backend/utils/sort/psort.c
+2
-2
src/include/miscadmin.h
src/include/miscadmin.h
+4
-1
No files found.
src/backend/tcop/postgres.c
View file @
fd86ae15
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.4
0 1997/08/12 20:15:49
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.4
1 1997/08/14 16:11:15
momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -107,9 +107,6 @@ extern int lockDebug;
extern
int
lockingOff
;
extern
int
NBuffers
;
int
fsyncOff
=
0
;
int
SortMem
=
512
;
int
dontExecute
=
0
;
static
int
ShowStats
;
static
bool
IsEmptyQuery
=
false
;
...
...
@@ -782,7 +779,7 @@ static void usage(char* progname)
fprintf
(
stderr
,
" p: backend started by postmaster
\n
"
);
fprintf
(
stderr
,
" P: set port file descriptor
\n
"
);
fprintf
(
stderr
,
" Q: suppress informational messages
\n
"
);
fprintf
(
stderr
,
" S:
assume stable main memory
\n
"
);
fprintf
(
stderr
,
" S:
set amount of sort memory available
\n
"
);
fprintf
(
stderr
,
" s: show stats after each query
\n
"
);
fprintf
(
stderr
,
" t: trace component execution times
\n
"
);
fprintf
(
stderr
,
" T: execute all possible plans for each query
\n
"
);
...
...
@@ -800,7 +797,6 @@ PostgresMain(int argc, char *argv[])
{
int
flagC
;
int
flagQ
;
int
flagS
;
int
flagE
;
int
flagEu
;
int
flag
;
...
...
@@ -855,7 +851,7 @@ PostgresMain(int argc, char *argv[])
* parse command line arguments
* ----------------
*/
flagC
=
flagQ
=
flag
S
=
flag
E
=
flagEu
=
ShowStats
=
0
;
flagC
=
flagQ
=
flagE
=
flagEu
=
ShowStats
=
0
;
ShowParserStats
=
ShowPlannerStats
=
ShowExecutorStats
=
0
;
#ifdef LOCK_MGR_DEBUG
lockDebug
=
0
;
...
...
@@ -1048,18 +1044,6 @@ PostgresMain(int argc, char *argv[])
SortMem
=
atoi
(
optarg
);
break
;
#ifdef NOT_USED
case
'S'
:
/* ----------------
* S - assume stable main memory
* (don't flush all pages at end transaction)
* ----------------
*/
flagS
=
1
;
SetTransactionFlushEnabled
(
false
);
break
;
#endif
case
's'
:
/* ----------------
* s - report usage statistics (timings) after each query
...
...
@@ -1180,7 +1164,6 @@ PostgresMain(int argc, char *argv[])
puts
(
"
\t
---debug info---"
);
printf
(
"
\t
Quiet = %c
\n
"
,
Quiet
?
't'
:
'f'
);
printf
(
"
\t
Noversion = %c
\n
"
,
Noversion
?
't'
:
'f'
);
printf
(
"
\t
stable = %c
\n
"
,
flagS
?
't'
:
'f'
);
printf
(
"
\t
timings = %c
\n
"
,
ShowStats
?
't'
:
'f'
);
printf
(
"
\t
dates = %s
\n
"
,
EuroDates
?
"European"
:
"Normal"
);
printf
(
"
\t
bufsize = %d
\n
"
,
NBuffers
);
...
...
@@ -1292,11 +1275,11 @@ PostgresMain(int argc, char *argv[])
*/
if
(
IsUnderPostmaster
==
false
)
{
puts
(
"
\n
POSTGRES backend interactive interface"
);
puts
(
"$Revision: 1.4
0 $ $Date: 1997/08/12 20:15:49
$"
);
puts
(
"$Revision: 1.4
1 $ $Date: 1997/08/14 16:11:15
$"
);
}
/* ----------------
* if stable main memory is assumed (-S flag is set), it is necessary
* if stable main memory is assumed (-S
(old)
flag is set), it is necessary
* to flush all dirty shared buffers before exit
* plai 8/7/90
* ----------------
...
...
src/backend/utils/init/globals.c
View file @
fd86ae15
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.
9 1997/03/28 07:18:06 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.
10 1997/08/14 16:11:21 momjian
Exp $
*
* NOTES
* Globals used all over the place should be declared here and not
...
...
@@ -75,6 +75,9 @@ char CTZName[MAXTZLEN+1] = "";
char
DateFormat
[
20
]
=
"%d-%m-%Y"
;
/* mjl: sizes! or better malloc? XXX */
char
FloatFormat
[
20
]
=
"%f"
;
int
fsyncOff
=
0
;
int
SortMem
=
512
;
char
*
IndexedCatalogNames
[]
=
{
AttributeRelationName
,
ProcedureRelationName
,
...
...
src/backend/utils/sort/psort.c
View file @
fd86ae15
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.1
4 1997/08/14 05:04:38 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.1
5 1997/08/14 16:11:28 momjian
Exp $
*
* NOTES
* Sorts the first relation into the second relation.
...
...
@@ -61,11 +61,11 @@
#include "utils/lselect.h"
#include "utils/psort.h"
#include "miscadmin.h"
#include "storage/fd.h"
#define TEMPDIR "./"
extern
int
SortMem
;
/* defined as postgres option */
static
long
shortzero
=
0
;
/* used to delimit runs */
/*
...
...
src/include/miscadmin.h
View file @
fd86ae15
...
...
@@ -11,7 +11,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: miscadmin.h,v 1.
9 1997/04/27 19:21:06 thomas
Exp $
* $Id: miscadmin.h,v 1.
10 1997/08/14 16:11:41 momjian
Exp $
*
* NOTES
* some of the information in this file will be moved to
...
...
@@ -89,6 +89,9 @@ extern char CTZName[];
extern
char
FloatFormat
[];
extern
char
DateFormat
[];
extern
int
fsyncOff
;
extern
int
SortMem
;
extern
Oid
LastOidProcessed
;
/* for query rewrite */
#define MAX_PARSE_BUFFER 8192
...
...
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