我用这个命令为Postgres数据库备份了一个干净的,没有所有者的备份 pg_dump sample_database -O -c -U 后来,当我恢复数据库 psql -d sample_database -U app_name 但是,我遇到了一些阻止我恢复数据的错误: ERROR: must be owner of extension plpgsql ERROR: must be owner of schema public ERROR: schema "public" already exists ERROR: must be owner of schema public CREATE EXTENSION ERROR: must be owner of extension plpgsql 我深入到pg_dump生成的纯文本SQL中,发现它包含SQL CREATE SCHEMA public; COMMENT ON SCHEMA […]
每当我运行我的轨道4.0服务器,我得到这个输出。 Started GET "/" for 127.0.0.1 at 2013-11-06 23:56:36 -0500 PG::ConnectionBad – could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port […]
我正在使用Ruby on Rails 3.1之前的版本。 我喜欢使用PostgreSQL,但问题是安装pg gem。 它给了我以下错误: demonchand@system-001:~/exercise/personal/pro$ gem install pg Building native extensions. This could take a while… ERROR: Error installing pg: ERROR: Failed to build gem native extension. /home/demonchand/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb checking for pg_config… no No pg_config… trying anyway. If building fails, please try again with –with-pg-config=/path/to/pg_config checking for libpq-fe.h… no Can't find the […]