Skip to content

Issue with OGR Array in Postgres Foreign Table using ogr_fdw #254

Answered by pramsey
LuGIS92 asked this question in Q&A
Discussion options

You must be logged in to vote

Well, ogr_fdw definitely does not support arrays, so there's no configuration fix at that level. Your attempt with ARRAY_AS_STRING is along the correct path, try to get OGR to paper over the difference. I'd tend to think that a server definition using that option combined with a table definition that just says the column type is 'varchar' would be the thing most likely to work. I'd experiment with ogr2ogr or ogrinfo a little to make sure you're actually getting plain strings out of OGR, as getting exactly the right option string into exactly the right OGR variable can be tricky.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@pramsey
Comment options

@LuGIS92
Comment options

Answer selected by LuGIS92
Comment options

You must be logged in to vote
1 reply
@LuGIS92
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants