tests: postgres container (#16924)

added track_commit_timestamp=on so we can track table updates in tests

https://www.postgresql.org/docs/current/runtime-config-replication.html#GUC-TRACK-COMMIT-TIMESTAMP
This commit is contained in:
Imri Paran 2024-07-05 11:34:56 +02:00 committed by GitHub
parent 7506e0209d
commit 43f46196a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,11 +49,13 @@ def postgres_container(tmp_path_factory):
"pg_stat_statements.max=10000",
"-c",
"pg_stat_statements.track=all",
"-c",
"track_commit_timestamp=on",
]
with try_bind(container, 5432, 5432) if not os.getenv(
"CI"
) else container as container:
with (
try_bind(container, 5432, 5432) if not os.getenv("CI") else container
) as container:
docker_container = container.get_wrapped_container()
docker_container.exec_run(["mkdir", "/data"])
docker_container.put_archive(