pg Questions
3
Solved
Using VSCode. Installed latest Node.js (first time user) for Windows, and the desired modules, one of which was 'pg' (npm install pg)
At the top of my script I have this:
const pg = require('pg');...
50
Solved
I am using the Ruby on Rails 3.1 pre version. I like to use PostgreSQL, but the problem is installing the pg gem. It gives me the following error:
$ gem install pg
Building native extensions. This ...
Thorite asked 18/5, 2011 at 6:11
16
Solved
I get this error every this I run my Rails app (It cannot connect to my local Postgresql)
/Users/leonardo/.rvm/gems/ruby-1.9.3-p362/gems/activerecord-3.2.11/lib/
active_record/connection_adapters/...
Hettiehetty asked 8/1, 2013 at 22:20
7
I'm trying to run an app with script npm run serve:dev
but it gives an error Error: Please install pg package manually when trying to run npm run serve:dev
I already tried npm install -g pg','npm i...
Marxmarxian asked 25/3, 2019 at 15:7
2
I just want to ask which database module is better, PG or sequelize? I heard that sequelize has sometimes problem with transaction. Thanks
Pagepageant asked 24/10, 2014 at 15:2
1
Solved
I try to connect to rds postgresql version 12 from nodeJs as mentioned below. It works completely fine without any issue.
const config = {
user: process.env.PG_DB_USERNAME,
password: process.en...
Oblige asked 20/6, 2023 at 5:39
12
Solved
I am trying to create an ActiveRecord Object.But I'm getting this error while creating it.
(0.1ms) ROLLBACK
ActiveRecord::StatementInvalid: PG::InFailedSqlTransaction: ERROR: current transaction i...
Effluent asked 15/1, 2014 at 13:5
9
Running postgreSQL 9.4.5_2 currently
I have tried
pg_ctl stop -W -t 1 -s -D /usr/local/var/postgres -m f
Normally no news is good news but after I will run
pg_ctl status -D /usr/local/var/p...
Suppurate asked 9/12, 2015 at 7:54
3
i have a query that goes
select count(id), status, "createdAt"::date from "ProjectLog" where "projectId" = (select id from "Project" where slug = ${id}) and ...
Tendril asked 28/10, 2021 at 14:12
4
Solved
I tried to install pg gem and I have had this warning:
You need to install postgresql-server-dev-X.Y for building a
server-side extension or libpq-dev for building a client-side
application.
...
Academicism asked 19/6, 2013 at 5:53
5
There is an issue with installing ruby on ubuntu 22.04 with rvm as it will give you error below
Error running '__rvm_make -j8',
please read /usr/share/rvm/log/1655413907_ruby-2.5.0/make.log
There...
Eutectoid asked 16/6, 2022 at 21:55
4
Solved
I'm having trouble working through a gem load error on AWS Lambda.
{
"errorMessage": "LoadError: libpq.so.5: cannot open shared object file: No such file or directory - /var/task/vendor/bundle/ru...
Harriman asked 23/1, 2019 at 15:38
4
Solved
I am using PostgreSQL in my NodeJS backend service. All of sudden, when I start the service I am facing below error
connection error error: sorry, too many clients already.
PostgresSQL connect...
Haddix asked 20/6, 2018 at 11:22
3
Solved
Heyo. I apologize in advance if this question has been answered in another thread. I've searched through the site but I didn't find an answer. However, the closest related issue was Ruby on Rails /...
Dolly asked 19/3, 2013 at 22:58
3
I have following errors in pg_log file several thousand times. How to resolve them.
index "meeting_pkey" contains unexpected zero page at block 410.Please REINDEX it.
index "faultevent_props_pkey"...
Boilermaker asked 27/11, 2017 at 11:39
2
I have a model with calls the products with SORT/PAGE/PER PAGE
It works fine with numerical values as parameters but not strings.
This works fine...
params.limit = 12
client.query('SELECT * FROM p...
Bawl asked 6/9, 2015 at 15:17
3
I've been trying to install a rails project on my computer (Macbook Pro 2020 with M1) running Big Sur.
I have the PostgresApp installed.
When running bundle install it fails to build the pg gem so ...
Hoffert asked 20/1, 2021 at 13:11
4
Solved
Whenever I run bundle install on my VPS (CentOS Linux release 7.0.1406 (Core)) I get an error when installing the pg gem.
No pg_config... trying anyway. If building fails, please try again with
--...
Spotty asked 2/3, 2015 at 16:18
8
I'm trying to develop in Ruby on Rails using PostgreSQL locally, so I'm trying to install the pg gem. On Ubuntu 12.04. In terminal, I typed in:
gem install pg -v '0.12.2'
Which throws the follo...
Paganism asked 21/9, 2012 at 14:22
2
I'm trying to create a node app that can set itself up on the database end by creating a database then the table and fields after. Below are the two functions I'm using to do each task independentl...
Getty asked 30/8, 2018 at 20:22
16
Solved
$ sudo bundle install
Result
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Using rake (0.9.2.2)
Using i18n (0.6.1)
Using multi_...
Truckload asked 26/10, 2012 at 11:27
0
Pg-promise is Not returning anything for 60s and gets timed out while running server setup with express-generator.
There are no error messages.
All the routes without db.any or similar query, works...
Nevis asked 4/12, 2020 at 23:10
2
Solved
I run a daily backup of my database using pg_dump and pg_restore that recently stopped working after I pushed an update.
I have a function validate_id that's a Case/When statement just as a quick c...
Paradies asked 20/8, 2020 at 21:19
19
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 using RVM.
The above command shows me the following error.
The error ...
Gemstone asked 25/6, 2010 at 6:31
3
Solved
So I'm starting to use the Postgres JSON datatype, now that there's a lot of fun stuff you can do with it.
In one of my Rails apps which is not yet Rails 4 (where support for Postgres JSON has been...
Mendive asked 31/10, 2013 at 19:44
1 Next >
© 2022 - 2024 — McMap. All rights reserved.