Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
ca00c902
Commit
ca00c902
authored
26 years ago
by
Jan Wieck
Browse files
Options
Downloads
Patches
Plain Diff
Added installation of created procedural languages to initdb
Jan
parent
6a982fc6
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/bin/initdb/Makefile
+4
-2
4 additions, 2 deletions
src/bin/initdb/Makefile
src/bin/initdb/initdb.sh
+21
-1
21 additions, 1 deletion
src/bin/initdb/initdb.sh
src/test/regress/sql/tests
+0
-1
0 additions, 1 deletion
src/test/regress/sql/tests
with
25 additions
and
4 deletions
src/bin/initdb/Makefile
+
4
−
2
View file @
ca00c902
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.1
1
199
8
/0
7/26 04:31:16 scrappy
Exp $
# $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.1
2
199
9
/0
5/12 10:35:43 wieck
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -17,7 +17,9 @@ include ../../Makefile.global
...
@@ -17,7 +17,9 @@ include ../../Makefile.global
all
:
initdb
all
:
initdb
initdb
:
initdb.sh
initdb
:
initdb.sh
sed
's/__MULTIBYTE__/
$(
MULTIBYTE
)
/'
initdb.sh
>
initdb
sed
-e
's/__MULTIBYTE__/
$(
MULTIBYTE
)
/'
\
-e
's/__DLSUFFIX__/
$(
DLSUFFIX
)
/'
\
initdb.sh
>
initdb
install
:
initdb
install
:
initdb
$(
INSTALL
)
$(
INSTL_EXE_OPTS
)
$<
$(
BINDIR
)
/
$<
$(
INSTALL
)
$(
INSTL_EXE_OPTS
)
$<
$(
BINDIR
)
/
$<
...
...
This diff is collapsed.
Click to expand it.
src/bin/initdb/initdb.sh
+
21
−
1
View file @
ca00c902
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.5
8
1999/0
3
/1
7 22:53:25 momjian
Exp $
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.5
9
1999/0
5
/1
2 10:35:43 wieck
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -491,6 +491,26 @@ echo "CREATE RULE \"_RETpg_indexes\" AS ON SELECT TO pg_indexes DO INSTEAD \
...
@@ -491,6 +491,26 @@ echo "CREATE RULE \"_RETpg_indexes\" AS ON SELECT TO pg_indexes DO INSTEAD \
AND I.oid = X.indexrelid;"
|
\
AND I.oid = X.indexrelid;"
|
\
postgres
$PGSQL_OPT
template1
>
/dev/null
postgres
$PGSQL_OPT
template1
>
/dev/null
if
[
-f
$PGLIB
/plpgsql__DLSUFFIX__
]
;
then
echo
"Installing PL/pgSQL as trusted procedural language"
echo
"CREATE FUNCTION plpgsql_call_handler () RETURNS opaque
\
AS '
$PGLIB
/plpgsql__DLSUFFIX__' LANGUAGE 'C';"
|
\
postgres
$PGSQL_OPT
template1
>
/dev/null
echo
"CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql'
\
HANDLER plpgsql_call_handler LANCOMPILER 'PL/pgSQL';"
|
\
postgres
$PGSQL_OPT
template1
>
/dev/null
fi
if
[
-f
$PGLIB
/pltcl__DLSUFFIX__
]
;
then
echo
"Installing PL/Tcl as trusted procedural language"
echo
"CREATE FUNCTION pltcl_call_handler () RETURNS opaque
\
AS '
$PGLIB
/pltcl__DLSUFFIX__' LANGUAGE 'C';"
|
\
postgres
$PGSQL_OPT
template1
>
/dev/null
echo
"CREATE TRUSTED PROCEDURAL LANGUAGE 'pltcl'
\
HANDLER pltcl_call_handler LANCOMPILER 'PL/Tcl';"
|
\
postgres
$PGSQL_OPT
template1
>
/dev/null
fi
echo
"Loading pg_description"
echo
"Loading pg_description"
echo
"copy pg_description from '
$TEMPLATE_DESCR
'"
|
\
echo
"copy pg_description from '
$TEMPLATE_DESCR
'"
|
\
postgres
$PGSQL_OPT
template1
>
/dev/null
postgres
$PGSQL_OPT
template1
>
/dev/null
...
...
This diff is collapsed.
Click to expand it.
src/test/regress/sql/tests
+
0
−
1
View file @
ca00c902
...
@@ -66,6 +66,5 @@ alter_table
...
@@ -66,6 +66,5 @@ alter_table
portals_p2
portals_p2
rules
rules
limit
limit
install_plpgsql
plpgsql
plpgsql
temp
temp
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment