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

Use correct version of pg_dump to avoid restore errors #15

Open
jfinzel opened this issue Feb 22, 2017 · 0 comments
Open

Use correct version of pg_dump to avoid restore errors #15

jfinzel opened this issue Feb 22, 2017 · 0 comments

Comments

@jfinzel
Copy link

jfinzel commented Feb 22, 2017

We do this in the following way in our DBA environment, though we are all running on Debian, so it's considerably easier:

  1. Get the version from cluster_info. This could also be done with SHOW server_version; Our specific script that gives us this is clusterinfo-vars payments_a --version. Refer to https://git.enova.com/cfengine/postgres/blob/master/DBA-Tools/clusterinfo-vars for this script.

  2. Find the path of the binary using the version, i.e.

#!/bin/bash

set -eu

destination_cluster=$1
eval "$(clusterinfo-vars $destination_cluster version)"
echo "/usr/lib/postgresql/$version/bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant