]> git.8kb.co.uk Git - postgresql/pg_controldata/commitdiff
Fix indentation master
authorglyn <glyn@8kb.co.uk>
Wed, 7 Jan 2015 13:39:26 +0000 (13:39 +0000)
committerglyn <glyn@8kb.co.uk>
Wed, 7 Jan 2015 13:39:26 +0000 (13:39 +0000)
pg_controldata.plperlu

index 844e74cef3e785a7bde5161e645b4f827f600355..2a8bf3fcf9407288e4192ae97825ec54515f0c11 100755 (executable)
@@ -17,7 +17,7 @@ $BODY$
     my $rv;
     my $data_dir;
     my $pg_controldata_bin = 'pg_controldata';
-       my @fields;
+    my @fields;
     
     $rv = spi_exec_query('SHOW data_directory', 1);
     $data_dir = $rv->{rows}[0]->{data_directory};
@@ -25,15 +25,14 @@ $BODY$
     open(FD,"$pg_controldata_bin $data_dir | ");
     
     while(<FD>) {
-               @fields = split(':', $_, 2);
-               $fields[0] =~ s/^\s+|\s+$//g;
-               $fields[1] =~ s/^\s+|\s+$//g;
-               return_next { name => $fields[0], setting => $fields[1]};
+        @fields = split(':', $_, 2);
+        $fields[0] =~ s/^\s+|\s+$//g;
+        $fields[1] =~ s/^\s+|\s+$//g;
+        return_next { name => $fields[0], setting => $fields[1]};
     }
     close (FD);
     
     return;    
-
 $BODY$
 LANGUAGE plperlu;