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
e05f1548
Commit
e05f1548
authored
Oct 02, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Communicate PGPORT and PGHOST via environment, not command line
parent
5ba666b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
11 deletions
+25
-11
src/test/regress/pg_regress.sh
src/test/regress/pg_regress.sh
+25
-11
No files found.
src/test/regress/pg_regress.sh
View file @
e05f1548
#! /bin/sh
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.
3 2000/10/02 06:03:25 tgl
Exp $
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.
4 2000/10/02 11:47:30 petere
Exp $
me
=
`
basename
$0
`
:
${
TMPDIR
=/tmp
}
...
...
@@ -81,6 +81,9 @@ unset top_builddir
unset
temp_install
unset
multibyte
export
PGHOST
export
PGPORT
dbname
=
regression
hostname
=
`
hostname
`
||
hostname
=
localhost
...
...
@@ -154,8 +157,6 @@ case $host_platform in
unix_sockets
=
yes
;;
esac
[
"
$unix_sockets
"
=
no
]
&&
psql_options
=
"
$psql_options
-h
$PGHOST
"
# ----------
# Set up diff to ignore horizontal white space differences.
...
...
@@ -257,7 +258,11 @@ then
libdir
=
$temp_install
/
$libdir
datadir
=
$temp_install
/
$datadir
PGDATA
=
$temp_install
/data
PGHOST
=
$hostname
if
[
"
$unix_sockets
"
=
no
]
;
then
PGHOST
=
$hostname
else
unset
PGHOST
fi
PGPORT
=
65432
# ----------
...
...
@@ -314,7 +319,7 @@ then
message
"starting postmaster"
[
"
$debug
"
=
yes
]
&&
postmaster_options
=
"
$postmaster_options
-d 5"
[
"
$unix_sockets
"
=
no
]
&&
postmaster_options
=
"
$postmaster_options
-i"
"
$bindir
/postmaster"
-D
"
$PGDATA
"
-
p
"
$PGPORT
"
-
F
$postmaster_options
>
"
$LOGDIR
/postmaster.log"
2>&1 &
"
$bindir
/postmaster"
-D
"
$PGDATA
"
-F
$postmaster_options
>
"
$LOGDIR
/postmaster.log"
2>&1 &
postmaster_pid
=
$!
if
kill
-0
$postmaster_pid
>
/dev/null 2>&1
...
...
@@ -333,13 +338,22 @@ then
else
# not temp-install
# If Unix sockets are not available, use the local host by default.
[
"
$unix_sockets
"
=
no
]
&&
${
PGHOST
=
$hostname
}
if
[
-n
"
$PGPORT
"
]
;
then
port_info
=
"port
$PGPORT
"
else
port_info
=
"default port"
fi
if
[
-n
"
$PGHOST
"
]
;
then
echo
"(using postmaster on
$PGHOST
at port
$PGPORT
)"
echo
"(using postmaster on
$PGHOST
,
$port_info
)"
else
echo
"(using postmaster on Unix socket
with port
$PGPORT
)"
echo
"(using postmaster on Unix socket
,
$port_info
)"
fi
message
"dropping database
\"
$dbname
\"
"
"
$bindir
/dropdb"
-p
"
$PGPORT
"
$psql_options
"
$dbname
"
>
/dev/null 2>&1
"
$bindir
/dropdb"
$psql_options
"
$dbname
"
>
/dev/null 2>&1
# errors can be ignored
fi
...
...
@@ -348,7 +362,7 @@ fi
# Set up SQL shell for the test.
# ----------
PSQL
=
"
$bindir
/psql -a -q -X
$psql_options
-p
$PGPORT
"
PSQL
=
"
$bindir
/psql -a -q -X
$psql_options
"
# ----------
...
...
@@ -377,7 +391,7 @@ fi
# ----------
message
"creating database
\"
$dbname
\"
"
"
$bindir
/createdb"
-p
"
$PGPORT
"
$encoding_opt
$psql_options
"
$dbname
"
"
$bindir
/createdb"
$encoding_opt
$psql_options
"
$dbname
"
if
[
$?
-ne
0
]
;
then
echo
"
$me
: createdb failed"
(
exit
2
)
;
exit
...
...
@@ -392,7 +406,7 @@ case $host_platform in
*
-
*
-qnx
*
)
:
;;
*
)
message
"installing PL/pgSQL"
"
$bindir
/createlang"
-
p
"
$PGPORT
"
-
L
"
$libdir
"
$psql_options
plpgsql
$dbname
"
$bindir
/createlang"
-L
"
$libdir
"
$psql_options
plpgsql
$dbname
if
[
$?
-ne
0
]
&&
[
$?
-ne
2
]
;
then
echo
"
$me
: createlang failed"
(
exit
2
)
;
exit
...
...
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