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
c9c0e111
Commit
c9c0e111
authored
Nov 08, 1996
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More compile cleanups
parent
8006c6f5
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
59 additions
and
30 deletions
+59
-30
src/backend/commands/define.c
src/backend/commands/define.c
+2
-2
src/backend/executor/nodeGroup.c
src/backend/executor/nodeGroup.c
+2
-1
src/backend/executor/nodeUnique.c
src/backend/executor/nodeUnique.c
+2
-1
src/backend/parser/gram.y
src/backend/parser/gram.y
+4
-1
src/backend/parser/parser.c
src/backend/parser/parser.c
+10
-9
src/backend/parser/scan.l
src/backend/parser/scan.l
+2
-3
src/backend/storage/ipc/shmem.c
src/backend/storage/ipc/shmem.c
+2
-1
src/backend/utils/Gen_fmgrtab.sh
src/backend/utils/Gen_fmgrtab.sh
+5
-6
src/backend/utils/hash/dynahash.c
src/backend/utils/hash/dynahash.c
+1
-2
src/bin/psql/psql.c
src/bin/psql/psql.c
+2
-2
src/include/parser/gramparse.h
src/include/parser/gramparse.h
+24
-0
src/include/storage/smgr.h
src/include/storage/smgr.h
+3
-2
No files found.
src/backend/commands/define.c
View file @
c9c0e111
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.
8 1996/11/08 06:24:58 bryanh
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.
9 1996/11/08 20:45:16 momjian
Exp $
*
*
* DESCRIPTION
* DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the
* The "DefineFoo" routines take the parse tree and pick out the
...
@@ -137,7 +137,7 @@ compute_full_attributes(const List *parameters, int32 *byte_pct_p,
...
@@ -137,7 +137,7 @@ compute_full_attributes(const List *parameters, int32 *byte_pct_p,
if
(
sscanf
(
param
->
val
,
"%d"
,
perbyte_cpu_p
)
==
0
)
{
if
(
sscanf
(
param
->
val
,
"%d"
,
perbyte_cpu_p
)
==
0
)
{
int
count
;
int
count
;
char
*
ptr
;
char
*
ptr
;
for
(
ptr
=
param
->
val
;
*
ptr
!=
'\0'
;
ptr
++
)
for
(
count
=
0
,
ptr
=
param
->
val
;
*
ptr
!=
'\0'
;
ptr
++
)
if
(
*
ptr
==
'!'
)
count
++
;
if
(
*
ptr
==
'!'
)
count
++
;
*
perbyte_cpu_p
=
(
int
)
pow
(
10
.
0
,
(
double
)
count
);
*
perbyte_cpu_p
=
(
int
)
pow
(
10
.
0
,
(
double
)
count
);
}
}
...
...
src/backend/executor/nodeGroup.c
View file @
c9c0e111
...
@@ -13,11 +13,12 @@
...
@@ -13,11 +13,12 @@
* columns. (ie. tuples from the same group are consecutive)
* columns. (ie. tuples from the same group are consecutive)
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.
3 1996/11/08 05:56:08
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.
4 1996/11/08 20:45:20
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#include "postgres.h"
#include "postgres.h"
#include "fmgr.h"
#include "access/heapam.h"
#include "access/heapam.h"
#include "catalog/catalog.h"
#include "catalog/catalog.h"
...
...
src/backend/executor/nodeUnique.c
View file @
c9c0e111
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeUnique.c,v 1.
4 1996/11/08 05:56:19
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeUnique.c,v 1.
5 1996/11/08 20:45:23
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
*
*
*/
*/
#include "postgres.h"
#include "postgres.h"
#include "fmgr.h"
#include "executor/executor.h"
#include "executor/executor.h"
#include "executor/nodeUnique.h"
#include "executor/nodeUnique.h"
...
...
src/backend/parser/gram.y
View file @
c9c0e111
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.1
3 1996/10/30 02:01:54
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.1
4 1996/11/08 20:45:33
momjian Exp $
*
*
* HISTORY
* HISTORY
* AUTHOR DATE MAJOR EVENT
* AUTHOR DATE MAJOR EVENT
...
@@ -32,10 +32,13 @@
...
@@ -32,10 +32,13 @@
*/
*/
#include <string.h>
#include <string.h>
#include <ctype.h>
#include <ctype.h>
#include "postgres.h"
#include "postgres.h"
#include "nodes/parsenodes.h"
#include "nodes/parsenodes.h"
#include "parser/gramparse.h"
#include "parser/catalog_utils.h"
#include "parser/catalog_utils.h"
#include "parser/parse_query.h"
#include "parser/parse_query.h"
#include "storage/smgr.h"
#include "utils/acl.h"
#include "utils/acl.h"
#include "catalog/catname.h"
#include "catalog/catname.h"
#include "utils/elog.h"
#include "utils/elog.h"
...
...
src/backend/parser/parser.c
View file @
c9c0e111
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.
6 1996/11/08 05:57:33
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.
7 1996/11/08 20:45:42
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -19,22 +19,23 @@
...
@@ -19,22 +19,23 @@
#include "postgres.h"
#include "postgres.h"
#include "parser/catalog_utils.h"
#include "parser/catalog_utils.h"
#include "parser/gramparse.h"
#include "parser/parse_query.h"
#include "nodes/pg_list.h"
#include "nodes/pg_list.h"
#include "nodes/execnodes.h"
#include "nodes/makefuncs.h"
#include "nodes/primnodes.h"
#include "nodes/plannodes.h"
#include "nodes/relation.h"
#include "utils/builtins.h"
#include "utils/exc.h"
#include "utils/exc.h"
#include "utils/excid.h"
#include "utils/excid.h"
#include "utils/lsyscache.h"
#include "utils/palloc.h"
#include "utils/palloc.h"
#include "utils/syscache.h"
#include "utils/syscache.h"
#include "catalog/pg_aggregate.h"
#include "catalog/pg_aggregate.h"
#include "catalog/pg_type.h"
#include "catalog/pg_type.h"
#include "nodes/primnodes.h"
#include "nodes/plannodes.h"
#include "nodes/execnodes.h"
#include "nodes/relation.h"
#include "parser/parse_query.h"
#include "utils/builtins.h"
#include "utils/lsyscache.h"
#include "access/heapam.h"
#include "access/heapam.h"
#include "nodes/makefuncs.h"
#include "optimizer/clauses.h"
#include "optimizer/clauses.h"
void
init_io
();
/* from scan.l */
void
init_io
();
/* from scan.l */
...
...
src/backend/parser/scan.l
View file @
c9c0e111
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.
2 1996/07/23 02:23:34 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.
3 1996/11/08 20:45:45 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -27,12 +27,11 @@
...
@@ -27,12 +27,11 @@
#include "miscadmin.h"
#include "miscadmin.h"
#include "nodes/pg_list.h"
#include "nodes/pg_list.h"
#include "nodes/parsenodes.h"
#include "nodes/parsenodes.h"
#include "parser/gramparse.h"
#include "parser/keywords.h"
#include "parser/keywords.h"
#include "parser/scansup.h"
#include "parser/scansup.h"
#include "parser/sysfunc.h"
#include "parser/sysfunc.h"
#include "parse.h"
#include "parse.h"
#include "utils/elog.h"
#include "utils/palloc.h"
extern char *parseString;
extern char *parseString;
extern char *parseCh;
extern char *parseCh;
...
...
src/backend/storage/ipc/shmem.c
View file @
c9c0e111
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.
4 1996/11/08 05:58:36
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.
5 1996/11/08 20:45:51
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -64,6 +64,7 @@
...
@@ -64,6 +64,7 @@
#include "storage/ipc.h"
#include "storage/ipc.h"
#include "storage/shmem.h"
#include "storage/shmem.h"
#include "storage/spin.h"
#include "storage/spin.h"
#include "utils/dynahash.h"
#include "utils/hsearch.h"
#include "utils/hsearch.h"
/* shared memory global variables */
/* shared memory global variables */
...
...
src/backend/utils/Gen_fmgrtab.sh
View file @
c9c0e111
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.
6 1996/11/06 10:22:13 scrappy
Exp $
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.
7 1996/11/08 20:45:57 momjian
Exp $
#
#
# NOTES
# NOTES
# Passes any -D options on to cpp prior to generating the list
# Passes any -D options on to cpp prior to generating the list
...
@@ -81,7 +81,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
...
@@ -81,7 +81,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
*
$Id
: Gen_fmgrtab.sh,v 1.
6 1996/11/06 10:22:13 scrappy
Exp $
*
$Id
: Gen_fmgrtab.sh,v 1.
7 1996/11/08 20:45:57 momjian
Exp $
*
*
* NOTES
* NOTES
* ******************************
* ******************************
...
@@ -173,7 +173,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
...
@@ -173,7 +173,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
*
$Header
: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.
6 1996/11/06 10:22:13 scrappy
Exp $
*
$Header
: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.
7 1996/11/08 20:45:57 momjian
Exp $
*
*
* NOTES
* NOTES
*
*
...
@@ -194,8 +194,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
...
@@ -194,8 +194,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
#include <limits.h>
#include <limits.h>
#else
#else
# if defined(BSD44_derived) ||
\
# if defined(BSD44_derived) ||
\
defined(bsdi) ||
\
defined(bsdi)
defined(bsdi_2_1)
# include <machine/limits.h>
# include <machine/limits.h>
# define MAXINT INT_MAX
# define MAXINT INT_MAX
# else
# else
...
@@ -226,7 +225,7 @@ static int fmgr_nbuiltins = (sizeof(fmgr_builtins) / sizeof(FmgrCall)) - 1;
...
@@ -226,7 +225,7 @@ static int fmgr_nbuiltins = (sizeof(fmgr_builtins) / sizeof(FmgrCall)) - 1;
FmgrCall *fmgr_isbuiltin(Oid id)
FmgrCall *fmgr_isbuiltin(Oid id)
{
{
register int i;
register int i
= 0
;
int low = 0;
int low = 0;
int high = fmgr_nbuiltins;
int high = fmgr_nbuiltins;
...
...
src/backend/utils/hash/dynahash.c
View file @
c9c0e111
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/hash/dynahash.c,v 1.
4 1996/11/08 06:00:23
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/hash/dynahash.c,v 1.
5 1996/11/08 20:46:07
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -70,7 +70,6 @@ static uint32 call_hash(HTAB *hashp, char *k, int len);
...
@@ -70,7 +70,6 @@ static uint32 call_hash(HTAB *hashp, char *k, int len);
static
SEG_OFFSET
seg_alloc
(
HTAB
*
hashp
);
static
SEG_OFFSET
seg_alloc
(
HTAB
*
hashp
);
static
int
bucket_alloc
(
HTAB
*
hashp
);
static
int
bucket_alloc
(
HTAB
*
hashp
);
static
int
dir_realloc
(
HTAB
*
hashp
);
static
int
dir_realloc
(
HTAB
*
hashp
);
static
int
my_log2
(
long
num
);
typedef
long
*
((
*
dhalloc_ptr
)());
typedef
long
*
((
*
dhalloc_ptr
)());
...
...
src/bin/psql/psql.c
View file @
c9c0e111
*-------------------------------------------------------------------------
/
*-------------------------------------------------------------------------
*
*
* psql.c--
* psql.c--
* an interactive front-end to postgres95
* an interactive front-end to postgres95
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
*
$
Header
:
/
cvsroot
/
pgsql
/
src
/
bin
/
psql
/
Attic
/
psql
.
c
,
v
1
.
2
5
1996
/
11
/
08
06
:
01
:
33
momjian
Exp
$
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.2
6 1996/11/08 20:46:19
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
...
src/include/parser/gramparse.h
0 → 100644
View file @
c9c0e111
/*-------------------------------------------------------------------------
*
* gramparse.h--
* scanner support routines. used by both the bootstrap lexer
* as well as the normal lexer
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: gramparse.h,v 1.1 1996/11/08 20:46:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef GRAMPARSE_H
#define GRAMPARSE_H
/* include once only */
/* from scan.l */
extern
void
init_io
();
/* from gram.y */
extern
void
parser_init
(
Oid
*
typev
,
int
nargs
);
extern
int
yyparse
();
#endif
/* GRAMPARSE_H */
src/include/storage/smgr.h
View file @
c9c0e111
...
@@ -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: smgr.h,v 1.
3 1996/11/08 06:02:22
momjian Exp $
* $Id: smgr.h,v 1.
4 1996/11/08 20:46:33
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -83,6 +83,7 @@ extern int mmabort(void);
...
@@ -83,6 +83,7 @@ extern int mmabort(void);
extern
int
MMShmemSize
(
void
);
extern
int
MMShmemSize
(
void
);
/* smgrtype.c */
/* smgrtype.c */
char
*
smgrout
(
int2
i
);
extern
char
*
smgrout
(
int2
i
);
extern
int2
smgrin
(
char
*
s
);
#endif
/* SMGR_H */
#endif
/* SMGR_H */
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