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

Converting PostgreSQL type timestamp with time zone to base type unsuccessful #132

Open
vdinh1 opened this issue Nov 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@vdinh1
Copy link

vdinh1 commented Nov 28, 2023

Hi,
I am doing some testing with db-sync and I have found the issue below with initiating db-sync from postgresql.

What is the issue:
Error creating a gpkg from postgresql layers

How to replicate:
I have a table with a date field defined as follow : survey_date timestamp with time zone
Eg.

Create` table survey (
   id text,
   survey_name text,
   survey_date timestamp with time zone
);

Error:

The base schema and the output GPKG do not exist yet, going to initialize them ...
survey_v01  | Warn: Converting PostgreSQL type timestamp with time zone to base type unsuccessful, using text.
survey_v01  | Warn: Converting PostgreSQL type timestamp with time zone to base type unsuccessful, using text.
survey_v01  | Warn: Converting PostgreSQL type timestamp with time zone to base type unsuccessful, using text.
survey_v01  | Warn: Converting PostgreSQL type timestamp with time zone to base type unsuccessful, using text.
survey_v01  | Warn: Converting PostgreSQL type timestamp with time zone to base type unsuccessful, using text.
survey_v01  | Warn: Converting PostgreSQL type timestamp with time zone to base type unsuccessful, using text.
survey_v01  | Error: copy failed!
survey_v01  | GEODIFF: Error: unknown value type: timestamp with time zone
@wonder-sk
Copy link
Contributor

Thanks for the report. As a temporary workaround, you could use timestamp without time zone column type which should work fine...

@wonder-sk wonder-sk added the bug Something isn't working label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants