Package: postgresql
Version: 7.4.7-2
Severity: normal
Tags: patch
Hello
postgresql-dump get pids using ps but it could fail if the ps output is
modified by environment variable PS_FORMAT. To correct the problem you
should replace
ps ax
by
ps ax --format "pid,comm"
or insert a "unset PS_FORMAT" at the begining of the script.
see patch below:
diff /usr/lib/postgresql/bin/postgresql-dump
/usr/lib/postgresql/bin/postgresql-dump~
326c326
< pm_pid=`ps ax --format "pid,comm"| grep -s postmaster | grep -v
grep | awk '{print $1}'`
---
> pm_pid=`ps ax | grep -s postmaster | grep -v grep | awk '{print
> $5}'`
390c390
< new_pm_pid=`ps ax --format "pid,comm"| grep -s postmaster |
grep -v grep | awk '{print $1}'`
---
> new_pm_pid=`ps ax | grep -s postmaster | grep -v grep | awk
> '{print $5}'`
r
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=C, LC_CTYPE=fr_FR (charmap=ISO-8859-1)
Versions of packages postgresql depends on:
ii adduser 3.59 Add and remove users and groups
ii debconf [debconf 1.4.30.11 Debian configuration management sy
ii debianutils 2.8.4 Miscellaneous utilities specific t
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libcomerr2 1.35-6 The Common Error Description libra
ii libkrb53 1.3.6-1 MIT Kerberos runtime libraries
ii libpam0g 0.76-22 Pluggable Authentication Modules l
ii libperl5.8 5.8.4-6 Shared Perl library
ii libpq3 7.4.7-2 PostgreSQL C client library
ii libreadline4 4.3-11 GNU readline and history libraries
ii libssl0.9.7 0.9.7e-2 SSL shared libraries
ii mailx 1:8.1.2-0.20040524cvs-4 A simple mail user agent
ii postgresql-clien 7.4.7-2 front-end programs for PostgreSQL
ii procps 1:3.2.1-2 The /proc file system utilities
ii python2.3 2.3.5-1 An interactive high-level object-o
ii ucf 1.14 Update Configuration File: preserv
ii zlib1g 1:1.2.2-3 compression library - runtime
-- debconf information:
* postgresql/upgrade/preserve_location: /var/lib/postgres/preserve
* postgresql/settings/day_month_order: US
postgresql/convert-postmaster.init: true
* postgresql/upgrade/policy: true
postgresql/enable_lang: true
postgresql/contains_POSTGRESHOME: true
postgresql/very_old_version_warning: true
* postgresql/upgrade/dump_location: /var/lib/postgres/
postgresql/convert-pg_hba.conf: true
* postgresql/initdb/location: /var/lib/postgres/data
* postgresql/settings/locale: [EMAIL PROTECTED]
postgresql/peer-to-ident: true
postgresql/missing_conf: true
* postgresql/purge_data_too: false
* postgresql/settings/encoding: LATIN9
* postgresql/settings/date_style: POSTGRES
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]