瀏覽代碼

make enabling of 'autovacuum' related options more robust no matter whether comments exist or not ('stats_row_level' was broken)

Christoph Schug 18 年之前
父節點
當前提交
2271d4eb0d
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      postgresql/postgresql.spec

+ 5 - 5
postgresql/postgresql.spec

@@ -48,7 +48,7 @@ Class:        BASE
 Group:        Database
 License:      GPL
 Version:      %{V_postgresql}
-Release:      20071024
+Release:      20071122
 
 #   package options
 %option       with_server       yes
@@ -558,10 +558,10 @@ AutoReqProv:  no
 
     #   adjust default configuration for hourly auto-vacuum operation
     %{l_shtool} subst \
-        -e 's;^# *\(stats_start_collector *=\) *[^#]*\(#.*\);\1 on \2;' \
-        -e 's;^# *\(stats_row_level *=\) *[^#]*\(#.*\);\1 on \2;' \
-        -e 's;^# *\(autovacuum *=\) *[^#]*\(#.*\);\1 on \2;' \
-        -e 's;^# *\(autovacuum_naptime *=\) *[^#]*\(#.*\);\1 1h \2;' \
+        -e 's;^# *\(stats_start_collector *=\) *[^#]*\(#.*\)*;\1 on \2;' \
+        -e 's;^# *\(stats_row_level *=\) *[^#]*\(#.*\)*;\1 on \2;' \
+        -e 's;^# *\(autovacuum *=\) *[^#]*\(#.*\)*;\1 on \2;' \
+        -e 's;^# *\(autovacuum_naptime *=\) *[^#]*\(#.*\)*;\1 1h \2;' \
         $RPM_BUILD_ROOT%{l_prefix}/share/postgresql/postgresql.conf.sample
 
     #   post-adjust pgcluster configuration filenames