Questions tagged «rails-postgresql»

30
尝试安装pg gem时找不到'libpq-fe.h标头
我正在使用Ruby on Rails 3.1预版本。我喜欢使用PostgreSQL,但问题是安装pggem。它给了我以下错误: $ gem install pg Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /home/u/.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 …

10
恢复PostgreSQL数据库时如何解决特权问题
我使用以下命令为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 我深入研究了纯文本SQL pg_dump生成,发现其中包含SQL …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.