Top "Pg" questions

'pg' is the name of an extension for Ruby that provides access to libpq, the C application programmer’s interface to the PostgreSQL RDBMS.

Can't find the 'libpq-fe.h header when trying to install pg gem

I am using the Ruby on Rails 3.1 pre version. I like to use PostgreSQL, but the problem is installing the …

ruby-on-rails ruby-on-rails-3 postgresql rails-postgresql pg
PG::ConnectionBad - could not connect to server: Connection refused

Every time I run my rails 4.0 server, I get this output. Started GET "/" for 127.0.0.1 at 2013-11-06 23:56:36 -0500 PG::ConnectionBad …

ruby-on-rails ruby ruby-on-rails-4 database-connection pg
How to install PostgreSQL's pg gem on Ubuntu?

I'm trying to install PostgreSQL's pg gem for Ruby. I issued the following command: gem install pg I installed Ruby 1.9.2 …

ruby postgresql pg
Rails 3 - can't install pg gem

When I try to run bundle (bundle install), I all the time get Installing pg (0.13.2) with native extensions Gem::Installer::…

ruby-on-rails macos postgresql-9.1 pg libpq
Postgresql adapter (pg): could not connect to server

I get this error every this I run my Rails app (It cannot connect to my local Postgresql) /Users/leonardo/.…

ruby-on-rails postgresql rails-postgresql pg
gem install pg --with-pg-config works, bundle fails

WhenI run (as root) gem install pg -v '0.12.0' -- --with-pg-config=/usr/pgsql-9.1/bin/pg_config I get the …

postgresql rubygems bundler pg
insert statement in postgres for data type timestamp without time zone NOT NULL,

Database noob alert: I am trying to insert into a postgres table. The field that I would like to insert …

postgresql pg
rails install pg - Can't find the 'libpq-fe.h header

$ sudo bundle install Result Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/.. Using rake (0.9.2.2) …

c ruby-on-rails sqlite ruby-on-rails-3 pg
Trying to set up postgres for ror app, getting error - fe_sendauth: no password supplied

Getting: An error has occurred: Error connecting to the server: fe_sendauth: no password supplied Settings in database.yml are …

ruby-on-rails ruby postgresql passwords pg
ERROR: Failed to build gem native extension on Mavericks

I'm attempting to run bundle in my Rails project on OSX 10.9. It fails when getting to the pg gem with …

ruby-on-rails ruby ruby-on-rails-4 pg osx-mavericks