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

More PostgreSQL datatypes support #180

Merged
merged 12 commits into from
Jul 11, 2022
Merged

More PostgreSQL datatypes support #180

merged 12 commits into from
Jul 11, 2022

Conversation

alexbruy
Copy link
Contributor

Adds support for more PostgreSQL datatypes:

Avoid datatypes conversion while making copy of the database if source and destitation drivers are the same. This allows to use native datatypes and avoid conversion issues (fixes #176).

@alexbruy alexbruy changed the title Pg data types More PostgreSQL datatypes support Jun 30, 2022
@PeterPetrik
Copy link
Contributor

best to review by @wonder-sk

@alexbruy alexbruy requested review from wonder-sk and removed request for PeterPetrik June 30, 2022 11:29
Copy link
Contributor

@wonder-sk wonder-sk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff. One thing I am wondering about is how we deal with "numeric" columns - we store them as doubles which provide 15 to 17 significant decimal digits, but what if someone stores a decimal number with 20 digits, and we would be loosing precision? I guess for now it would be OK if that would be a known limitation, I am just wondering if we can/should trigger some warnings in case we do a conversion where this would happen (i.e. not warn if someone uses numeric(50) with small numbers, only warn with numeric(50) and numbers with 16+ digits?

geodiff/src/drivers/sqlitedriver.cpp Outdated Show resolved Hide resolved
geodiff/src/drivers/postgresdriver.cpp Outdated Show resolved Hide resolved
geodiff/src/drivers/postgresdriver.cpp Outdated Show resolved Hide resolved
@alexbruy
Copy link
Contributor Author

alexbruy commented Jul 6, 2022

I was thinking about converting decimal and numeric to text to avoid loosing precision.

@alexbruy alexbruy force-pushed the pg-data-types branch 2 times, most recently from 1069606 to e712064 Compare July 7, 2022 10:02
Copy link
Contributor

@wonder-sk wonder-sk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@wonder-sk wonder-sk merged commit c4f9728 into master Jul 11, 2022
@alexbruy alexbruy deleted the pg-data-types branch July 11, 2022 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants