@@ -248,6 +248,11 @@ orioledb_config_items() {
248248 sed -i ' s/ timescaledb,//g; s/ plv8,//g; s/ pgjwt,//g;' " $DATDIR /supautils.conf"
249249 sed -i ' s/\(shared_preload_libraries.*\)' \' ' \(.*\)$/\1, orioledb' \' ' \2/' " $DATDIR /postgresql.conf"
250250 echo " default_table_access_method = 'orioledb'" >> " $DATDIR /postgresql.conf"
251+ # OrioleDB rewind configuration (20 minute window, 10MB buffer)
252+ echo " orioledb.enable_rewind = true" >> " $DATDIR /postgresql.conf"
253+ echo " orioledb.rewind_max_time = 1200" >> " $DATDIR /postgresql.conf"
254+ echo " orioledb.rewind_max_transactions = 100000" >> " $DATDIR /postgresql.conf"
255+ echo " orioledb.rewind_buffers = 1280" >> " $DATDIR /postgresql.conf"
251256 elif [[ " $1 " = " orioledb-17" && " $CURRENT_SYSTEM " = " aarch64-darwin" ]]; then
252257 # macOS specific configuration
253258 echo " macOS detected, applying macOS specific configuration"
@@ -263,6 +268,11 @@ orioledb_config_items() {
263268 perl -pi -e ' s/(shared_preload_libraries\s*=\s*' \' ' .*?)' \' ' /\1, orioledb' \' ' /' " $DATDIR /postgresql.conf"
264269
265270 echo " default_table_access_method = 'orioledb'" >> " $DATDIR /postgresql.conf"
271+ # OrioleDB rewind configuration (20 minute window, 10MB buffer)
272+ echo " orioledb.enable_rewind = true" >> " $DATDIR /postgresql.conf"
273+ echo " orioledb.rewind_max_time = 1200" >> " $DATDIR /postgresql.conf"
274+ echo " orioledb.rewind_max_transactions = 100000" >> " $DATDIR /postgresql.conf"
275+ echo " orioledb.rewind_buffers = 1280" >> " $DATDIR /postgresql.conf"
266276 elif [[ " $VERSION " == " 17" && " $CURRENT_SYSTEM " != " aarch64-darwin" ]]; then
267277 echo " non-macos pg 17 conf"
268278 sed -i ' s/ timescaledb,//g;' " $DATDIR /postgresql.conf"
0 commit comments