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