-
Notifications
You must be signed in to change notification settings - Fork 46
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
Error thrown when trying to create a GEOMETRY
column in postgis, from duckdb
#482
Comments
BTW, when I pre-create that table on the PostGIS side, I'm able to insert data like this, without error: INSERT INTO db.points (SELECT name, ST_AsText(ST_GeomAsHEXEWKB(pt)) AS pt FROM my_other_source); The However, I'm not sure if SRID is preserved this way? I know I could do: |
Hello!
This doesn't look right to me but if it work I guess it works? The way I'd go about it is to first convert to WKB on the DuckDB side (with
DuckDB spatial does not store or track the SRID in geometries, so it doesn't matter either way, you need to set the SRID postgis-side regardless. |
Seems like this is fixed by this duckdb/duckdb-postgres#291 which was just merged Parallel issue in postgres extension repo: duckdb/duckdb-postgres#264 |
Splendid, thank you! |
Hello,
Here's what I do:
However, I get:
Any ideas if this is solvable?
The text was updated successfully, but these errors were encountered: