Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 调用pg_restore后,我无法通过pgpool2访问数据库_Postgresql_Pgpool - Fatal编程技术网

Postgresql 调用pg_restore后,我无法通过pgpool2访问数据库

Postgresql 调用pg_restore后,我无法通过pgpool2访问数据库,postgresql,pgpool,Postgresql,Pgpool,我为每日备份数据库编写了脚本。简单步骤: 倾倒 pg_dump-Fc--blobs--section-pre-data--section-data--section-post-data--encoding UTF8--verbose-h localhost-p 5433-U username DB-f/home/DB.backup 删除并创建每日数据库 psql-h localhost-p5433-U username-At-ddb-c“如果数据库每天都存在,则删除数据库” psql-hloc

我为每日备份数据库编写了脚本。简单步骤:

  • 倾倒
  • pg_dump-Fc--blobs--section-pre-data--section-data--section-post-data--encoding UTF8--verbose-h localhost-p 5433-U username DB-f/home/DB.backup
    
  • 删除并创建每日数据库
  • psql-h localhost-p5433-U username-At-ddb-c“如果数据库每天都存在,则删除数据库”
    psql-hlocalhost-p5433-U username-At-ddb-c“createdatabasedbdaily
    
  • 还原数据库
  • pg_restore-d DBdaily-h localhost-p 5433-U username/home/db.backup
    
    如果我想通过pgadmin访问DBdaily,我会得到一个错误:

    我每天在拖放和创建之后测试对数据库的访问,它可以正常工作,但在pg_恢复之后不工作。这个错误意味着后端有问题,但我不知道如何解决它


    pgpool2的版本是3.6.7,postgresql是9.4。

    当我使用pgAdmin版本4时,一切正常。 我想问题出在pgAdmin版本3中