Regenerate Metabase Postgres DB

Hello, I wanted to build our Metabase Postgree DB in a new instance because I have a DB error somewhere (ERROR: could not open relation with OID 16490...)
That's why I tried to rebuild Metabase on a new server with Postgree and then fill each individual table via CSV. Dump doesn't allow the DB because of the OID error
Unfortunately that didn't work - Metabase doesn't start: Trigger Error.

Hence the question: How can I save my database with several hundred queries? What can I do? What is the best way to set up the Postgree DB and integrate the data?

Thanks for any help.

"browser-info": {
"language": "de",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0",
"vendor": ""
"system-info": {
"file.encoding": "Cp1252",
"": "OpenJDK Runtime Environment",
"java.runtime.version": "",
"java.vendor": "Microsoft",
"java.vendor.url": "",
"java.version": "",
"": "OpenJDK 64-Bit Server VM",
"java.vm.version": "",
"": "Windows Server 2019",
"os.version": "10.0",
"user.language": "de",
"user.timezone": "Europe/Berlin"
"metabase-info": {
"databases": [
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "11.17"
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.5.4"
"run-mode": "prod",
"version": {
"date": "2023-10-11",
"tag": "v0.47.4",
"branch": "?",
"hash": "c96dc65"
"settings": {
"report-timezone": null