Skip to content

Commit

Permalink
Try postgres 16
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarton committed Dec 17, 2024
1 parent c08c54b commit c8aa56a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
# PostgreSQL with PostGIS extension
postgis:
<<: *global # this will inherit config from x-global-environment
image: postgis/postgis:15-3.3
image: postgis/postgis:16-3.5
volumes:
- postgis-data:/var/lib/postgresql/data
restart: always
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@

@pytest.fixture
def disable_nested_loops_in_db(db):
# pass
cursor = connection.cursor()
print("!! Disabling nested loops in DB")
cursor.execute("SET enable_nestloop TO off")
yield
print("!! Re-enabling nested loops in DB")
cursor.execute("SET enable_nestloop TO on")
pass
# cursor = connection.cursor()
# print("!! Disabling nested loops in DB")
# cursor.execute("SET enable_nestloop TO off")
# yield
# print("!! Re-enabling nested loops in DB")
# cursor.execute("SET enable_nestloop TO on")


@pytest.mark.parametrize(
Expand Down

0 comments on commit c8aa56a

Please sign in to comment.