Revert "fix: geojson invalid query on unavailable PostGIS"

This reverts commit 0f1ca8faac.

Reverting for now as it adds one more query to the schema cache and
there's no clear way forward on how to integrate the fix with the
current schema cache queries.

See discussion on
https://github.com/PostgREST/postgrest/pull/4246#pullrequestreview-3093174224.
This commit is contained in:
steve-chavez
2025-08-13 14:54:53 -05:00
committed by Steve Chavez
parent c9272b0088
commit 1dce4a9321
4 changed files with 9 additions and 49 deletions
@@ -3,6 +3,11 @@
- - tag: BuiltinOvAggCsv
- tag: MTTextCSV
- - - tag: RelAnyElement
- tag: MTGeoJSON
- - tag: BuiltinOvAggGeoJson
- tag: MTGeoJSON
- - - tag: RelAnyElement
- tag: MTApplicationJSON
- - tag: BuiltinOvAggJson
-12
View File
@@ -1137,18 +1137,6 @@ def test_no_pool_connection_required_on_bad_embedding(defaultenv):
assert response.status_code == 400
def test_no_pool_connection_required_on_unavailable_postgis(defaultenv):
"no pool connection should be consumed when PostGIS is not available, the request should be quickly rejected at the plan level"
headers = {
"Accept": "application/geo+json",
}
with run(env=defaultenv, no_pool_connection_available=True) as postgrest:
response = postgrest.session.get("/projects", headers=headers)
assert response.status_code == 406
# https://github.com/PostgREST/postgrest/issues/2620
def test_notify_reloading_catalog_cache(defaultenv):
"notify should reload the connection catalog cache"