@@ -204,11 +204,17 @@ RUN sed -i \
204204 # Remove items from postgresql.conf
205205RUN sed -i 's/ timescaledb,//g;' "/etc/postgresql/postgresql.conf"
206206 #as of pg 16.4 + this db_user_namespace totally deprecated and will break the server if setting is present
207- RUN sed -i 's/db_user_namespace = off/#db_user_namespace = off/g;' "/etc/postgresql/postgresql.conf"
208- RUN sed -i 's/ timescaledb,//g; s/ plv8,//g; s/ postgis,//g; s/ pgrouting,//g' "/etc/postgresql-custom/supautils.conf"
209- RUN sed -i 's/\(shared_preload_libraries.*\)'\''\(.*\)$/\1, orioledb'\''\2/' "/etc/postgresql/postgresql.conf"
210- RUN echo "default_table_access_method = 'orioledb'" >> "/etc/postgresql/postgresql.conf"
211-
207+ RUN sed -i 's/ timescaledb,//g; s/ plv8,//g; s/ postgis,//g; s/ pgrouting,//g' "/etc/postgresql-custom/supautils.conf"
208+ RUN sed -i 's/\(shared_preload_libraries.*\)'\''\(.*\)$/\1, orioledb'\''\2/' "/etc/postgresql/postgresql.conf"
209+ RUN echo "default_table_access_method = 'orioledb'" >> "/etc/postgresql/postgresql.conf"
210+
211+ # OrioleDB rewind configuration
212+ # Enables time-based rewind capability for up to 20 minutes (1200 seconds)
213+ # Buffer size: 1280 buffers * 8KB = 10MB for transaction retention
214+ RUN echo "orioledb.enable_rewind = true" >> "/etc/postgresql/postgresql.conf" && \
215+ echo "orioledb.rewind_max_time = 1200" >> "/etc/postgresql/postgresql.conf" && \
216+ echo "orioledb.rewind_max_transactions = 100000" >> "/etc/postgresql/postgresql.conf" && \
217+ echo "orioledb.rewind_buffers = 1280" >> "/etc/postgresql/postgresql.conf"
212218
213219
214220# # Include schema migrations
0 commit comments