Database recovery and collation version mismatch

閲覧: 24 回
最初の未読メッセージにスキップ

Matthew Larson

未読、
2024/02/02 10:25:352月2日
To: Barman, Backup and Recovery Manager for PostgreSQL

I am currently running a pg v 15.2 database in a docker container, which is being backed up by barman (v 3.2) on a remote host also with pg v 15.2 installed, although not in a docker container. During DR tests, our normal procedure is to recover the database and then validate record counts, etc. in the database running on the remote host running barman (kind of a staging or auxiliary database, if you like). When I log into the database, however, I am getting the following warning:

 

WARNING:  database "--" has a collation version mismatch

DETAIL:  The database was created using collation version 2.31, but the operating system provides version 2.17.

HINT:  Rebuild all objects in this database that use the default collation and run ALTER DATABASE -- REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.

 

My intent in a real life DR scenario is to provide a pg_dump of the database I recovered on the remote host to my end user who can pg_restore it to the production pg database running in the docker container. I know I could run a remote recovery as an alternative; however, there are some security settings which make providing a dumpfile easier. Since the intent is to run pg_restore on the original host, is running the reindex and collation refresh necessary prior to running pg_dump?

 

I tried this question in the pgsql-admin list, but haven't gotten a response yet. I'm just not quite sure who to ask.


Thank you,

 

Matt

全員に返信
投稿者に返信
転送
新着メール 0 件