Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-core
Commits
1a17952a
Commit
1a17952a
authored
Mar 02, 2023
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with parsing PostgreSQL version > 9
parent
a6086f07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
pg_dump.tcl
www/admin/backup/pg_dump.tcl
+0
-21
No files found.
www/admin/backup/pg_dump.tcl
View file @
1a17952a
...
...
@@ -140,27 +140,6 @@ set pg_port [parameter::get_from_package_key -package_key "intranet-core" -param
# set pg_pass [parameter::get_from_package_key -package_key "intranet-core" -parameter "PgDumpPass" -default ""
]
set
pg_db
""
# get the PSQL PostgreSQL version
set
psql_version
[
im_database_version
]
if
{
!
[
regexp
{([
0-9
]
+
)
\.
([
0-9
]
+
)
.
([
0-9
]
*
)}
$psql
_version match psql_major psql_minor psql_pathc
]}
{
ns_write
"
<li><font color=red>
Error while determining the PostgreSQL version:<br>
Your database binary doesn't seem to be accessible.<br>
psql_version=
$psql
_version
</font></li>
"
ad_script_abort
}
# Disable "dollar quoting" on 7.4.x
if
{
"7"
==
$psql
_major
}
{
# Disabling quoting - we can't just set it to
""
because
# otherwise pg_dump complains. So we use a double
"--now-owner"
...
set disable_dollar_quoting
"--no-owner"
}
if
{
[
catch
{
ns_log Notice
"/intranet/admin/pg_dump/pg_dump: writing report to
$path
"
...
...
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