Package: postgresql-common
Version: 105

Hi,

on one machine we have a decommissioned 8.1 cluster laying around
which has for whatever reason data_directory commented out.

#data_directory = 'ConfigDir'

pg_lsclusters doesn't like that and says "use of uninitialized value
in line 38" when printing the result. The patch below fixes the
problem.

--- pg_lsclusters.orig  2010-07-14 11:20:02.000000000 +0200
+++ pg_lsclusters       2010-07-14 11:20:34.000000000 +0200
@@ -38,7 +38,7 @@
         printf $fmtstring, ($v, $c, $info{'port'}, 
             $info{'running'} ? "online" : "down", 
             defined $info{'owneruid'} ? (getpwuid $info{'owneruid'})[0] : 
'<unknown>', 
-           $info{'pgdata'}, $info{'logfile'} || 'custom');
+            $info{'pgdata'} || '<unknown>', $info{'logfile'} || 'custom');
     }
 }

(Problem is also present in version 108.)

Christoph
-- 
[email protected] | http://www.df7cb.de/

Attachment: signature.asc
Description: Digital signature

Reply via email to