New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save as PG dump create obsolete dumps #3053
Comments
This is a serious bug, because it prevents the import of layers in PostGIS 3.x |
|
weird, the AddGeometryColumn() geometry is still in https://github.com/postgis/postgis/blob/master/postgis/postgis.sql.in#L2376 |
Hi @pcav Full log (on
Have you installed Postgis related problemI don't think this is a GDAL issue. GDAL still used this syntax because it can be used accross more versions of Postgis. |
Yes, scripts installed. One more test: it fails also with Postgresql11/postgis2.5 |
so it might be a problem on the pg/packaging side after all. |
The scripts should have created the function. Can you check the search path? Try to reset the search path. Was the Postgis installed in another schema than public? |
PostgreSQL typmod syntax is supported only in more recent versions. |
@pcav Just tried the following and it works fine
|
default search_path
not, a plain install |
There might be something particular with your conf. I've just done the following successfully:
|
Indeed, on a fresh db it works. I need to investigate further, sorry for the noise. |
When saving a shp as PG dump (I do it through QGIS, but this should not matter, as it is using GDAL code for this), I get an obsolete dump:
...
which it is not using the modern syntax, with standard geom name
geom GEOMETRY(LineString, 4326));
Debian Sid
GDAL 3.1.3+dfsg-1
The text was updated successfully, but these errors were encountered: