Error Using pg_dump Following Railway Instructions

diegoedukPRO

2 months ago

I am trying to back up my database using pg_dump from the psql client, following the instructions provided in the following link:
https://blog.railway.com/p/postgre-backup.

However, when executing the command, I encounter the following error:

pg_dump: error: server version: 16.4 (Debian 16.4-1.pgdg120+2); pg_dump version: 14.15 (Ubuntu 14.15-0ubuntu0.22.04.1)

pg_dump: error: aborting because of server version mismatch

The same error occurs when trying to use the backup tools in pgAdmin 4.

Solved

2 Replies

2 months ago

Hello,

You need to use pg_dump version 16, to match your database version.

Best,
Brody


Status changed to Awaiting User Response railway[bot] 2 months ago


diegoedukPRO

2 months ago

Ok, thanks.


Status changed to Awaiting Railway Response railway[bot] 2 months ago


Status changed to Solved brody 2 months ago


Error Using pg_dump Following Railway Instructions - Railway Help Station