Closed robe2 closed 3 years ago
Ignore the comment about the mismatched GDAL version. I just checked on my production system and it reads:
OGR_FDW="1.1" GDAL="3.2.3"
So I must have compiled my dev with GDAL 3.2.3 (but I'm running it with GDAL 3.2.0) and it's registering the running version and PostGIS is registering the compiled version.
Okay this may be something screwy with my dev setup or something about PG14 RC1 or GDAL 3.2.0 (fixed in 3.2.3). I just tried on my prod version runningPostgreSQL 13.4, compiled by Visual C++ build 1914, 64-bit
SELECT table_name, table_type ,is_insertable_into
FROM information_schema.tables
WHERE table_schema = 'staging';
and it gives expected error:
ERROR: GDAL AppDefined [1] Only read-only mode is supported for /vsicurl
SQL state: XX000
It does look like I did compile ogr_fdw with GDAL 3.2.0 so guess it is reading the compiled version. My runtime is 3.2.3. Oh well going to close this out as screwed up Regina system.
Reopening I just realized this is an error too and not a notice. The issue is many drivers e.g npgsql use information_schema.tables and it would be obscure for a query to fail because of an external link -- so it should somehow be caught on the ogr_fdw side and throw a false or something. I think we had this same issue with some update flag on information_schema.columns
Can you close this and write up a more terse one with just the reproduction steps and the actual/expected results? I'm not 100% sure what the error you are reporting is.
grrh you and your obsession with terseness.
I also tried with: datasources which are equivalent: /fdw_data/argentina-latest-free.shp.zip and /vsizip//fdw_data/argentina-latest-free.shp.zip. Both work as far as linking and querying but the one with /vsizip chokes in the information_schema.tables query
Works fine outputs:
This also works:
This gives error, but leaving out the is_insertable_into column, it works okay
Error:
Version info -- I'm puzzled why my ogr_fdw_version is giving me different GDAL version from PostGIS.
outputs:
outputs: