pg_dump: how to install on Amazon Linux for PostgreSQL 9.5.2?

后端 未结 2 1689
长发绾君心
长发绾君心 2020-12-31 17:46

I used to install and do:

$ sudo yum install -y postgresql94-server postgresql94
$ pg_dump -h name-of-db.us-east-1.rds.amazonaws.com -U user dbName > dump         


        
2条回答
  •  悲哀的现实
    2020-12-31 18:24

    Ok, found it.

    (1) Install the repo:

    $ sudo rpm -Uvh https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6-x86_64/pgdg-ami201503-95-9.5-3.noarch.rpm
    

    - Update: 9.5.2-> 9.5.3 Found the repo here.

    (2) Then install the package:

    $ sudo yum install postgresql95
    

    Now you can dump your RDS database to a near by ec2 instance!

提交回复
热议问题