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

后端 未结 2 1667
长发绾君心
长发绾君心 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:04

    You can actually install a newer version of Postgres with the Amazon Extras Library: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-linux-ami-basics.html#extras-library

    I needed Postgres 10, so for me the command was:

    sudo amazon-linux-extras install postgresql10
    

    You can view a list of extras Amazon Linux provides by using this command:

    amazon-linux-extras list
    

提交回复
热议问题