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
759fba48
Commit
759fba48
authored
Jan 16, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Included all yacc and lex files into the distribution.
parent
a4e1304e
Changes
19
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
823 additions
and
555 deletions
+823
-555
doc/src/sgml/install.sgml
doc/src/sgml/install.sgml
+0
-61
src/GNUmakefile.in
src/GNUmakefile.in
+1
-16
src/backend/bootstrap/Makefile
src/backend/bootstrap/Makefile
+2
-2
src/backend/catalog/aclchk.c
src/backend/catalog/aclchk.c
+3
-3
src/backend/catalog/catalog.c
src/backend/catalog/catalog.c
+4
-4
src/backend/commands/command.c
src/backend/commands/command.c
+238
-18
src/backend/parser/gram.y
src/backend/parser/gram.y
+71
-34
src/backend/tcop/utility.c
src/backend/tcop/utility.c
+39
-19
src/bin/psql/mainloop.c
src/bin/psql/mainloop.c
+3
-2
src/configure
src/configure
+377
-363
src/configure.in
src/configure.in
+14
-0
src/include/catalog/catalog.h
src/include/catalog/catalog.h
+4
-4
src/include/commands/command.h
src/include/commands/command.h
+22
-5
src/include/nodes/nodes.h
src/include/nodes/nodes.h
+2
-2
src/include/nodes/parsenodes.h
src/include/nodes/parsenodes.h
+11
-7
src/include/utils/acl.h
src/include/utils/acl.h
+2
-2
src/pl/plpgsql/src/Makefile.in
src/pl/plpgsql/src/Makefile.in
+2
-2
src/test/regress/run_check.sh
src/test/regress/run_check.sh
+13
-1
src/tools/release_prep
src/tools/release_prep
+15
-10
No files found.
doc/src/sgml/install.sgml
View file @
759fba48
...
...
@@ -176,67 +176,6 @@ Ftp file
</Para>
</Step>
<Step Performance="required">
<Para>
Some platforms use <application>flex</application>.
If your system uses <application>flex</application> then make sure
you have a good version. To check, type
<programlisting>
$ flex --version
</programlisting>
</Para>
<Para>
If the <application>flex</application> command is not found then you probably do not need it.
If the version is 2.5.2 or 2.5.4 or greater then you are okay. If it
is 2.5.3 or before 2.5.2 then you will have to upgrade <application>flex</application>. You may
get it at
<ulink url="ftp://prep.ai.mit.edu/pub/gnu/flex-2.5.4.tar.gz">ftp://prep.ai.mit.edu/pub/gnu/flex-2.5.4.tar.gz</ulink>.
</Para>
<Para>
If you need <application>flex</application> and don't have it or have the wrong version, then
you will be told so when you attempt to compile the program. Feel
free to skip this step if you aren't sure you need it. If you do
need it then you will be told to install/upgrade <application>flex</application> when you try to
compile <productname>Postgres</productname>.
</Para>
<Para>
You may want to do the entire <application>flex</application> installation from
the root account, though that is not absolutely necessary.
Assuming that you want the installation to place files in the usual default
areas, type the following:
<ProgramListing>
$ su -
$ cd /usr/local/src
ftp prep.ai.mit.edu
ftp> cd /pub/gnu/
ftp> binary
ftp> get flex-2.5.4.tar.gz
ftp> quit
$ gunzip -c flex-2.5.4.tar.gz | tar xvf -
$ cd flex-2.5.4
$ configure --prefix=/usr
$ gmake
$ gmake check
# You must be root when typing the next line:
$ gmake install
$ cd /usr/local/src
$ rm -rf flex-2.5.4
</ProgramListing>
</Para>
<Para>
This will update files <filename>/usr/man/man1/flex.1</filename>,
<filename>/usr/bin/flex</filename>,
<filename>/usr/lib/libfl.a</filename>,
<filename>/usr/include/FlexLexer.h</filename> and will add a link
<filename>/usr/bin/flex++</filename> which points to flex.
</Para>
</Step>
<Step Performance="required">
<Para>
If you are not upgrading an existing system then skip to
...
...
src/GNUmakefile.in
View file @
759fba48
...
...
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.4
7 2000/01/09 07:53:52 tgl
Exp $
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.4
8 2000/01/16 20:04:51 petere
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -24,7 +24,6 @@ ETAGS = @etags@
XARGS = @xargs@
all:
$(MAKE) lexverify
$(MAKE) -C utils all
$(MAKE) -C backend all
$(MAKE) -C interfaces all
...
...
@@ -35,7 +34,6 @@ all:
fi
install:
$(MAKE) lexverify
$(MAKE) -C utils install
$(MAKE) -C backend install
$(MAKE) -C interfaces install
...
...
@@ -43,19 +41,7 @@ install:
$(MAKE) -C pl install
cat ../register.txt
lexverify:
$(MAKE) -C lextest all
@if test ! -f lextest/lextest; then \
echo "";\
echo "You have a buggy version of flex. Read INSTALL and search for flex for a fix.";\
echo "";\
false;\
else \
true;\
fi
clean:
$(MAKE) -C lextest clean
$(MAKE) -C utils clean
$(MAKE) -C backend clean
$(MAKE) -C interfaces clean
...
...
@@ -108,7 +94,6 @@ distclean: clean
test/regress/GNUmakefile
.DEFAULT:
$(MAKE) -C lextest $@
$(MAKE) -C utils $@
$(MAKE) -C backend $@
$(MAKE) -C interfaces $@
...
...
src/backend/bootstrap/Makefile
View file @
759fba48
...
...
@@ -4,7 +4,7 @@
# Makefile for the bootstrap module
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.
19 1999/12/16 16:52:46 momjian
Exp $
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.
20 2000/01/16 20:04:53 petere
Exp $
#
#
# We must build bootparse.c and bootscanner.c with yacc and lex and sed,
...
...
@@ -68,7 +68,7 @@ bootscanner.c: bootscanner.l
rm
-f
lex.yy.c sedfile
clean
:
rm
-f
SUBSYS.o
$(OBJS)
bootparse.c bootstrap_tokens.h bootscanner.c
rm
-f
SUBSYS.o
$(OBJS)
# And the garbage that might have been left behind by partial build:
rm
-f
y.tab.h
y.tab.c
y.output
lex.yy.c
...
...
src/backend/catalog/aclchk.c
View file @
759fba48
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.3
4 2000/01/15 02:59:28
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.3
5 2000/01/16 20:04:54
petere Exp $
*
* NOTES
* See acl.h.
...
...
@@ -444,8 +444,8 @@ pg_aclcheck(char *relname, char *usename, AclMode mode)
}
int32
pg_ownercheck
(
char
*
usename
,
char
*
value
,
pg_ownercheck
(
c
onst
c
har
*
usename
,
c
onst
c
har
*
value
,
int
cacheid
)
{
HeapTuple
tuple
;
...
...
src/backend/catalog/catalog.c
View file @
759fba48
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/catalog.c,v 1.2
7 2000/01/15 02:59:28
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/catalog.c,v 1.2
8 2000/01/16 20:04:54
petere Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -26,7 +26,7 @@
* Perhaps this should be in-line code in relopen().
*/
char
*
relpath
(
char
*
relname
)
relpath
(
c
onst
c
har
*
relname
)
{
char
*
path
;
size_t
bufsize
=
0
;
...
...
@@ -52,7 +52,7 @@ relpath(char *relname)
* XXX this is way bogus. -- pma
*/
bool
IsSystemRelationName
(
char
*
relname
)
IsSystemRelationName
(
c
onst
c
har
*
relname
)
{
if
(
relname
[
0
]
&&
relname
[
1
]
&&
relname
[
2
])
return
(
relname
[
0
]
==
'p'
&&
...
...
@@ -67,7 +67,7 @@ IsSystemRelationName(char *relname)
* True iff name is the name of a shared system catalog relation.
*/
bool
IsSharedSystemRelationName
(
char
*
relname
)
IsSharedSystemRelationName
(
c
onst
c
har
*
relname
)
{
int
i
;
...
...
src/backend/commands/command.c
View file @
759fba48
This diff is collapsed.
Click to expand it.
src/backend/parser/gram.y
View file @
759fba48
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.12
6 2000/01/15 02:59:32
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.12
7 2000/01/16 20:04:55
petere Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -114,7 +114,7 @@ static Node *doNegate(Node *n);
}
%type <node> stmt,
A
ddAttr
Stmt, ClosePortalStmt,
A
lterTable
Stmt, ClosePortalStmt,
CopyStmt, CreateStmt, CreateAsStmt, CreateSeqStmt, DefineStmt, DropStmt,
TruncateStmt, CommentStmt,
ExtendStmt, FetchStmt, GrantStmt, CreateTrigStmt, DropTrigStmt,
...
...
@@ -130,6 +130,9 @@ static Node *doNegate(Node *n);
RuleActionStmtOrEmpty, ConstraintsSetStmt,
CreateGroupStmt, AlterGroupStmt, DropGroupStmt
%type <node> alter_column_action
%type <ival> drop_behavior
%type <str> createdb_opt_location
%type <ival> createdb_opt_encoding
...
...
@@ -210,7 +213,7 @@ static Node *doNegate(Node *n);
%type <astmt> insert_rest
%type <node> OptTableElement, ConstraintElem
%type <node> columnDef
, alter_clause
%type <node> columnDef
%type <defelt> def_elem
%type <node> def_arg, columnElem, where_clause,
a_expr, a_expr_or_null, b_expr, com_expr, AexprConst,
...
...
@@ -391,7 +394,7 @@ stmtmulti: stmtmulti ';' stmt
}
;
stmt :
AddAttr
Stmt
stmt :
AlterTable
Stmt
| AlterGroupStmt
| AlterUserStmt
| ClosePortalStmt
...
...
@@ -797,41 +800,75 @@ constraints_set_mode: DEFERRED
/*****************************************************************************
*
* QUERY :
* addattr ( attr1 = type1 .. attrn = typen ) to <relname> [*]
* ALTER TABLE variations
*
*****************************************************************************/
AddAttrStmt: ALTER TABLE relation_name opt_inh_star alter_clause
AlterTableStmt:
/* ALTER TABLE <name> ADD [COLUMN] <coldef> */
ALTER TABLE relation_name opt_inh_star ADD opt_column columnDef
{
AddAttrStmt *n = makeNode(AddAttrStmt);
AlterTableStmt *n = makeNode(AlterTableStmt);
n->subtype = 'A';
n->relname = $3;
n->inh = $4;
n->colDef = $5
;
n->def = $7
;
$$ = (Node *)n;
}
;
alter_clause: ADD opt_column columnDef
/* ALTER TABLE <name> ALTER [COLUMN] <colname> {SET DEFAULT <expr>|DROP DEFAULT} */
| ALTER TABLE relation_name opt_inh_star ALTER opt_column ColId alter_column_action
{
$$ = $3;
AlterTableStmt *n = makeNode(AlterTableStmt);
n->subtype = 'T';
n->relname = $3;
n->inh = $4;
n->name = $7;
n->def = $8;
$$ = (Node *)n;
}
/* ALTER TABLE <name> DROP [COLUMN] <name> {RESTRICT|CASCADE} */
| ALTER TABLE relation_name opt_inh_star DROP opt_column ColId drop_behavior
{
AlterTableStmt *n = makeNode(AlterTableStmt);
n->subtype = 'D';
n->relname = $3;
n->inh = $4;
n->name = $7;
n->behavior = $8;
$$ = (Node *)n;
}
| ADD '(' OptTableElementList ')'
/* ALTER TABLE <name> ADD CONSTRAINT ... */
| ALTER TABLE relation_name opt_inh_star ADD TableConstraint
{
if (length($3) != 1)
elog(ERROR,"ALTER TABLE/ADD() allows one column only");
$$ = (Node *) lfirst($3);
AlterTableStmt *n = makeNode(AlterTableStmt);
n->subtype = 'A';
n->relname = $3;
n->inh = $4;
n->def = $6;
$$ = (Node *)n;
}
| DROP opt_column ColId
{ elog(ERROR,"ALTER TABLE/DROP COLUMN not yet implemented"); }
| ALTER opt_column ColId SET DEFAULT a_expr
{ elog(ERROR,"ALTER TABLE/ALTER COLUMN/SET DEFAULT not yet implemented"); }
| ALTER opt_column ColId DROP DEFAULT
{ elog(ERROR,"ALTER TABLE/ALTER COLUMN/DROP DEFAULT not yet implemented"); }
| ADD ConstraintElem
{ elog(ERROR,"ALTER TABLE/ADD CONSTRAINT not yet implemented"); }
/* ALTER TABLE <name> DROP CONSTRAINT <name> {RESTRICT|CASCADE} */
| ALTER TABLE relation_name opt_inh_star DROP CONSTRAINT name drop_behavior
{
AlterTableStmt *n = makeNode(AlterTableStmt);
n->relname = $3;
n->inh = $4;
n->name = $7;
n->behavior = $8;
$$ = (Node *)n;
}
;
alter_column_action:
SET DEFAULT a_expr_or_null { $$ = $3; }
| DROP DEFAULT { $$ = NULL; }
;
drop_behavior: CASCADE { $$ = CASCADE; }
| RESTRICT { $$ = RESTRICT; }
;
/*****************************************************************************
*
...
...
src/backend/tcop/utility.c
View file @
759fba48
...
...
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.
79 2000/01/15 18:30:30
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.
80 2000/01/16 20:04:56
petere Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -270,24 +270,6 @@ ProcessUtility(Node *parsetree,
}
break
;
case
T_AddAttrStmt
:
{
AddAttrStmt
*
stmt
=
(
AddAttrStmt
*
)
parsetree
;
PS_SET_STATUS
(
commandTag
=
"ADD"
);
CHECK_IF_ABORTED
();
/*
* owner checking done in PerformAddAttribute (now
* recursive)
*/
PerformAddAttribute
(
stmt
->
relname
,
userName
,
stmt
->
inh
,
(
ColumnDef
*
)
stmt
->
colDef
);
}
break
;
/*
* schema
*/
...
...
@@ -346,6 +328,44 @@ ProcessUtility(Node *parsetree,
}
break
;
/* various Alter Table forms */
case
T_AlterTableStmt
:
{
AlterTableStmt
*
stmt
=
(
AlterTableStmt
*
)
parsetree
;
PS_SET_STATUS
(
commandTag
=
"ALTER TABLE"
);
CHECK_IF_ABORTED
();
/*
* Some or all of these functions are recursive to cover inherited things,
* so permission checks are done there.
*/
switch
(
stmt
->
subtype
)
{
case
'A'
:
/* ADD COLUMN */
AlterTableAddColumn
(
stmt
->
relname
,
stmt
->
inh
,
(
ColumnDef
*
)
stmt
->
def
);
break
;
case
'T'
:
/* ALTER COLUMN */
AlterTableAlterColumn
(
stmt
->
relname
,
stmt
->
inh
,
stmt
->
name
,
stmt
->
def
);
break
;
case
'D'
:
/* ALTER DROP */
AlterTableDropColumn
(
stmt
->
relname
,
stmt
->
inh
,
stmt
->
name
,
stmt
->
behavior
);
break
;
case
'C'
:
/* ADD CONSTRAINT */
AlterTableAddConstraint
(
stmt
->
relname
,
stmt
->
inh
,
stmt
->
def
);
break
;
case
'X'
:
/* DROP CONSTRAINT */
AlterTableDropConstraint
(
stmt
->
relname
,
stmt
->
inh
,
stmt
->
name
,
stmt
->
behavior
);
break
;
default:
/* oops */
elog
(
ERROR
,
"T_AlterTableStmt: unknown subtype"
);
break
;
}
}
break
;
case
T_ChangeACLStmt
:
{
ChangeACLStmt
*
stmt
=
(
ChangeACLStmt
*
)
parsetree
;
...
...
src/bin/psql/mainloop.c
View file @
759fba48
...
...
@@ -268,8 +268,9 @@ MainLoop(FILE *source, int encoding)
/* colon -> substitute variable */
/* we need to be on the watch for the '::' operator */
else
if
(
line
[
i
]
==
':'
&&
!
was_bslash
&&
strspn
(
line
+
i
+
thislen
,
VALID_VARIABLE_CHARS
)
>
0
else
if
(
line
[
i
]
==
':'
&&
!
was_bslash
&&
strspn
(
line
+
i
+
thislen
,
VALID_VARIABLE_CHARS
)
>
0
&&
!
(
prevlen
>
0
&&
line
[
i
-
prevlen
]
==
':'
)
)
{
size_t
in_length
,
...
...
src/configure
View file @
759fba48
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/configure.in
View file @
759fba48
...
...
@@ -545,6 +545,20 @@ AC_SUBST(DASH_N)
AC_SUBST(BACKSLASH_C)
AC_PROG_LEX
if test "$LEX" = "flex"; then
$LEX --version 2> /dev/null | grep -s '2\.5\.3' >& /dev/null
if test $? -eq 0 ; then
AC_MSG_WARN([
***
You have flex version 2.5.3, which is broken. Get version 2.5.4 or
a different lex.
(If you are using the official distribution of PostgreSQL then you
do not need to worry about this because the lexer files are
pre-generated. However, other software using flex is likely to be
broken as well.)
***])
fi
fi
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
...
...
src/include/catalog/catalog.h
View file @
759fba48
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: catalog.h,v 1.
8 1999/07/15 23:03:41 momjian
Exp $
* $Id: catalog.h,v 1.
9 2000/01/16 20:04:57 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,9 +15,9 @@
#include "access/tupdesc.h"
extern
char
*
relpath
(
char
*
relname
);
extern
bool
IsSystemRelationName
(
char
*
relname
);
extern
bool
IsSharedSystemRelationName
(
char
*
relname
);
extern
char
*
relpath
(
c
onst
c
har
*
relname
);
extern
bool
IsSystemRelationName
(
c
onst
c
har
*
relname
);
extern
bool
IsSharedSystemRelationName
(
c
onst
c
har
*
relname
);
extern
Oid
newoid
(
void
);
extern
void
fillatt
(
TupleDesc
att
);
...
...
src/include/commands/command.h
View file @
759fba48
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: command.h,v 1.1
5 1999/07/15 23:03:44 momjian
Exp $
* $Id: command.h,v 1.1
6 2000/01/16 20:04:58 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -38,12 +38,29 @@ extern void PerformPortalClose(char *name, CommandDest dest);
extern
void
PortalCleanup
(
Portal
portal
);
/*
* PerformAddAttribute
* Performs the POSTQUEL function ADD.
* ALTER TABLE variants
*/
extern
void
PerformAddAttribute
(
char
*
relationName
,
char
*
user
Name
,
extern
void
AlterTableAddColumn
(
const
char
*
relation
Name
,
bool
inh
,
ColumnDef
*
colDef
);
extern
void
AlterTableAlterColumn
(
const
char
*
relationName
,
bool
inh
,
const
char
*
colName
,
Node
*
newDefault
);
extern
void
AlterTableDropColumn
(
const
char
*
relationName
,
bool
inh
,
const
char
*
colName
,
int
behavior
);
extern
void
AlterTableAddConstraint
(
const
char
*
relationName
,
bool
inh
,
Node
*
newConstraint
);
extern
void
AlterTableDropConstraint
(
const
char
*
relationName
,
bool
inh
,
const
char
*
constrName
,
int
behavior
);
/*
* LOCK
*/
extern
void
LockTableCommand
(
LockStmt
*
lockstmt
);
#endif
/* COMMAND_H */
src/include/nodes/nodes.h
View file @
759fba48
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodes.h,v 1.6
0 2000/01/09 00:26:42 tgl
Exp $
* $Id: nodes.h,v 1.6
1 2000/01/16 20:04:58 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -145,7 +145,7 @@ typedef enum NodeTag
T_DeleteStmt
,
T_UpdateStmt
,
T_SelectStmt
,
T_AddAttr
Stmt
,
T_AlterTable
Stmt
,
T_AggregateStmt
,
T_ChangeACLStmt
,
T_ClosePortalStmt
,
...
...
src/include/nodes/parsenodes.h
View file @
759fba48
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parsenodes.h,v 1.9
3 2000/01/14 22:11:3
8 petere Exp $
* $Id: parsenodes.h,v 1.9
4 2000/01/16 20:04:5
8 petere Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -84,16 +84,20 @@ typedef struct Query
*****************************************************************************/
/* ----------------------
*
Add Column Statement
*
Alter Table
* ----------------------
*/
typedef
struct
AddAttrStmt
/* The fields are used in different ways by the different variants of this command */
typedef
struct
AlterTableStmt
{
NodeTag
type
;
char
*
relname
;
/* the relation to add attr */
bool
inh
;
/* add recursively to children? */
Node
*
colDef
;
/* the attribute definition */
}
AddAttrStmt
;
char
subtype
;
/* A = add, T = alter, D = drop, C = add constr, X = drop constr */
char
*
relname
;
/* table to work on */
bool
inh
;
/* recursively on children? */
char
*
name
;
/* column or constraint name to act on */
Node
*
def
;
/* definition of new column or constraint */
int
behavior
;
/* CASCADE or RESTRICT drop behavior */
}
AlterTableStmt
;
/* ----------------------
* Change ACL Statement
...
...
src/include/utils/acl.h
View file @
759fba48
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: acl.h,v 1.2
2 1999/07/15 23:04:19 momjian
Exp $
* $Id: acl.h,v 1.2
3 2000/01/16 20:04:59 petere
Exp $
*
* NOTES
* For backward-compatability purposes we have to allow there
...
...
@@ -168,7 +168,7 @@ extern AclId get_grosysid(char *groname);
extern
char
*
get_groname
(
AclId
grosysid
);
extern
int32
pg_aclcheck
(
char
*
relname
,
char
*
usename
,
AclMode
mode
);
extern
int32
pg_ownercheck
(
c
har
*
usename
,
char
*
value
,
int
cacheid
);
extern
int32
pg_ownercheck
(
c
onst
char
*
usename
,
const
char
*
value
,
int
cacheid
);
extern
int32
pg_func_ownercheck
(
char
*
usename
,
char
*
funcname
,
int
nargs
,
Oid
*
arglist
);
extern
int32
pg_aggr_ownercheck
(
char
*
usename
,
char
*
aggname
,
...
...
src/pl/plpgsql/src/Makefile.in
View file @
759fba48
...
...
@@ -4,7 +4,7 @@
# Makefile for the plpgsql shared object
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.1
8 1999/10/13 11:38:40 momjian
Exp $
# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.1
9 2000/01/16 20:04:59 petere
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -79,6 +79,6 @@ pl_scan.c: scan.l
clean
:
clean-shlib
rm
-f
lib
$(NAME)
.a
rm
-f
*
.o
pl.tab.h pl_gram.c pl_scan.c
rm
-f
*
.o
# And the garbage that might have been left behind by partial build:
rm
-f
y.tab.c
y.tab.h
lex.yy.c
src/test/regress/run_check.sh
View file @
759fba48
#!/bin/sh
#
# $Header: /cvsroot/pgsql/src/test/regress/Attic/run_check.sh,v 1.
6 2000/01/09 20:54:36 tgl
Exp $
# $Header: /cvsroot/pgsql/src/test/regress/Attic/run_check.sh,v 1.
7 2000/01/16 20:05:00 petere
Exp $
# ----------
# Check call syntax
...
...
@@ -37,6 +37,16 @@ export LOGDIR
export
TIMDIR
export
PGPORT
# Needed by psql and pg_encoding (if you run multibyte).
# I hope this covers all platforms with shared libraries,
# otherwise feel free to cover your platform here as well.
if
[
"
$LD_LIBRARY_PATH
"
]
;
then
old_LD_LIBRARY_PATH
=
"
$LD_LIBRARY_PATH
"
LD_LIBRARY_PATH
=
"
$LIBDIR
:
$LD_LIBARY_PATH
"
else
LD_LIBRARY_PATH
=
"
$LIBDIR
"
fi
export
LD_LIBRARY_PATH
# ----------
# Get the commandline parameters
...
...
@@ -111,6 +121,7 @@ trap ' echo ""
echo ""
fi
echo ""
LD_LIBRARY_PATH="$old_LD_LIBRARY_PATH"
exit 1
'
2 15
...
...
@@ -434,5 +445,6 @@ done | tee run_check.out 2>&1
echo
"=============== Terminating regression postmaster ================"
kill
-15
$PMPID
LD_LIBRARY_PATH
=
"
$old_LD_LIBRARY_PATH
"
exit
0
src/tools/release_prep
View file @
759fba48
...
...
@@ -31,34 +31,39 @@ cd src
./configure
# Generate parser's
gram and lex files.
# Generate parser's
yacc and lex files
cd
backend/parser
rm
-f
gram.c parse.h scan.c
$MAKE
gram.c parse.h scan.c
cd
../..
# Generate bootstrap parser's yacc and lex files
cd
backend/bootstrap
rm
-f
bootstrap_tokens.h bootparse.c bootscanner.c
$MAKE
bootstrap_tokens.h bootparse.c bootscanner.c
cd
../..
# Generate ecpg preprocessor's
gram and lex files.
# Generate ecpg preprocessor's
yacc and lex files
cd
interfaces/ecpg/preproc
rm
-f
preproc.c preproc.h pgc.c
$MAKE
preproc.c preproc.h pgc.c
cd
../../..
# Generate plpgsql's yacc and lex files
cd
pl/plpgsql
rm
-rf
pl_scan.c pl.tab.h pl_gram.c
$MAKE
pl_scan.c pl.tab.h pl_gram.c
cd
../..
# Generate psql's help on SQL command from the SGML docs
cd
bin/psql
rm
-f
sql_help.h
$MAKE
sql_help.h
cd
../..
# Clean up
...
...
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