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
18bbad76
Commit
18bbad76
authored
Nov 04, 1996
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove OPENLINK define
parent
0108fddf
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
37 deletions
+6
-37
src/backend/storage/file/fd.c
src/backend/storage/file/fd.c
+1
-3
src/backend/storage/smgr/md.c
src/backend/storage/smgr/md.c
+1
-5
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+3
-17
src/backend/utils/adt/varchar.c
src/backend/utils/adt/varchar.c
+1
-11
src/include/config.h
src/include/config.h
+0
-1
No files found.
src/backend/storage/file/fd.c
View file @
18bbad76
...
...
@@ -6,7 +6,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Id: fd.c,v 1.
6 1996/10/31 10:19:59 scrappy
Exp $
* $Id: fd.c,v 1.
7 1996/11/04 04:53:24 momjian
Exp $
*
* NOTES:
*
...
...
@@ -197,14 +197,12 @@ static int FileAccess(File file);
static
File
fileNameOpenFile
(
FileName
fileName
,
int
fileFlags
,
int
fileMode
);
static
char
*
filepath
(
char
*
filename
);
#ifdef OPENLINK_PATCHES
pg_fsync
(
fd
)
{
extern
int
fsyncOff
;
return
fsyncOff
?
0
:
fsync
(
fd
);
}
#define fsync pg_fsync
#endif
#if defined(FDDEBUG)
static
void
...
...
src/backend/storage/smgr/md.c
View file @
18bbad76
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.
6 1996/11/03 05:07:55 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.
7 1996/11/04 04:53:27 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -470,11 +470,7 @@ mdblindwrt(char *dbstr,
status
=
SM_SUCCESS
;
/* write and sync the block */
#ifdef OPENLINK_PATCHES
if
(
write
(
fd
,
buffer
,
BLCKSZ
)
!=
BLCKSZ
||
(
pg_fsync
(
fd
)
<
0
))
#else
if
(
write
(
fd
,
buffer
,
BLCKSZ
)
!=
BLCKSZ
||
fsync
(
fd
)
<
0
)
#endif
status
=
SM_FAIL
;
if
(
close
(
fd
)
<
0
)
...
...
src/backend/tcop/postgres.c
View file @
18bbad76
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.1
3 1996/11/03 06:52:33 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.1
4 1996/11/04 04:53:31 momjian
Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -92,9 +92,7 @@ CommandDest whereToSendOutput;
extern
int
lockingOff
;
extern
int
NBuffers
;
#ifdef OPENLINK_PATCHES
int
fsyncOff
=
0
;
#endif
int
dontExecute
=
0
;
static
int
ShowStats
;
...
...
@@ -742,22 +740,16 @@ her exceeded legal ranges or was a divide by zero");
static
void
usage
(
char
*
progname
)
{
#ifdef OPENLINK_PATCHES
fprintf
(
stderr
,
"
\t
[-P portno] [-t tracetype] [-x opttype] [-bCEiLFNopQSs] [dbname]
\n
"
);
#else
fprintf
(
stderr
,
"Usage: %s [-B nbufs] [-d lvl] ] [-f plantype]
\t
[-m portno] [
\t
-o filename]
\n
"
,
progname
);
fprintf
(
stderr
,
"
\t
[-P portno] [-t tracetype] [-x opttype] [-bCEiLNopQSs] [dbname]
\n
"
);
#endif
fprintf
(
stderr
,
"
\t
[-P portno] [-t tracetype] [-x opttype] [-bCEiLFNopQSs] [dbname]
\n
"
);
fprintf
(
stderr
,
" b: consider bushy plan trees during optimization
\n
"
);
fprintf
(
stderr
,
" B: set number of buffers in buffer pool
\n
"
);
fprintf
(
stderr
,
" C: supress version info
\n
"
);
fprintf
(
stderr
,
" d: set debug level
\n
"
);
fprintf
(
stderr
,
" E: echo query before execution
\n
"
);
#ifdef OPENLINK_PATCHES
fprintf
(
stderr
,
" F: turn off fsync
\n
"
);
#endif
fprintf
(
stderr
,
" f: forbid plantype generation
\n
"
);
fprintf
(
stderr
,
" i: don't execute the query, just show the plan tree
\n
"
);
fprintf
(
stderr
,
" L: turn off locking
\n
"
);
...
...
@@ -857,11 +849,7 @@ PostgresMain(int argc, char *argv[])
hostName
=
hostbuf
;
}
#ifdef OPENLINK_PATCHES
while
((
flag
=
getopt
(
argc
,
argv
,
"B:bCd:Ef:iLm:MNo:P:pQSst:x:F"
))
!=
EOF
)
#else
while
((
flag
=
getopt
(
argc
,
argv
,
"B:bCd:Ef:iLm:MNo:P:pQSst:x:"
))
!=
EOF
)
#endif
switch
(
flag
)
{
case
'b'
:
...
...
@@ -908,7 +896,6 @@ PostgresMain(int argc, char *argv[])
flagE
=
1
;
break
;
#ifdef OPENLINK_PATCHES
case
'F'
:
/* --------------------
* turn off fsync
...
...
@@ -916,7 +903,6 @@ PostgresMain(int argc, char *argv[])
*/
fsyncOff
=
1
;
break
;
#endif
case
'f'
:
/* -----------------
...
...
@@ -1264,7 +1250,7 @@ PostgresMain(int argc, char *argv[])
*/
if
(
IsUnderPostmaster
==
false
)
{
puts
(
"
\n
POSTGRES backend interactive interface"
);
puts
(
"$Revision: 1.1
3 $ $Date: 1996/11/03 06:52:33
$"
);
puts
(
"$Revision: 1.1
4 $ $Date: 1996/11/04 04:53:31
$"
);
}
/* ----------------
...
...
src/backend/utils/adt/varchar.c
View file @
18bbad76
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.
3 1996/08/26 20:38:52 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.
4 1996/11/04 04:53:37 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -68,13 +68,8 @@ bpcharin(char *s, int dummy, int typlen)
typlen
=
len
+
4
;
}
#ifndef OPENLINK_PATCHES
if
(
len
<
1
||
len
>
4096
)
elog
(
WARN
,
"bpcharin: length of char() must be between 1 and 4096"
);
#else
if
(
len
>
4096
)
elog
(
WARN
,
"bpcharin: length of char() must be less than 4096"
);
#endif
result
=
(
char
*
)
palloc
(
typlen
);
*
(
int32
*
)
result
=
typlen
;
...
...
@@ -137,13 +132,8 @@ varcharin(char *s, int dummy, int typlen)
typlen
=
len
+
4
;
}
#ifndef OPENLINK_PATCHES
if
(
len
<
1
||
len
>
4096
)
elog
(
WARN
,
"bpcharin: length of char() must be between 1 and 4096"
);
#else
if
(
len
>
4096
)
elog
(
WARN
,
"varcharin: length of char() must be less than 4096"
);
#endif
result
=
(
char
*
)
palloc
(
typlen
);
*
(
int32
*
)
result
=
typlen
;
...
...
src/include/config.h
View file @
18bbad76
...
...
@@ -180,7 +180,6 @@
/* found in src/backend/utils/adt/arrayfuncs.c */
/* #define LOARRAY */
#define OPENLINK_PATCHES
/* This is the time, in seconds, at which a given backend server
* will wait on a lock before deciding to abort the transaction
...
...
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