Top "Postgresql-9.5" questions

For PostgreSQL questions specific to version 9.5

PostgreSQL INSERT ON CONFLICT UPDATE (upsert) use all excluded values

When you are upserting a row (PostgreSQL >= 9.5), and you want the possible INSERT to be exactly the same as …

postgresql upsert postgresql-9.5
Postgresql - unable to drop database because of some auto connections to DB

Whenever I try to drop database I get: ERROR: database "pilot" is being accessed by other users DETAIL: There is 1 …

postgresql postgresql-9.2 postgresql-9.5
Use multiple conflict_target in ON CONFLICT clause

I have two columns in table col1, col2, they both are unique indexed (col1 is unique and so is col2). …

postgresql upsert postgresql-9.5
How to correctly do upsert in postgres 9.5

correct syntax of upsert with postgresql 9.5, below query shows column reference "gallery_id" is ambiguous error , why? var dbQuery = `INSERT …

sql postgresql upsert postgresql-9.5
psql: server does not support SSL, but SSL was required

Trying to connect to postgresql server using command prompt. Command used: psql "sslmode=require host=localhost dbname=test" Error thrown: …

database ssl postgresql-9.5
Appending (pushing) and removing from a JSON array in PostgreSQL 9.5+

For versions less than 9.5 see this question I have created a table in PostgreSQL using this: CREATE TEMP TABLE jsontesting …

arrays postgresql jsonb postgresql-9.5 array-push
Postgres Tutorial: pg_restore: [archiver] input file does not appear to be a valid archive

I'm working through the Postgres DVD tutorial and am running into issues importing their sample database. Running pg_restore -U …

postgresql tar pg-restore postgresql-9.5
Adding value to Postgres integer array

I am looking for help in adding a value 10 to an int[] in PostgreSQL 9.5. Looking at the documentation I should …

arrays postgresql postgresql-9.5
No unique or exclusion constraint matching the ON CONFLICT

I'm getting the following error when doing the following type of insert: Query: INSERT INTO accounts (type, person_id) VALUES (…

sql postgresql postgresql-9.5
will pg_restore overwrite the existing tables?

Say I have two host servers s1 and s2. In both the servers i have a schema named n1, now …

postgresql psql postgresql-9.5 pg-dump pg-restore