Skip to content
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

Support HSTORE #174

Closed
tblundy opened this issue Nov 23, 2021 · 2 comments
Closed

Support HSTORE #174

tblundy opened this issue Nov 23, 2021 · 2 comments
Milestone

Comments

@tblundy
Copy link

tblundy commented Nov 23, 2021

Currently reading from a postgres database that has data in hstore format, I get
PanicException: not implemented: hstore

Hstore is a key-value format, similar to jsonb. https://www.postgresql.org/docs/14/hstore.html
Supporting it could be a worthwhile addition. It could be parsed into a dictionary or passed through as a string.

@wangxiaoying
Copy link
Contributor

Hi @tblundy , thanks for the suggestion! We will add it to our plan for next release (after 0.2.2).

@wangxiaoying wangxiaoying added this to the 0.2.3 milestone Nov 24, 2021
@wangxiaoying
Copy link
Contributor

Hi, we have add the support for HSTORE (convert to string) in 0.2.3 release. However since the underlying's driver does not support this type in copy_out, we can only support this in the cursor protocol. For binary and csv protocol, a workaround is to convert the HSTORE column to string directly in the sql query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants