Closed nextstopsun closed 3 years ago
I loaded the test pt_two.shp as a table per the README example, and I'm not seeing the crash against master.
SELECT pg_relation_is_updatable(c.oid::regclass, FALSE)
FROM pg_class c, pg_namespace n
WHERE n.oid = c.relnamespace
AND c.relname = 'pt_two' AND n.nspname = 'public';
pg_relation_is_updatable
--------------------------
28
(1 row)
FWIW I have a ODBC pointing at MSSQL and also MSSpatial. Neither of them segfaults. Using ogrfdw 1.0.9 , GDAL 2.4.4
PostgreSQL 12.3, compiled by Visual C++ build 1914, 64-bit
For the ODBC variant I get
pg_relation_is_updatable
--------------------------
0
For the MSSPatial I get
pg_relation_is_updatable
--------------------------
28
(1 row)
I've never tried using a vrt file source and not quite sure how to set that up.
Have you tried direct SQL Server link using ODBC or the MSSpatial driver?
@nextstopsun Can you provide details as to what OS you are running and if you got your stuff from packages and also the contents of your vrt file.
@pramsey and I can not replicate the issue so I'm guessing it's either some faulty compile or something to do with VRTs and may be only triggerable with a VRT source.
PostgreSQL terminates with
Segmentation fault
when runningpg_relation_is_updatable
function on a foreign table.Try this:
In my case, a table source is a
vrt
file with anMSSQL
datasource.dmesg reports this:
segfault at 0 ip 00007f863cd5b547 sp 00007ffe174b1a30 error 4 in libgdal.so.20.5.0
running GDAL 2.4.0, ogr_fdw 1.0.8 on PostgreSQL 12.1
Setting
false
on both foreign server and foreign tableupdateable
option doesn't heal it.