Added fr_FR locale log parsing method
Benjamin Renard

Benjamin Renard commited on 2011-10-14 08:22:13
Showing 1 changed files, with 5 additions and 0 deletions.

... ...
@@ -10,7 +10,12 @@ CRIT_SIZE=1000
10 10
 verb=0
11 11
 [ "$1" == "-v" ] && verb=1
12 12
 
13
+# Locale C
13 14
 last="`grep "restored log file" $LOG|tail -n 1|sed 's/.*restored log file "\([^"]*\)".*/\1/g'`"
15
+
16
+# Locale fr_FR
17
+#last=$( grep "restauration du journal de transactions" /data/prod/pg_log/postgresql-14.log|tail -n 1|sed 's/.*restauration du journal de transactions « \([^ ]*\) ».*/\1/g' )
18
+
14 19
 [ $verb -eq 1 ] && echo "Last : $last"
15 20
 if [ ! -f $WAL/$last ]
16 21
 then
17 22