Replies: 1 comment
-
Can you list all tables got in error? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I am coming here for help. We started using Prefect in development environment (so we used sqlite). Then we started to use it for some production flows. Now, we want to switch to postgres database because we already have 19 Gigs of sqlite and it starts to really lag and lock the database basically non-stop.
The issue is - how? There is no tutorial or guide what so ever on web. I tried it with Chatgpt and got into point where i finally migrate the db using pgloader and .load file like:
And it worked quite well. There were some warnings for truncating the names for shorter ones. Then there were issues with the revision so i manually changed the revision id in the DB from latest sqlite revision to latest postgres revision and downgraded it using prefect command to that (latest) postgres revision.
It worked and prefect server finally loaded. But when i went to the web ui, only some of the data actually loaded. There were only: Flows, Work pools, and Automations (and Event feed but i dont need that one). In the logs there were a lot of errors regarding type mismatch (a column of type text is being compared to a column of type UUID), then undefined custom type (“state_type” does not exist), and potentially some other.
Did have someone done full migration to postgres from sqlite or do people just start over with the right database?
Beta Was this translation helpful? Give feedback.
All reactions