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
4b71943b
Commit
4b71943b
authored
Nov 04, 2000
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make PROCEDURAL optional in CREATE/DROP LANGUAGE.
parent
90c63942
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
11 deletions
+20
-11
doc/src/sgml/ref/create_language.sgml
doc/src/sgml/ref/create_language.sgml
+2
-2
doc/src/sgml/ref/drop_language.sgml
doc/src/sgml/ref/drop_language.sgml
+2
-2
src/backend/parser/gram.y
src/backend/parser/gram.y
+9
-4
src/tools/pgcvslog
src/tools/pgcvslog
+7
-3
No files found.
doc/src/sgml/ref/create_language.sgml
View file @
4b71943b
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_language.sgml,v 1.1
2 2000/10/05 19:48:17
momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_language.sgml,v 1.1
3 2000/11/04 21:04:54
momjian Exp $
Postgres documentation
Postgres documentation
-->
-->
...
@@ -23,7 +23,7 @@ Postgres documentation
...
@@ -23,7 +23,7 @@ Postgres documentation
<date>1999-07-20</date>
<date>1999-07-20</date>
</refsynopsisdivinfo>
</refsynopsisdivinfo>
<synopsis>
<synopsis>
CREATE [ TRUSTED ]
PROCEDURAL
LANGUAGE '<replaceable class="parameter">langname</replaceable>'
CREATE [ TRUSTED ]
[ PROCEDURAL ]
LANGUAGE '<replaceable class="parameter">langname</replaceable>'
HANDLER <replaceable class="parameter">call_handler</replaceable>
HANDLER <replaceable class="parameter">call_handler</replaceable>
LANCOMPILER '<replaceable class="parameter">comment</replaceable>'
LANCOMPILER '<replaceable class="parameter">comment</replaceable>'
</synopsis>
</synopsis>
...
...
doc/src/sgml/ref/drop_language.sgml
View file @
4b71943b
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.
7 1999/07/22 15:09:10 thomas
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_language.sgml,v 1.
8 2000/11/04 21:04:54 momjian
Exp $
Postgres documentation
Postgres documentation
-->
-->
...
@@ -23,7 +23,7 @@ Postgres documentation
...
@@ -23,7 +23,7 @@ Postgres documentation
<date>1999-07-20</date>
<date>1999-07-20</date>
</refsynopsisdivinfo>
</refsynopsisdivinfo>
<synopsis>
<synopsis>
DROP
PROCEDURAL
LANGUAGE '<replaceable class="PARAMETER">name</replaceable>'
DROP
[ PROCEDURAL ]
LANGUAGE '<replaceable class="PARAMETER">name</replaceable>'
</synopsis>
</synopsis>
<refsect2 id="R2-SQL-DROPLANGUAGE-1">
<refsect2 id="R2-SQL-DROPLANGUAGE-1">
...
...
src/backend/parser/gram.y
View file @
4b71943b
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.20
2 2000/10/31 10:22:10 petere
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.20
3 2000/11/04 21:04:55 momjian
Exp $
*
*
* HISTORY
* HISTORY
* AUTHOR DATE MAJOR EVENT
* AUTHOR DATE MAJOR EVENT
...
@@ -154,7 +154,7 @@ static void doNegateFloat(Value *v);
...
@@ -154,7 +154,7 @@ static void doNegateFloat(Value *v);
%type <str> user_valid_clause
%type <str> user_valid_clause
%type <list> user_list, user_group_clause, users_in_new_group_clause
%type <list> user_list, user_group_clause, users_in_new_group_clause
%type <boolean> TriggerActionTime, TriggerForSpec, PLangTrusted
%type <boolean> TriggerActionTime, TriggerForSpec, PLangTrusted
, opt_procedural
%type <str> OptConstrFromTable
%type <str> OptConstrFromTable
...
@@ -1654,7 +1654,7 @@ IntegerOnly: Iconst
...
@@ -1654,7 +1654,7 @@ IntegerOnly: Iconst
*
*
*****************************************************************************/
*****************************************************************************/
CreatePLangStmt: CREATE PLangTrusted
PROCEDURAL
LANGUAGE Sconst
CreatePLangStmt: CREATE PLangTrusted
opt_procedural
LANGUAGE Sconst
HANDLER def_name LANCOMPILER Sconst
HANDLER def_name LANCOMPILER Sconst
{
{
CreatePLangStmt *n = makeNode(CreatePLangStmt);
CreatePLangStmt *n = makeNode(CreatePLangStmt);
...
@@ -1668,8 +1668,9 @@ CreatePLangStmt: CREATE PLangTrusted PROCEDURAL LANGUAGE Sconst
...
@@ -1668,8 +1668,9 @@ CreatePLangStmt: CREATE PLangTrusted PROCEDURAL LANGUAGE Sconst
PLangTrusted: TRUSTED { $$ = TRUE; }
PLangTrusted: TRUSTED { $$ = TRUE; }
| /*EMPTY*/ { $$ = FALSE; }
| /*EMPTY*/ { $$ = FALSE; }
;
DropPLangStmt: DROP
PROCEDURAL
LANGUAGE Sconst
DropPLangStmt: DROP
opt_procedural
LANGUAGE Sconst
{
{
DropPLangStmt *n = makeNode(DropPLangStmt);
DropPLangStmt *n = makeNode(DropPLangStmt);
n->plname = $4;
n->plname = $4;
...
@@ -1677,6 +1678,10 @@ DropPLangStmt: DROP PROCEDURAL LANGUAGE Sconst
...
@@ -1677,6 +1678,10 @@ DropPLangStmt: DROP PROCEDURAL LANGUAGE Sconst
}
}
;
;
opt_procedural: PROCEDURAL { $$ = TRUE; }
| /*EMPTY*/ { $$ = TRUE; }
;
/*****************************************************************************
/*****************************************************************************
*
*
* QUERIES :
* QUERIES :
...
...
src/tools/pgcvslog
View file @
4b71943b
...
@@ -8,8 +8,10 @@
...
@@ -8,8 +8,10 @@
# cvs log -d '>1999-06-14 00:00:00 GMT' . > log
# cvs log -d '>1999-06-14 00:00:00 GMT' . > log
#
#
# pre and post-branch logs:
# pre and post-branch logs:
# find . -name CVS -type d -exec touch '{}/Entries.Static' \;
# cvs log -d'2000-05-08 00:00:00 GMT<2000-05-29 00:00:00 GMT'
# cvs log -d'2000-05-08 00:00:00 GMT<2000-05-29 00:00:00 GMT'
# cvs log -d'>2000-05-29 00:00:00 GMT' -rREL7_0_PATCHES
# cvs log -d'>2000-05-29 00:00:00 GMT' -rREL7_0_PATCHES
# find . -name CVS -type d -exec rm '{}/Entries.Static' \;
#
#
cat "$@" |
cat "$@" |
...
@@ -18,7 +20,7 @@ cat "$@" |
...
@@ -18,7 +20,7 @@ cat "$@" |
# we don't print anything from the -- or == line and the date:
# we don't print anything from the -- or == line and the date:
awk '
awk '
$0 ~ /^Working file:/ {workingfile =
$0
}
$0 ~ /^Working file:/ {workingfile =
"/" $3
}
($0 ~ /^====*$/ || $0 ~ /^----*$/) && skip == "N" \
($0 ~ /^====*$/ || $0 ~ /^----*$/) && skip == "N" \
{
{
...
@@ -27,7 +29,7 @@ awk '
...
@@ -27,7 +29,7 @@ awk '
{
{
printf ("%s| %10d|%s\n", datetime, NR, "");
printf ("%s| %10d|%s\n", datetime, NR, "");
printf ("%s| %10d|%s\n", datetime, NR, "---");
printf ("%s| %10d|%s\n", datetime, NR, "---");
printf ("%s| %10d|%s\n", datetime, NR+1, "");
/* printf ("%s| %10d|%s\n", datetime, NR+1, "");*/
}
}
}
}
...
@@ -46,6 +48,8 @@ awk '
...
@@ -46,6 +48,8 @@ awk '
datetime=$2"-"$3
datetime=$2"-"$3
if (workingfile != "" && skip == "N")
if (workingfile != "" && skip == "N")
{
{
gsub(";", "", $5);
printf ("%s| %10d| %70s\n", datetime, NR-2, $5);
printf ("%s| %10d|%s\n", datetime, NR-1, workingfile);
printf ("%s| %10d|%s\n", datetime, NR-1, workingfile);
printf ("%s| %10d|%s\n", datetime, NR, $0);
printf ("%s| %10d|%s\n", datetime, NR, $0);
printf ("%s| %10d|%s\n", datetime, NR+1, "");
printf ("%s| %10d|%s\n", datetime, NR+1, "");
...
@@ -59,7 +63,7 @@ sort | cut -d'|' -f3 | cat |
...
@@ -59,7 +63,7 @@ sort | cut -d'|' -f3 | cat |
# collect duplicate narratives
# collect duplicate narratives
awk ' BEGIN { slot = 0;}
awk ' BEGIN { slot = 0;}
{
{
if ($0 ~ /^
Working file:
/)
if ($0 ~ /^
\/
/)
{
{
if (slot != oldslot)
if (slot != oldslot)
same = 0;
same = 0;
...
...
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