Gang Of Coders
Home
About Us
Contact Us
All Postgresql Solutions on Gang of Coders
Total of 1055 Postgresql Solutions
How to switch databases in psql?
Postgresql
Psql
How can I import a JSON file into PostgreSQL?
Sql
Json
Postgresql
Concatenate multiple rows in an array with SQL on PostgreSQL
Sql
Postgresql
How do I import modules or install extensions in Postgres?
Postgresql
How to get the number of deleted rows in PostgreSQL?
Postgresql
Sql Delete
Delete Row
Rowcount
PostgreSQL database service
Windows
Database
Postgresql
DatabaseError: current transaction is aborted, commands ignored until end of transaction block?
Python
Django
Postgresql
Psycopg2
How to migrate a PostgreSQL database into a SQLServer one?
Sql Server
Database
Postgresql
Migration
PostgreSQL sequence based on another column
Sql
Postgresql
Postgresql, update if row with some unique value exists, else insert
Postgresql
Triggers
Plpgsql
How does one drop a template database from PostgreSQL?
Postgresql
Postgresql 9.1
Database Template
Atomic UPDATE .. SELECT in Postgres
Multithreading
Postgresql
Concurrency
Race Condition
Transaction Isolation
postgresql - can't create database - OperationalError: source database "template1" is being accessed by other users
Postgresql
Postgresql 8.4
Setting application_name on Postgres/SQLAlchemy
Postgresql
Sqlalchemy
Psycopg2
How to compute the sum of multiple columns in PostgreSQL
Postgresql
Postgres Query execution time
Postgresql
How can I tell if PostgreSQL's Autovacuum is running on UNIX?
Postgresql
Unix
Autovacuum
Why is it best to store a telephone number as a string vs. integer?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Postgresql
Ruby on-Rails-4
SQLAlchemy no password supplied error
Postgresql
Sqlalchemy
How to convert PostgreSQL 9.4's jsonb type to float
Sql
Postgresql
Casting
Jsonb
Postgresql 9.4
Node.js, PostgreSQL error: no pg_hba.conf entry for host
node.js
Postgresql
Express
Heroku
"extra data after last expected column" while trying to import a csv file into postgresql
Postgresql
Csv
Postgresql 9.3
postgresql migrating JSON to JSONB
Postgresql
Ddl
Jsonb
Bulk insert, update if on conflict (bulk upsert) on Postgres
Sql
Postgresql
Upsert
Convert a UTC timezone in postgresql to EST (local time)
Postgresql
Timezone
Retrieving Comments from a PostgreSQL DB
Postgresql
Metadata
How can I merge the columns from two tables into one output?
Sql
Postgresql
What's the fastest way to do a bulk insert into Postgres?
Postgresql
Bulkinsert
How can I put a database under git (version control)?
Database
Git
Version Control
Postgresql
PostgreSQL: Select where timestamp is empty
Postgresql
SQLAlchemy or psycopg2?
Python
Postgresql
Sqlalchemy
Psycopg2
Passing list of parameters to SQL in psycopg2
Python
Postgresql
Psycopg2
Adding named foreign key constraints in a SQL Create statement
Sql
Sql Server
Postgresql
Constraints
Create Table
Creating temporary tables in SQL
Sql
Postgresql
Temp Tables
psql - loop variable of loop over rows must be a record or row variable or list of scalar variables
Postgresql
Psql
Calling functions with exec instead of select
Postgresql
Psql
How should I import data from CSV into a Postgres table using pgAdmin 3?
Postgresql
Pgadmin
Order By Date ASC with Spring Data
Java
Sql
Spring
Postgresql
Spring Data
Postgres Error: More than one row returned by a subquery used as an expression
Sql
Database
Postgresql
Subquery
Dblink
Mongoose: Schema vs Model?
node.js
Mongodb
Postgresql
Mongoose
Database
Adding a new value to an existing ENUM Type
Database
Postgresql
Enums
SQLAlchemy - performing a bulk upsert (if exists, update, else insert) in postgresql
Python
Postgresql
Sqlalchemy
Flask Sqlalchemy
PostgreSQL ERROR: INSERT has more target columns than expressions, when it doesn't
Postgresql
Difference between JSON and JSONB in Postgres
Json
Postgresql
Sqldatatypes
Jsonb
Extract day of week from date field in PostgreSQL assuming weeks start on Monday
Sql
Postgresql
Date
How to force migrations to a DB if some tables already exist in Django?
Python
Django
Postgresql
Migrate
What does exclusion constraint `EXCLUDE USING gist (c WITH &&)` mean?
Postgresql
Exclusion Constraint
Create unique constraint with null columns
Sql
Postgresql
Database Design
Null
Referential Integrity
Postgresql GROUP_CONCAT equivalent?
Sql
Postgresql
Group Concat
String Aggregation
How to do case-insensitive order in Rails with postgresql
Ruby on-Rails
Ruby
Postgresql
Sql Order-By
Case Insensitive
How to export table data to file
Postgresql
List all index names, column names and its table name of a PostgreSQL database
Postgresql
Install pdo for postgres Ubuntu
Postgresql
Pdo
Postgres multiple joins
Postgresql
How does the search_path influence identifier resolution and the "current schema"
Postgresql
Schema
Database Table
Search Path
Update column value PostgreSQL
Sql
Postgresql
Inserting a record into a table with a column declared with the SERIAL function
Database
Postgresql
Why psql can't find relation name for existing table?
Postgresql
Schema
Psql
How to install PostgreSQL's pg gem on Ubuntu?
Ruby
Postgresql
Pg
Python psycopg2 not inserting into postgresql table
Python
Postgresql
Insert
Psycopg2
How to calculate DATE Difference in PostgreSQL?
Postgresql
Datediff
How to get into psql of a running postgres container?
Postgresql
Docker
Fig
How to generate a Postgresql Dump from a Docker container?
Postgresql
Docker
Containers
PostgreSQL - Iterate over results of query
Sql
Postgresql
Plpgsql
How to use a PostgreSQL container with existing data?
Postgresql
Docker
Gem::LoadError: can't activate pg (~> 0.18), already activated pg-1.0.0
Ruby on-Rails
Ruby
Postgresql
Bundler
Rails Migrations
C# .NET + PostgreSQL
C#
.Net
Postgresql
Postgresql: how to create table only if it does not already exist?
Sql
Database
Postgresql
How to create User/Database in script for Docker Postgres
Bash
Postgresql
Docker
Dockerhub
Postgres - Function to return the intersection of 2 ARRAYs?
Sql
Postgresql
Unable to connect PostgreSQL to remote database using pgAdmin
Postgresql
Pgadmin
Postgres Alter Column Integer to Boolean
Database
Postgresql
Maximum (usable) number of rows in a Postgresql table
Postgresql
How to list custom types using Postgres information_schema
Sql
Postgresql
How to read all rows from huge table?
Java
Postgresql
Jdbc
Quickest way to find out heroku database size
Ruby on-Rails
Postgresql
Heroku
How to reuse a result column in an expression for another result column
Sql
Postgresql
Subquery
Improving OFFSET performance in PostgreSQL
Database
Postgresql
Query Optimization
Postgres FK referencing composite PK
Postgresql
SQL Sub queries in check constraint
Postgresql
Foreign Key-Relationship
Plpgsql
Check Constraints
Iterating over integer[] in PL/pgSQL
Arrays
Postgresql
Loops
Plpgsql
Postgresql 8.4
encoding UTF8 does not match locale en_US; the chosen LC_CTYPE setting requires encoding LATIN1
Postgresql
Encoding
Opennms
Don't update column if update value is null
Sql
Postgresql
Null
Sql Update
GROUP BY + CASE statement
Sql
Postgresql
Group By
Case
Aggregate Functions
How do I remove all spaces from a field in a Postgres database in an update query?
Postgresql
PostgreSQL calculate difference between rows
Sql
Postgresql
Postgres - aggregate two columns into one item
Sql
Arrays
Postgresql
Aggregate Functions
How to install psycopg2 with pg_config error?
Python
Postgresql
Psycopg2
Turn postgres date representation into ISO 8601 string
Postgresql
Date
Elixir
Iso8601
Ecto
Postgresql - unrecognized configuration parameter
Postgresql
Psql
how do I group by by hour in postgresql with a "time" field?
Sql
Postgresql
How to count number of occurrences for all different values in database column?
Sql
Database
Postgresql
SQL explain plan: what is Materialize?
Sql
Postgresql
Sql Execution-Plan
psql: could not connect to server: No such file or directory (Mac OS X)
Macos
Postgresql
How can I add a column that doesn't allow nulls in a Postgresql database?
Sql
Postgresql
Alter Table
What is the PostgreSQL equivalent for ISNULL()
Sql Server
Postgresql
Null
Migrate database from Postgres to MySQL
Mysql
Database
Postgresql
Postgresql -bash: psql: command not found
Linux
Postgresql
Psql
DROP FUNCTION without knowing the number/type of parameters?
Sql
Postgresql
Plpgsql
Dynamic Sql
Ddl
PostgreSQL copy command generate primary key id
Postgresql
Library not loaded: /usr/local/lib/libpq.5.4.dylib
Postgresql
Macos
Homebrew
Ruby on-Rails-3.1
Libreadline
Unique Constraint Over Multiple Columns
Hibernate
Postgresql
Seam
Hibernate Mapping
Seam2
Rename enum item in PostgreSQL
Postgresql
Postgresql 9.1
How to get a status of a running query in postgresql database
Postgresql
Postgresql 8.4
How to use SQL LIKE condition with multiple values in PostgreSQL?
Sql
Postgresql
Postgresql 9.1
What does regclass mean in Postgresql
Postgresql
Create Table
postgreSQL: how to duplicate a row
Postgresql
Import postgres database without roles
Sql
Database
Postgresql
Import
Psql
TypeError: 'int' object does not support indexing
Python
Sql
Postgresql
PostgreSQL error when trying to create an extension
Database
Postgresql
In Redshift/Postgres, how to count rows that meet a condition?
Postgresql
Amazon Web-Services
Amazon Redshift
PostgreSQL Get a random datetime/timestamp between two datetime/timestamp
Sql
Database
Postgresql
Datetime
Timestamp
PG::ConnectionBad: fe_sendauth: no password supplied
Ruby on-Rails
Postgresql
Authentication
Update multiple rows in same query using PostgreSQL
Sql
Postgresql
Change primary key in PostgreSQL table
Postgresql
Primary Key
psycopg2 insert python dictionary as json
Python
Postgresql
Dictionary
Psycopg2
Postgresql Database export to .sql file
Postgresql
Postgresql 9.1
Steps to Troubleshoot "django.db.utils.ProgrammingError: permission denied for relation django_migrations"
Python
Django
Apache
Postgresql
Github
PostgreSQL "Column does not exist" but it actually does
Sql
Postgresql
Quoted Identifier
How to use homebrew to downgrade postgresql from 10.1 to 9.6 on Mac OS
Macos
Postgresql
Downgrade
Postgresql Docker role does not exist
Database
Postgresql
Docker
PostgreSQL UNIX domain sockets vs TCP sockets
Performance
Postgresql
Tcp
Sockets
How to set a Postgresql default value datestamp like 'YYYYMM'?
Datetime
Postgresql
Default Value
How to find table creation time?
Postgresql
Stop (long) running SQL query in PostgreSQL when session or requests no longer exist?
Sql
Postgresql
How to insert 'NULL' values into PostgreSQL database using Python?
Python
Postgresql
Null
Psycopg2
Nonetype
Comment character/characters in postgres / postgresql / psql?
Postgresql
Comments
Psql
list of schema with sizes (relative and absolute) in a PostgreSQL database
Postgresql
Finding columns that are NOT NULL in PostgreSQL
Sql
Postgresql
Information Schema
How to store array or multiple values in one column
Sql
Arrays
Postgresql
Types
Postgres is failing with 'could not open relation mapping file "global/pg_filenode.map" '
Macos
Homebrew
Postgresql
PostgreSQL Where count condition
Sql
Postgresql
Group By
Having
Select today's (since midnight) timestamps only
Postgresql
Date
Datetime
Timestamp
Postgresql 8.4
Primary & Foreign Keys in pgAdmin
Postgresql
Foreign Keys
Primary Key
Pgadmin
hibernate could not get next sequence value
Hibernate
Postgresql
Postgresql SQL GROUP BY time interval with arbitrary accuracy (down to milli seconds)
Postgresql
Group By
What is the maximum number of columns in a PostgreSQL select query
Sql
Postgresql
Postgresql 9.2
Django model: NULLable field
Django
Postgresql
Model
Null
Postgres SELECT ... FOR UPDATE in functions
Postgresql
Plpgsql
Postgresql 9.1
Select for-Update
How to connect with host PostgreSQL from vagrant virtualbox machine
Postgresql
Networking
Ubuntu 12.04
Virtualbox
Vagrant
How can I get a plain text postgres database dump on heroku?
Sql
Postgresql
Heroku
Cast syntax to convert a sum to float
Sql
Postgresql
Casting
Type Conversion
Postgresql 9.3
Using docker-compose to create tables in postgresql database
Postgresql
Docker
Docker Compose
Scaling Postgres horizontally
Database
Postgresql
Horizontal Scaling
FATAL ERROR lock file "postmaster.pid" already exists
Postgresql
Postgis
PostgreSQL's schemas for multi-tenant applications
Performance
Postgresql
Database Design
Schema
Multi Tenant
Create new local server in pgadmin?
Postgresql
Pgadmin
Java Enums, JPA and Postgres enums - How do I make them work together?
Java
Postgresql
Jpa
Simulating MySQL's ORDER BY FIELD() in Postgresql
Mysql
Postgresql
Escape SQL "LIKE" value for Postgres with psycopg2
Python
Postgresql
Psycopg2
Python Db-Api
Why do all databases have a public schema in PostgreSQL?
Postgresql
How much disk-space is needed to store a NULL value using postgresql DB?
Sql
Postgresql
Types
Nullable
How to set auto increment primary key in PostgreSQL?
Sql
Postgresql
Auto Increment
In Postgresql, force unique on combination of two columns
Sql
Postgresql
Unique
Django: How to access original (unmodified) instance in post_save signal
Python
Django
Postgresql
Denormalization
Django Signals
PostgreSQL: ERROR: 42601: a column definition list is required for functions returning "record"
Postgresql
Parameter Passing
Plpgsql
Set Returning-Functions
How do I enable php to work with postgresql?
Php
Windows
Postgresql
Pdo
How to visualize database tables in postgresql using pgAdmin?
Sql
Database
Postgresql
Pgadmin
How can I import a .sql file into my Heroku postgres database?
Database
Postgresql
Heroku
Import
Postgres Case Sensitivity
Sql
Sql Server
Postgresql
ERROR: delete on table violates foreign key constraint. Key id is still referenced from table (many)
Ruby on-Rails
Postgresql
Sublimetext2
Better Errors-Gem
Heroku transfer db from one app to another
Postgresql
Heroku
How to store array with Ecto using Postgres
Postgresql
Phoenix Framework
Ecto
How to Drop User from Postgres Database
Postgresql
HikariCP Postgresql Driver Claims to not accept JDBC URL
Java
Postgresql
Jdbc
Cloud Foundry
Hikaricp
Remove double quotes from the return of a function in PostgreSQL
Json
Database
Postgresql
Function
No unique or exclusion constraint matching the ON CONFLICT
Sql
Postgresql
Postgresql 9.5
Entity Framework core - Contains is case sensitive or case insensitive?
C#
Database
Postgresql
Linq
Entity Framework-Core
Change language of system and error messages in PostgreSQL
Postgresql
How to list active connections on PostgreSQL?
Sql
Postgresql
Database Connection
Listings
Postgresql - Using subqueries with alter sequence expressions
Sql
Postgresql
Subquery
Sequence
Alter
Slow simple update query on PostgreSQL database with 3 million rows
Sql
Postgresql
Sql Update
PostgreSQL: format interval as minutes
Postgresql
Maximum characters in labels (table names, columns etc)
Postgresql
Keyword
Identifier
PostgreSQL psql terminal command
Linux
Postgresql
Command Line
Psql
Passing user id to PostgreSQL triggers
Postgresql
Triggers
Embedded PostgreSQL for Java JUnit tests
Postgresql
Maven
Junit
Embedded Database
Database Driven
psql: server closed the connection unexepectedly
Sql
Postgresql
Cmd
postgresql: .pgpass not working
Bash
Postgresql
Database Backups
How to use pg_stat_activity?
Debugging
Postgresql
Where is psql client history kept? (~/.psql_history non-existent!)
Postgresql
Psql
How to estimate the size of one column in a Postgres table?
Postgresql
Check if field exists in json type column PostgreSQL
Json
Postgresql
Postgres SSL SYSCALL error: EOF detected with python and psycopg
Python
Postgresql
Ssl
Psycopg2
Pgrouting
How to convert date time into unix epoch value in Postgres?
Postgresql
Datetime
Unix Timestamp
How to connect to a remote PostgreSQL database through SSL with Python
Python
Postgresql
Python 2.7
Ssl
Python 3.6
What is the datatype bytea and when would I use it?
Database
Postgresql
Definition
Bytea
Multi-row insert with pg-promise
Javascript
node.js
Postgresql
Pg Promise
Return to readline version 6.x in Homebrew to fix Postgresql?
Postgresql
Homebrew
Readline
Disable wrapping in Psql output
Bash
Postgresql
Psql
Could not translate host name "db" to address using Postgres, Docker Compose and Psycopg2
Python
Postgresql
Docker
Docker Compose
Psycopg2
PostgreSQL(Full Text Search) vs ElasticSearch
Postgresql
Elasticsearch
Full Text-Search
Which version of PostgreSQL am I running?
Linux
Database
Postgresql
Postgres manually alter sequence
Postgresql
Database Sequence
PostgreSQL DISTINCT ON with different ORDER BY
Sql
Postgresql
Sql Order-By
Distinct On
Backup/Restore a dockerized PostgreSQL database
Database
Postgresql
Backup
Docker
How to find duplicate records in PostgreSQL
Sql
Postgresql
Duplicates
PostgreSQL: Give all permissions to a user on a PostgreSQL database
Sql
Postgresql
Ddl
Privileges
Sql Grant
ERROR: permission denied for sequence cities_id_seq using Postgres
Sql
Postgresql
Permissions
Auto Increment
How to check if a service that I don't know the name of is running on Ubuntu
Linux
Postgresql
Service
Ubuntu 12.04
How to list table foreign keys
Sql
Postgresql
List columns with indexes in PostgreSQL
Sql
Postgresql
Indexing
How to compare dates in datetime fields in Postgresql?
Sql
Database
Postgresql
Date
Difference between timestamps with/without time zone in PostgreSQL
Postgresql
Types
Timestamp
Timezone
Cannot simply use PostgreSQL table name ("relation does not exist")
Php
Sql
Postgresql
Quoted Identifier
You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application
Python
Django
Postgresql
How can I start PostgreSQL server on Mac OS X?
Macos
Postgresql
Homebrew
CASCADE DELETE just once
Postgresql
How to round an average to 2 decimal places in PostgreSQL?
Sql
Ruby
Postgresql
Sequel
How to speed up insertion performance in PostgreSQL
Sql
Postgresql
Bulkinsert
Sql Insert
postgresql - replace all instances of a string within text field
Postgresql
Replace
PostgreSQL delete with inner join
Sql
Postgresql
Postgresql - unable to drop database because of some auto connections to DB
Postgresql
Postgresql 9.2
Postgresql 9.5
How to use RETURNING with ON CONFLICT in PostgreSQL?
Sql
Postgresql
Upsert
Sql Returning
I forgot the password I entered during postgres installation
Postgresql
Postgresql 9.1
Forgot Password
Correct way to install psql without full Postgres on macOS?
Macos
Postgresql
Psql
Macos Sierra
How to stop/kill a query in postgresql?
Postgresql
How to change owner of PostgreSql database?
Postgresql
How to select a schema in postgres when using psql?
Postgresql
Psql
How to add an auto-incrementing primary key to an existing table, in PostgreSQL?
Postgresql
Primary Key
Auto Increment
PostgreSQL create table if not exists
Sql
Postgresql
Ddl
Create Table
Database Table
Export specific rows from a PostgreSQL table as INSERT SQL script
Postgresql
Insert
Export
Sql Scripts
Postgresql Copy
Check if value exists in Postgres array
Sql
Arrays
Postgresql
Library not loaded: /usr/local/opt/readline/lib/libreadline.6.2.dylib
Postgresql
Psql
Libreadline
List all tables in postgresql information_schema
Sql
Postgresql
Information Schema
PostgreSQL naming conventions
Postgresql
Naming Conventions
PostgreSQL Crosstab Query
Sql
Postgresql
Pivot
Case
Crosstab
Why do we need message brokers like RabbitMQ over a database like PostgreSQL?
Postgresql
Redis
Rabbitmq
Message Queue
Celery
Best way to check for "empty or null value"
Sql
Database
Postgresql
Null
Coalesce
How do I ALTER a PostgreSQL table and make a column unique?
Sql
Postgresql
Unique Constraint
How to thoroughly purge and reinstall postgresql on ubuntu?
Postgresql
Ubuntu
Uninstallation
Apt Get
Use email address as primary key?
Sql
Database
Database Design
Postgresql
Save PL/pgSQL output from PostgreSQL to a CSV file
Sql
Postgresql
Csv
Postgresql Copy
Getting error: Peer authentication failed for user "postgres", when trying to get pgsql working with rails
Ruby on-Rails
Postgresql
PostgreSQL query to list all table names?
Postgresql
Postgresql 9.2
Information Schema
Can I add a UNIQUE constraint to a PostgreSQL table, after it's already created?
Sql
Database
Postgresql
Indexing
Unique Constraint
Fastest check if row exists in PostgreSQL
Sql
Postgresql
postgresql - add boolean column to table set default
Sql
Postgresql
Optimise PostgreSQL for fast testing
Sql
Database
Performance
Postgresql
Database Tuning
Select datatype of the field in postgres
Postgresql
How to create a backup of a single table in a postgres database?
Postgresql
Backup
Pg Dump
How do I query using fields inside the new PostgreSQL JSON datatype?
Sql
Json
Postgresql
Postgresql 9.2
Postgresql 9.3
How to create user for a db in postgresql?
Database
Postgresql
Authentication
Connection
Using current time in UTC as default value in PostgreSQL
Postgresql
Timezone
Timestamp
django test app error - Got an error creating the test database: permission denied to create database
Python
Sql
Django
Postgresql
Django Testing
Grouped LIMIT in PostgreSQL: show the first N rows for each group?
Sql
Postgresql
What is the difference between LATERAL JOIN and a subquery in PostgreSQL?
Sql
Postgresql
Subquery
Lateral Join
How to upgrade PostgreSQL from version 9.6 to version 10.1 without losing data?
Postgresql
Upgrade
Get PostGIS version
Postgresql
Postgis
Select rows which are not present in other table
Sql
Postgresql
Null
Left Join
Exists
Postgres unique constraint vs index
Sql
Postgresql
Indexing
Unique
ERROR: there is no unique constraint matching given keys for referenced table "bar"
Sql
Postgresql
Foreign Keys
Unique Constraint
PSQLException: current transaction is aborted, commands ignored until end of transaction block
Postgresql
Jboss
Infinispan
How to see the CREATE VIEW code for a view in PostgreSQL?
Postgresql
View
Definition
psql: FATAL: Peer authentication failed for user "dev"
Postgresql
How to display the function, procedure, triggers source code in postgresql?
Postgresql
What resources exist for Database performance-tuning?
Mysql
Sql Server
Database
Oracle
Postgresql
ORDER BY the IN value list
Sql
Postgresql
Sql Order-By
Sql In
PostgreSQL error: Fatal: role "username" does not exist
Postgresql
Authentication
Can't find the 'libpq-fe.h header when trying to install pg gem
Ruby on-Rails
Ruby on-Rails-3
Postgresql
Rails Postgresql
Pg
Find the host name and port using PSQL commands
Postgresql
Psql
How to add "on delete cascade" constraints?
Postgresql
Constraints
Cascade
Cascading Deletes
Postgresql 8.4
Group query results by month and year in postgresql
Sql
Postgresql
IN vs ANY operator in PostgreSQL
Sql
Postgresql
Sql In
postgresql COUNT(DISTINCT ...) very slow
Performance
Postgresql
Count
Distinct
Connect to a heroku database with pgadmin
Database
Postgresql
Heroku
Pgadmin
How to configure postgresql for the first time?
Linux
Database
Postgresql
Configuration
PostgreSQL ERROR: canceling statement due to conflict with recovery
Postgresql
Postgresql 9.1
How to perform update operations on columns of type JSONB in Postgres 9.4
Postgresql
Sql Update
Crud
Postgresql 9.4
Jsonb
Are PostgreSQL column names case-sensitive?
Sql
Postgresql
Identifier
Case Sensitive
Case Insensitive
psycopg2: insert multiple rows with one query
Python
Postgresql
Psycopg2
How do I convert an interval into a number of hours with postgres?
Datetime
Postgresql
Intervals
PostgreSQL wildcard LIKE for any of a list of words
Sql
Postgresql
psql: FATAL: database "<user>" does not exist
Postgresql
Psql
Why does PostgreSQL perform sequential scan on indexed column?
Postgresql
Indexing
Sequence
Database Scan
PostgreSQL INSERT ON CONFLICT UPDATE (upsert) use all excluded values
Postgresql
Upsert
Postgresql 9.5
How to check if a table exists in a given schema
Sql
Database
Postgresql
Information Schema
Search Path
Postgresql - change the size of a varchar column to lower length
Sql
Postgresql
Varchar
Alter Table
How to get min/max of two integers in Postgres/SQL?
Postgresql
Generate the ERD for an existing database
Database
Postgresql
Erd
PostgreSQL return result set as JSON array?
Json
Postgresql
How do I automatically update a timestamp in PostgreSQL
Database
Postgresql
Timestamp
Rails: Installing PG gem on OS X - failure to build native extension
Ruby on-Rails
Postgresql
Macos
Rubygems
Check if a Postgres JSON array contains a string
Json
Postgresql
Postgresql 9.3
Tools to generate database tables diagram with PostgreSQL?
Postgresql
Diagram
Repairing Postgresql after upgrading to OSX 10.7 Lion
Ruby on-Rails
Ruby on-Rails-3
Macos
Postgresql
Osx Lion
How do you find the disk size of a Postgres / PostgreSQL table and its indexes
Postgresql
Completely uninstall PostgreSQL 9.0.4 from Mac OSX Lion?
Macos
Postgresql
Osx Lion
Uninstallation
postgresql list and order tables by size
Sql
Postgresql
Postgresql 9.3
Is it possible to specify the schema when connecting to postgres with JDBC?
Java
Database
Postgresql
Jdbc
Database Schema
List all sequences in a Postgres db 8.1 with SQL
Sql
Database
Postgresql
Migration
Sequences
Can PostgreSQL index array columns?
Arrays
Postgresql
Indexing
How to alter a column's data type in a PostgreSQL table?
Sql
Postgresql
Psql
Alter Table
Alter Column
Which data type for latitude and longitude?
Postgresql
Types
Latitude Longitude
Postgis
Change type of varchar field to integer: "cannot be cast automatically to type integer"
Postgresql
Casting
Postgresql 9.1
Fieldtype
Is it better to use multiple databases with one schema each, or one database with multiple schemas?
Database
Database Design
Postgresql
Database Permissions
How to concatenate columns in a Postgres SELECT?
Sql
Postgresql
Types
Concatenation
Coalesce
How big is too big for a PostgreSQL table?
Sql
Ruby on-Rails
Performance
Postgresql
Database Design
Truncating all tables in a Postgres database
Postgresql
Plpgsql
Dynamic Sql
Truncate
Database Table
psql invalid command \N while restore sql
Sql
Postgresql
Dump
How to add column if not exists on PostgreSQL?
Postgresql
Postgresql 9.1
PostgreSQL: Which Datatype should be used for Currency?
Sql
Postgresql
Database Design
PostgreSQL: role is not permitted to log in
Postgresql
Permissions
Roles
Concatenate multiple result rows of one column into one, group by another column
Sql
Postgresql
Aggregate Functions
Creating a copy of a database in PostgreSQL
Postgresql
Difference between text and varchar (character varying)
String
Postgresql
Text
Types
Varchar
How do I temporarily disable triggers in PostgreSQL?
Postgresql
Triggers
Bulkinsert
Right query to get the current number of connections in a PostgreSQL DB
Sql
Database
Postgresql
Dbconnection
Psql could not connect to server: No such file or directory, 5432 error?
Postgresql
Vagrant
error installing psycopg2, library not found for -lssl
Python
Postgresql
Psycopg2
How do I get the MIN() of two fields in Postgres?
Sql
Postgresql
Min
Strange SQLAlchemy error message: TypeError: 'dict' object does not support indexing
Python
Postgresql
Sqlalchemy
GUI Tool for PostgreSQL
Postgresql
Postgres: clear entire database before re-creating / re-populating from bash script
Database
Backup
Postgresql
Fast way to discover the row count of a table in PostgreSQL
Sql
Postgresql
Count
Rowcount
Query for array elements inside JSON type
Sql
Json
Postgresql
Jsonb
Lateral
how to emulate "insert ignore" and "on duplicate key update" (sql merge) with postgresql?
Postgresql
How do I change column default value in PostgreSQL?
Postgresql
SQL, Postgres OIDs, What are they and why are they useful?
Sql
Database
Performance
Postgresql
Escaping keyword-like column names in Postgres
Sql
Postgresql
Postgresql 9.2 pg_dump version mismatch
Postgresql
Backup
Pg Dump
Postgresql 9.2
Simulate CREATE DATABASE IF NOT EXISTS for PostgreSQL?
Sql
Database
Postgresql
Jdbc
Ddl
SQL query to get all values a enum can have
Postgresql
Enums
How do I convert an integer to string as part of a PostgreSQL query?
Postgresql
Postgresql 9.1
PostgreSQL - max number of parameters in "IN" clause?
Postgresql
PostgreSQL delete all content
Postgresql
Possible to perform cross-database queries with PostgreSQL?
Sql
Postgresql
What does GRANT USAGE ON SCHEMA do exactly?
Database
Postgresql
Schema
Sql Grant
Database Permissions
Create PostgreSQL ROLE (user) if it doesn't exist
Sql
Postgresql
Roles
Dynamic Sql
How can I get a list of all functions stored in the database of a particular schema in PostgreSQL?
Postgresql
Function
postgresql: INSERT INTO ... (SELECT * ...)
Sql
Postgresql
Insert
Dblink
Postgresql SELECT if string contains
Postgresql
Postgresql query between date ranges
Sql
Postgresql
Date
Intervals
Between
What are the pros and cons of performing calculations in sql vs. in your application
Java
.Net
Sql
Performance
Postgresql
How to reset sequence in postgres and fill id column with new data?
Postgresql
Sequence
SQL: Subtracting 1 day from a timestamp date
Sql
Postgresql
Date
Casting
Timestamp
Getting "[archiver] unsupported version (1.13) in file header" when running pg_restore
Postgresql
Heroku
Pg Restore
postgresql foreign key syntax
Sql
Postgresql
Foreign Keys
Relational Database
Foreign Key-Relationship
Postgres: check if array field contains value?
Postgresql
Query a parameter (postgresql.conf setting) like "max_connections"
Postgresql
Configuration
Settings
Postgresql 9.1
Ignoring time zones altogether in Rails and PostgreSQL
Ruby on-Rails
Ruby on-Rails-3
Postgresql
Datetime
Timezone
How to drop a PostgreSQL database if there are active connections to it?
Postgresql
How do you use script variables in psql?
Sql
Postgresql
Variables
Psql
Django-DB-Migrations: cannot ALTER TABLE because it has pending trigger events
Python
Django
Postgresql
Django Migrations
How to customize the configuration file of the official PostgreSQL Docker image?
Postgresql
Docker
How do I alter the position of a column in a PostgreSQL database table?
Sql
Database
Postgresql
Alter Table
Permanently Set Postgresql Schema Path
Sql
Postgresql
Store query result in a variable using in PL/pgSQL
Database
Postgresql
Stored Procedures
Plpgsql
Postgresql 9.1
Insert, on duplicate update in PostgreSQL?
Postgresql
Upsert
Run a query with a LIMIT/OFFSET and also get the total number of rows
Sql
Postgresql
Count
Pagination
Limit
How to increase the max connections in postgres?
Postgresql
SQL update fields of one table from fields of another one
Sql
Postgresql
Sql Update
Dynamic Sql
SQL query to find record with ID not in another table
Sql
Database
Postgresql
Extension exists but uuid_generate_v4 fails
Postgresql
Amazon Web-Services
Amazon Ec2
input file appears to be a text format dump. Please use psql
Postgresql
Backup
Pg Restore
postgresql port confusion 5433 or 5432?
Postgresql
Port
Psql
How to delete an enum type value in postgres?
Postgresql
Enums
Postgres: Distinct but only for one column
Postgresql
Select
Distinct
PostgreSQL disable more output
Postgresql
Psql
Pager
Find difference between timestamps in seconds in PostgreSQL
Postgresql
Heroku "psql: FATAL: remaining connection slots are reserved for non-replication superuser connections"
Postgresql
Heroku
Postgresql: Conditionally unique constraint
Postgresql
Constraints
Unique Constraint
What is a "Bitmap heap scan" in a query plan?
Postgresql
Indexing
Sql Execution-Plan
Can't find the PostgreSQL client library (libpq)
Ruby on-Rails
Ruby on-Rails-3
Postgresql
Rubygems
Is there a way to set an "expiry" time, after which a data entry is automatically deleted in PostgreSQL?
Database
Postgresql
Ttl
Getting the encoding of a Postgres database
Postgresql
Check if database exists in PostgreSQL using shell
Postgresql
Shell
Create database from command line
Postgresql
How to import CSV file data into a PostgreSQL table
Postgresql
Csv
Postgresql Copy
postgres: upgrade a user to be a superuser?
Sql
Postgresql
How to check postgres user and password?
Postgresql
PostgreSQL CASE ... END with multiple conditions
Postgresql
Case
Add timestamp column with default NOW() for new rows only
Postgresql
How to add multiple columns to a table in Postgres?
Postgresql
Pgadmin
PostgreSQL - Rename database
Sql
Postgresql
How do I cast a string to integer and have 0 in case of error in the cast with PostgreSQL?
Sql
Postgresql
Casting
Using pg_dump to only get insert statements from one table within database
Postgresql
How to drop multiple columns in postgresql
Postgresql
How to get a list column names and datatypes of a table in PostgreSQL?
Sql
Postgresql
Sqldatatypes
Why unsigned integer is not available in PostgreSQL?
Postgresql
Unsigned Integer
Rails: FATAL - Peer authentication failed for user (PG::Error)
Ruby on-Rails
Postgresql
Ruby on-Rails-3
Ruby on-Rails-3.1
Ubuntu 11.10
list Postgres ENUM type
Postgresql
How to quickly drop a user with existing privileges
Postgresql
How to list records with date from the last 10 days?
Sql
Postgresql
How do I force Postgres to use a particular index?
Sql
Postgresql
Indexing
How to extract year and month from date in PostgreSQL without using to_char() function?
Sql
Postgresql
Delete duplicate rows from small table
Sql
Postgresql
Typecast string to integer
Postgresql
PostgreSQL array of elements that each are a foreign key
Postgresql
Foreign Keys
Foreign Collection
What is the difference between CHARACTER VARYING and VARCHAR in PostgreSQL?
Database
Postgresql
Varchar
Varying
PostgreSQL: insert from another table
Sql
Postgresql
Insert
Append
PostgreSQL error 'Could not connect to server: No such file or directory'
Postgresql
Osx Snow-Leopard
Homebrew
How can I export the schema of a database in PostgreSQL?
Postgresql
Schema
Export
How to use multiple WITH statements in one PostgreSQL query?
Sql
Postgresql
Common Table-Expression
How to search a specific value in all tables (PostgreSQL)?
Postgresql
Grep
String Matching
Export Postgresql table data using pgAdmin
Database
Postgresql
Export
Pgadmin
What is PostgreSQL equivalent to autoincrement?
Postgresql
How to include "zero" / "0" results in COUNT aggregate?
Sql
Postgresql
Aggregate Functions
printing a value of a variable in postgresql
Sql
Postgresql
docker postgres pgadmin local connection
Postgresql
Docker
Pgadmin
How to create index on JSON field in Postgres?
Json
Postgresql
Indexing
Postgresql 9.3
How to write DataFrame to postgres table
Python
Postgresql
Pandas
Sqlalchemy
How to sort the result from string_agg()
Sql
Postgresql
String Aggregation
Running PostgreSQL in memory only
Postgresql
Unit Testing
Postgresql Performance
Increment a value in Postgres
Postgresql
Increment
PostgreSQL database default location on Linux
Linux
Postgresql
How to do an update + join in PostgreSQL?
Postgresql
Join
Sql Update
Run a PostgreSQL .sql file using command line arguments
Postgresql
Command Line
Psql
What is this JavaScript "require"?
Javascript
Database
Postgresql
node.js
How to reset postgres' primary key sequence when it falls out of sync?
Postgresql
Primary Key
Database Sequence
invalid byte sequence for encoding "UTF8"
Postgresql
Import
Python/postgres/psycopg2: getting ID of row just inserted
Python
Postgresql
Psycopg2
Padding zeros to the left in postgreSQL
Sql
Postgresql
How to change column datatype from character to numeric in PostgreSQL 8.4
Postgresql
How to create function that returns nothing
Postgresql
Function
Plpgsql
Void
How to restart Postgresql
Postgresql
Linux Mint
Postgres: "ERROR: cached plan must not change result type"
Postgresql
How to configure PostgreSQL to accept all incoming connections
Postgresql
How do I delete a fixed number of rows with sorting in PostgreSQL?
Sql
Postgresql
PostgreSQL array_agg order
Postgresql
Array Agg
Computed / calculated / virtual / derived columns in PostgreSQL
Sql
Postgresql
Generated Columns
how to exclude null values in array_agg like in string_agg using postgres?
Sql
Postgresql
Postgresql 9.1
Postgresql 8.4
postgres default timezone
Postgresql
Copy table structure into new table
Sql
Postgresql
Can you create an index in the CREATE TABLE definition?
Postgresql
Psql list all tables
Postgresql
Psql
Disable PostgreSQL foreign key checks for migrations
Postgresql
PostgreSQL LIKE query performance variations
Postgresql
Indexing
Pattern Matching
Query Optimization
Sql Like
ALTER TABLE, set null in not null column, PostgreSQL 9.1
Postgresql
Null
Postgresql 9.1
Change column type and set not null
Postgresql
What is PostgreSQL explain telling me exactly?
Postgresql
Postgres: How to do Composite keys?
Sql
Postgresql
Composite Key
sql ORDER BY multiple values in specific order?
Sql
Postgresql
Sql Order-By
How to implement a many-to-many relationship in PostgreSQL?
Sql
Database
Postgresql
Database Design
Many to-Many
Cannot connect to Postgres server running through brew services
Macos
Postgresql
Homebrew
MySQL vs PostgreSQL for Web Applications
Mysql
Postgresql
How to return result of a SELECT inside a function in PostgreSQL?
Sql
Postgresql
Return
Plpgsql
Return Type
Rails 4 LIKE query - ActiveRecord adds quotes
Sql
Ruby on-Rails
Ruby
Postgresql
Activerecord
Get Error: You must install at least one postgresql-client-<version> package when deploy to heroku
Ruby on-Rails-3
Postgresql
Heroku
Use multiple conflict_target in ON CONFLICT clause
Postgresql
Upsert
Postgresql 9.5
Storing Images in PostgreSQL
Postgresql
Image
PostgreSQL - fetch the rows which have the Max value for a column in each GROUP BY group
Sql
Postgresql
Query Optimization
Cbo
Cost Based-Optimizer
proper hibernate annotation for byte[]
Java
Database
Hibernate
Postgresql
Blob
Update or Insert (multiple rows and columns) from subquery in PostgreSQL
Sql
Postgresql
Sql Update
postgresql - sql - count of `true` values
Sql
Postgresql
PostgreSQL query to return results as a comma separated list
Sql
Postgresql
How to list indexes created for table in postgres
Postgresql
Indexing
Psql
sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgres
Python
Postgresql
Sqlalchemy
Flask Sqlalchemy
Psycopg2
How do you use variables in a simple PostgreSQL script?
Postgresql
Variables
Insert text with single quotes in PostgreSQL
Sql
Postgresql
Quotes
String Literals
How to find the size of an array in postgresql
Sql
Arrays
Postgresql
Size
Where are the PostgreSQL logs on macOS?
Postgresql
Logging
Macos
How to make connection to Postgres via Node.js
Postgresql
node.js
how to display full stored procedure code?
Postgresql
Stored Procedures
Why is iterating through a large Django QuerySet consuming massive amounts of memory?
Sql
Django
Postgresql
Django Orm
Creating a database dump for specific tables and entries Postgres
Postgresql
postgresql return 0 if returned value is null
Sql
Postgresql
How to get difference of days/months/years (datediff) between two dates?
Sql Server
Postgresql
Date
Sql Date-Functions
Import SQL dump into PostgreSQL database
Database
Postgresql
psql: FATAL: role "postgres" does not exist
Macos
Postgresql
Terminal
String literals and escape characters in postgresql
String
Postgresql
Escaping
How can I use UUIDs in SQLAlchemy?
Python
Postgresql
Sqlalchemy
org.postgresql.util.PSQLException: FATAL: sorry, too many clients already
Java
Sql
Postgresql
Jdbc
Postgres NOT in array
Arrays
Postgresql
Postgresql not creating db with “createdb” as superuser, yet not outputting errors
Postgresql
Psql
Postgresql tables exists, but getting "relation does not exist" when querying
Sql
Postgresql
Which timestamp type should I choose in a PostgreSQL database?
Postgresql
Timezone
Timestamp
Change from SQLite to PostgreSQL in a fresh Rails project
Ruby on-Rails
Database
Sqlite
Postgresql
Heroku
Django connection to PostgreSQL: "Peer authentication failed"
Django
Postgresql
Can not connect to local PostgreSQL
Ruby on-Rails
Macos
Postgresql
Postgres could not connect to server
Ruby on-Rails
Database
Postgresql
Macos
Homebrew
Does PostgreSQL support "accent insensitive" collations?
Sql
Postgresql
Localization
Indexing
Pattern Matching
Select Row number in postgres
Sql
Postgresql
Window Functions
How to solve privileges issues when restore PostgreSQL Database
Postgresql
Database Backups
Rails Postgresql
subquery in FROM must have an alias
Sql
Oracle
Postgresql
Subquery
How to find a table having a specific column in postgresql
Sql
Database
Postgresql
Postgresql 9.1
Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?
Ruby on-Rails
Ruby
Postgresql
Ruby on-Rails-3
Ruby on-Rails-4
pgadmin4 : postgresql application server could not be contacted.
Postgresql
Configuration
Pgadmin 4
AssertionError: database connection isn't set to UTC
Django
Postgresql
PostgreSQL, checking date relative to "today"
Sql
Postgresql
How to check status of PostgreSQL server Mac OS X
Macos
Postgresql
Cannot create a database table named 'user' in PostgreSQL
Postgresql
Hibernate
Identifier
Reserved Words
SQL SELECT speed int vs varchar
Sql
Performance
Postgresql
Select
What are '$$' used for in PL/pgSQL
Postgresql
Plpgsql
Quotes
Dollar Sign
Dollar Quoting
Double colon (::) notation in SQL
Sql
Postgresql
Casting
Adding 'serial' to existing column in Postgres
Postgresql
Calculating Cumulative Sum in PostgreSQL
Sql
Postgresql
Window Functions
Analytic Functions
Cumulative Sum
Simple Random Samples from a Sql database
Mysql
Sql
Postgresql
Random
How can I stop a Postgres script when it encounters an error?
Postgresql
Error Handling
Psql
'password authentication failed for user "postgres"'
Postgresql
Division ( / ) not giving my answer in postgresql
Sql
Postgresql
Division
Modulo
psql: command not found Mac
Macos
Bash
Postgresql
Psql
Postgis installation: type "geometry" does not exist
Postgresql
Geometry
Postgis
Postgresql aggregate array
Sql
Arrays
Postgresql
Find rows with multiple duplicate fields with Active Record, Rails & Postgres
Ruby on-Rails
Postgresql
Activerecord
PostgreSQL: Why psql can't connect to server?
Postgresql
Psql
PostgreSQL: How to pass parameters from command line?
Postgresql
Parameters
Copying PostgreSQL database to another server
Database
Postgresql
Generating time series between two dates in PostgreSQL
Postgresql
Date
Time Series
Postgresql 9.1
Generate Series
Export and import table dump (.sql) using pgAdmin
Postgresql
Postgresql 9.2
Pgadmin
Postgresql - backup database and restore on different owner?
Database
Postgresql
Database Backups
Database Restore
Owner
How can I start PostgreSQL on Windows?
Postgresql
How to import existing *.sql files in PostgreSQL 8.4?
Postgresql
Import
Convert SQLITE SQL dump file to POSTGRESQL
Database
Sqlite
Postgresql
Migration
How to connect Postgres to localhost server using pgAdmin on Ubuntu?
Postgresql
Database Connection
Pgadmin
Generate a random number in the range 1 - 10
Sql
Postgresql
Random
How do you create a random string that's suitable for a session ID in PostgreSQL?
Postgresql
Random
Sort NULL values to the end of a table
Sql
Postgresql
Null
Sql Order-By
How can I get pg_dump to authenticate properly
Postgresql
Pg Dump
Postgresql Select rows where column = array
Postgresql
Delete rows with foreign key in PostgreSQL
Sql
Postgresql
Foreign Keys
Cascading Deletes
Postgres: INSERT if does not exist already
Postgresql
Sql Insert
Upsert
How do I get the current timezone name in Postgres 9.3?
Postgresql
Datetime
Timezone
Docker - How can run the psql command in the postgres container?
Postgresql
Docker
Docker Compose
Constraint name update in PostgreSQL
Postgresql
Constraints
Is there a timeout for idle PostgreSQL connections?
Postgresql
Database Connection
PostgreSQL: Resetting password of PostgreSQL on Ubuntu
Postgresql
Unix
Postgres: How to convert a json string to text?
Json
Postgresql
Terminate hung query (idle in transaction)
Postgresql
How do I insert multiple values into a postgres table at once?
Postgresql
Sql Insert
Multiple Records
How to set up a PostgreSQL database in Django
Python
Django
Postgresql
Psycopg2
Django Settings
Rails and PostgreSQL: Role postgres does not exist
Ruby on-Rails
Postgresql
Rake
Grant all on a specific schema in the db to a group role in PostgreSQL
Postgresql
Database Design
Roles
Privileges
Sql Grant
How to make a select with array contains value clause in psql
Postgresql
Postgresql 9.2
Display select results vertically in psql, as is done by MySQL's \G
Postgresql
Psql
Query grants for a table in postgres
Sql
Postgresql
Sql Grant
PostgreSQL unnest() with element number
Sql
Arrays
Postgresql
Window Functions
Set Returning-Functions
Createuser: could not connect to database postgres: FATAL: role "tom" does not exist
Database
Postgresql
Avoid division by zero in PostgreSQL
Sql
Postgresql
Null
Aggregate Functions
Divide by-Zero
How do you create a read-only user in PostgreSQL?
Postgresql
How to detect query which holds the lock in Postgres?
Sql
Postgresql
Locking
How do I copy data from one table to another in postgres using copy command
Sql
Postgresql
Copy
Difference between DECIMAL and NUMERIC datatype in PSQL
Postgresql
Rdbms
Sqldatatypes
Store select query's output in one array in postgres
Sql
Arrays
Postgresql
Plpgsql
Impossible to Install PG gem on my mac with Mavericks
Ruby on-Rails
Postgresql
Gem
Osx Mavericks
What is the difference between `->>` and `->` in Postgres SQL?
Sql
Json
Postgresql
How to do a Postgresql subquery in select clause with join in from clause like SQL Server?
Sql
Sql Server
Postgresql
Subquery
quick random row selection in Postgres
Postgresql
Random
IN Clause with NULL or IS NULL
Sql
Postgresql
Null
Conditional Statements
In Clause
How to add number of days in postgresql datetime
Postgresql
Datetime
"ERROR: must be member of role" When creating schema in PostgreSQL
Postgresql
Roles
How to turn a json array into rows in postgres
Arrays
Json
Postgresql
How to check connected user on psql
Postgresql
Update timestamp when row is updated in PostgreSQL
Postgresql
Timestamp
The infamous java.sql.SQLException: No suitable driver found
Postgresql
Tomcat
Jdbc
Geoserver
eliminate duplicate array values in postgres
Postgresql
Can I use return value of INSERT...RETURNING in another INSERT?
Postgresql
Sql Returning
Where does PostgreSQL store configuration/conf files?
Postgresql
Ubuntu
Configuration
How do I specify a password to 'psql' non-interactively?
Postgresql
Bash
Command Line
Psql
Using row_to_json() with nested joins
Postgresql
IF-THEN-ELSE statements in postgresql
Sql
Postgresql
Postgresql extract last row for each id
Sql
Postgresql
Greatest N-per-Group
Adding comment to column when I create table in PostgreSQL?
Postgresql
Comments
Ddl
Postgres dump of only parts of tables for a dev snapshot
Postgresql
How to compare data between two databases in PostgreSQL?
Postgresql
Schema Compare
cannot get simple PostgreSQL insert to work
Sql
Postgresql
String Constant
Error: No module named psycopg2.extensions
Python
Django
Postgresql
Psycopg2
Postgres user does not exist?
Macos
Postgresql
How do I login and authenticate to Postgresql after a fresh install?
Postgresql
Authentication
Passwords
Ident
Generating a UUID in Postgres for Insert statement?
Postgresql
Uuid
Postgresql 8.4
Postgres: how do you round a timestamp up or down to the nearest minute?
Postgresql
How to filter SQL results in a has-many-through relation
Mysql
Sql
Postgresql
Sql Match-All
Relational Division
How to copy from CSV file to PostgreSQL table with headers in CSV file?
Postgresql
Csv
Postgresql Copy
Is it better to create an index before filling a table with data, or after the data is in place?
Sql
Database
Postgresql
Indexing
Mac + virtualenv + pip + postgresql = Error: pg_config executable not found
Python
Macos
Postgresql
Psycopg2
Rails + Postgres drop error: database is being accessed by other users
Ruby on-Rails
Postgresql
postgresql duplicate key violates unique constraint
Postgresql
Where is the Postgresql config file: 'postgresql.conf' on Windows?
Windows
Postgresql
Postgres: Add constraint if it doesn't already exist
Sql
Postgresql
Constraints
PostgreSQL: Remove attribute from JSON column
Sql
Json
Postgresql
Postgresql Json
PostgreSQL: default constraint names
Postgresql
Naming Conventions
Constraints
Index for finding an element in a JSON array
Sql
Json
Postgresql
Indexing
Jsonb
How do you find the row count for all your tables in Postgres
Postgresql
Count
Database Table
PostgreSQL 'NOT IN' and subquery
Postgresql
Subquery
SQLAlchemy create_all() does not create tables
Python
Postgresql
Sqlalchemy
django.db.utils.ProgrammingError: relation already exists
Python
Django
Postgresql
Ubuntu
Postgres where clause compare timestamp
Postgresql
How to insert current datetime in postgresql insert query
Postgresql
Datetime
Insert
How to fix "ERROR: column c.relhasoids does not exist" in Postgres?
Postgresql
change pgsql port
Postgresql
Check if a user-defined type already exists in PostgreSQL
Postgresql
User Defined-Types
How to check if a postgres user exists?
Postgresql
Shell
User Management
PostgreSQL: Show tables in PostgreSQL
Postgresql
PostgreSQL "DESCRIBE TABLE"
Postgresql
Psql
Table Structure
"use database_name" command in PostgreSQL
Postgresql
How do I (or can I) SELECT DISTINCT on multiple columns?
Sql
Postgresql
Sql Update
Duplicates
Distinct
Using psql to connect to PostgreSQL in SSL mode
Postgresql
Ssl
Ssl Certificate
Postgresql 8.4
How to select id with max date group by category in PostgreSQL?
Sql
Postgresql
Greatest N-per-Group
See and clear Postgres caches/buffers?
Postgresql
Caching
Optimization
Can't install PostgreSQL: An error occurred executing the Microsoft VC++ runtime installer on Windows XP
Postgresql
Windows Xp
Sort by column ASC, but NULL values first?
Sql
Postgresql
Null
Sql Order-By
Table name as a PostgreSQL function parameter
Function
Postgresql
Plpgsql
Dynamic Sql
Identifier
Skipping acquire of configured file 'main/binary-i386/Packages'
Linux
Postgresql
Ubuntu
Installation
What does it mean when a PostgreSQL process is "idle in transaction"?
Postgresql
What is the proper way to use the node.js postgresql module?
Javascript
Postgresql
node.js
Heroku
Postgres DB not starting on Mac OSX: ERROR says: connections on Unix domain socket
Macos
Postgresql
Unix
Pid
Pgadmin
Insert data in 3 tables at a time using Postgres
Sql
Postgresql
Common Table-Expression
Sql Insert
Sql Returning
HikariCP - connection is not available
Hibernate
Postgresql
Spring Boot
Hikaricp
Adding a column as a foreign key gives ERROR column referenced in foreign key constraint does not exist
Database
Postgresql
Foreign Keys
Alter Table
How to create a temporary function in PostgreSQL?
Sql
Postgresql
Sql Function
How to specify a tab in a postgres front-end COPY
Postgresql
Csv
Rails auto-assigning id that already exists
Ruby on-Rails
Ruby on-Rails-3
Postgresql
PostgreSQL server won't stop
Postgresql
Macos
Terminal
fe_sendauth: no password supplied
Postgresql
Ruby on-Rails-4
How to Allow Remote Access to PostgreSQL database
Windows
Postgresql
Virtual Machine
Kill a postgresql session/connection
Database
Postgresql
Is there a PostgreSQL equivalent of SQL Server profiler?
Postgresql
Profiler
When to use inherited tables in PostgreSQL?
Postgresql
PostgreSQL Index Usage Analysis
Sql
Database Design
Postgresql
How to drop multiple tables in PostgreSQL using a wildcard
Sql
Postgresql
How to hide result set decoration in Psql output
Sql
Postgresql
Postgres ENUM data type or CHECK CONSTRAINT?
Postgresql
Postgresql 9.1
PostgreSQL IF statement
Sql
Postgresql
If Statement
Plpgsql
Difference between LIKE and ~ in Postgres
Sql
Regex
Postgresql
Syntax
Socket File "/var/pgsql_socket/.s.PGSQL.5432" Missing In Mountain Lion (OS X Server)
Postgresql
Osx Mountain-Lion
Postgresql 9.2
Osx Server
PostgreSQL: how to convert from Unix epoch to date?
Sql
Postgresql
Date
Type Conversion
Epoch
PostgreSQL: ERROR: operator does not exist: integer = character varying
Postgresql
Casting
Integer
Varchar
Copy a table (including indexes) in postgres
Sql
Postgresql
Indexing
How can you get the active users connected to a postgreSQL database via SQL?
Sql
Postgresql
Active Users
Postgres error on insert - ERROR: invalid byte sequence for encoding "UTF8": 0x00
Postgresql
no pg_hba.conf entry for host
Postgresql
How to make "case-insensitive" query in Postgresql?
Postgresql
Where Clause
Sql Like
Case Insensitive
PostgreSQL: Modify OWNER on all tables simultaneously in PostgreSQL
Postgresql
Default database named postgres on Postgresql server
Database
Postgresql
Reset PostgreSQL primary key to 1
Postgresql
Primary Key
Reset
Using regex in WHERE in Postgres
Regex
Postgresql
How to Disconnect from a database and go back to the default database in PostgreSQL?
Postgresql
Postgresql 9.1
Postgresql 9.2
Remove uniqueness of index in PostgreSQL
Sql
Database
Postgresql
PostgreSQL newline character
String
Postgresql
Newline
postgresql error PANIC: could not locate a valid checkpoint record
Postgresql
Postgresql 9.0
How to create an SQL View with SQLAlchemy?
Python
Postgresql
Sqlalchemy
Get DB owner's name in PostgreSql
Postgresql
How to rename a table inside a schema?
Postgresql
`pg_tblspc` missing after installation of latest version of OS X (Yosemite or El Capitan)
Macos
Postgresql
Homebrew
Osx Yosemite
What is the format for the PostgreSQL connection string / URL?
Postgresql
Database Connection
PostgreSQL: improving pg_dump, pg_restore performance
Performance
Postgresql
Backup
Restore
Changing a column type to longer strings in rails
Ruby on-Rails
String
Postgresql
Ruby on-Rails-3.1
Rails Activerecord
Is there a way to show a user-defined postgresql enumerated type definition?
Postgresql
Enums
ERROR: permission denied for relation tablename on Postgres while trying a SELECT as a readonly user
Postgresql
How to use pg_dump with a connection uri / url?
Postgresql
Connection String
Error: pg_config executable not found when installing psycopg2 on Alpine in Docker
Python
Postgresql
Docker
Psycopg2
Alpine
How to delete duplicate entries?
Sql
Postgresql
Duplicate Removal
Unique Constraint
Sql Delete
How to export table as CSV with headings on Postgresql?
Postgresql
Csv
Export to-Csv
Heading
Postgresql Copy
How to drop constraint by name in PostgreSQL?
Postgresql
How do you get PyPy, Django and PostgreSQL to work together?
Python
Django
Postgresql
Psycopg2
Pypy
What does :: do in PostgreSQL?
Postgresql
Syntax
Types
Casting
Typecast Operator
PG::Error: ERROR: new encoding (UTF8) is incompatible
Ruby on-Rails
Ruby
Postgresql
how to move tables from public to other schema in Postgres
Sql
Postgresql
Postgresql 9.1
Postgresql : Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections
Postgresql
Remove a named volume with docker-compose?
Postgresql
Docker
Docker Compose
Volumes
Docker Named-Volume
SQL LIKE condition to check for integer?
Sql
Postgresql
Postgres error "invalid value for parameter "TimeZone": "UTC""
Ruby on-Rails-3
Postgresql
Select hardcoded values without table
Postgresql
Now() without timezone
Postgresql
Timestamp
Postgresql 9.2
PostgreSQL: serial vs identity
Postgresql
Comparison of database column types in MySQL, PostgreSQL, and SQLite? (Cross-Mapping)
Mysql
Database
Sqlite
Postgresql
Types
PostgreSQL visual interface similar to phpMyAdmin?
Sql
Postgresql
Postgres FOR LOOP
Postgresql
Stored Procedures
For Loop
Random
Plpgsql
How to select the nth row in a SQL database table?
Mysql
Sql
Database
Oracle
Postgresql
How to get First and Last record from a sql query?
Sql
Postgresql
Using an Alias column in the where clause in Postgresql
Sql
Postgresql
Column Alias
SQLAlchemy support of Postgres Schemas
Postgresql
Sqlalchemy
Mapping PostgreSQL JSON column to a Hibernate entity property
Java
Json
Hibernate
Postgresql
Jpa
How can I ensure that a materialized view is always up to date?
Postgresql
Materialized Views
pg_dump postgres database from remote server when port 5432 is blocked
Postgresql
Ssh
Remote Server
Pg Dump
"psql: could not connect to server: Connection refused" Error when connecting to remote database
Postgresql
Ubuntu
Psql
Centos7
Docker wait for postgresql to be running
Postgresql
Docker
Rownum in postgresql
Postgresql
Row Number
Rownum
How do you change the character encoding of a postgres database?
Postgresql
Unicode
How to remove carriage returns and new lines in Postgresql?
Regex
Postgresql
An error occurred while installing pg (0.17.1), and Bundler cannot continue
Ruby on-Rails
Macos
Postgresql
Ruby on-Rails-4
How to exit from PostgreSQL command line utility: psql
Postgresql
Postgresql 9.1
Psql
Select first row in each GROUP BY group?
Sql
Sqlite
Postgresql
Group By
Greatest N-per-Group
Explanation of JSONB introduced by PostgreSQL
Json
Postgresql
Nosql
Postgresql Json
Jsonb
List tables in a PostgreSQL schema
Postgresql
Postgresql 9.1
Psql
Return multiple fields as a record in PostgreSQL with PL/pgSQL
Sql
Postgresql
Stored Procedures
Types
Plpgsql
Dynamic (Column Based) Interval
Postgresql
Import MySQL dump to PostgreSQL database
Mysql
Postgresql
Laravel: Error [PDOException]: Could not Find Driver in PostgreSQL
Php
Database
Postgresql
Laravel
Syntax Error
Create or replace trigger postgres
Sql
Postgresql
Ddl
Database Trigger
FATAL: password authentication failed for user "postgres" (postgresql 11 with pgAdmin 4)
Postgresql
Pgadmin 4
Postgresql 11
PostgreSQL temporary tables
Performance
Postgresql
Optimization
Temp Tables
How do I UPDATE a row in a table or INSERT it if it doesn't exist?
Mysql
Sql
Sqlite
Postgresql
Upsert
Restore a postgres backup file using the command line?
Postgresql
Command Line
Backup
Restore
updating table rows in postgres using subquery
Sql
Postgresql
Subquery
Sql Update
Postgres DB Size Command
Sql
Postgresql
Postgresql 9.2
PostgreSQL how to see which queries have run
Database
Postgresql
Pgadmin
Are PostgreSQL functions transactional?
Postgresql
Transactions
How to find pg_config path
Python
Django
Macos
Postgresql
PostgreSQL Nested JSON Querying
Json
Postgresql
Psql
Postgresql 9.3
Homebrew postgres broken
Macos
Postgresql
Homebrew
Return Pandas dataframe from PostgreSQL query with sqlalchemy
Python
Postgresql
Pandas
Sqlalchemy
Best way to delete millions of rows by ID
Sql
Postgresql
Bigdata
Sql Delete
Postgresql Performance
Trying to modify a constraint in PostgreSQL
Sql
Postgresql
Alter
How do I import modules or install extensions in PostgreSQL 9.1+?
Postgresql
Postgresql 9.1
How to test run an UPDATE statement in PostgreSQL?
Sql
Database
Postgresql
CURRENT_TIMESTAMP in milliseconds
Mysql
Sql
Postgresql
Datetime
Timestamp
Multiple CTE in single query
Sql
Postgresql
Common Table-Expression
Arel
Recursive Cte
How to log PostgreSQL queries?
Postgresql
Logging
Where does PostgreSQL store the database?
Postgresql
How to update selected rows with values from a CSV file in Postgres?
Sql
Database
Postgresql
File Io
Csv
Discard millisecond part from timestamp
Sql
Postgresql
Casting
Timestamp
Rounding
How do you add PostgreSQL Driver as a dependency in Maven?
Java
Hibernate
Postgresql
Maven
Failed to find conversion function from unknown to text
Postgresql
Postgresql 9.1
Postgresql 9.2
Postgres "psql not recognized as an internal or external command"
Windows
Postgresql
Command Line
How do I install just the client tools for PostgreSQL on Windows?
Windows
Postgresql
good postgresql client for windows?
Postgresql
How to concatenate strings of a string field in a PostgreSQL 'group by' query?
Sql
Postgresql
Group By
String Aggregation
Best way to select random rows PostgreSQL
Sql
Performance
Postgresql
Random
Completely copying a postgres table with SQL
Sql
Postgresql
Data Migration
unwrap postgresql array into rows
Sql
Arrays
Postgresql
PostgreSQL: using a calculated column in the same query
Sql
Postgresql
Calculated Columns
Column Alias
A faster way to copy a postgresql database (or the best way)
Postgresql
PostgreSQL JOIN data from 3 tables
Postgresql
Connecting PostgreSQL 9.2.1 with Hibernate
Java
Hibernate
Postgresql
Postgresql 9.2
Refresh a materialized view automatically using a rule or notify
Postgresql
Triggers
Postgresql 9.3
Materialized Views
Postgresql LEFT JOIN json_agg() ignore/remove NULL
Sql
Json
Postgresql
Postgresql 9.3
pg_restore error: role XXX does not exist
Database
Postgresql
Restore
Cannot drop PostgreSQL role. Error: `cannot be dropped because some objects depend on it`
Sql
Postgresql
Roles
Ddl
Database Administration
Postgres: Convert varchar to text
Postgresql
Text
Varchar
psql: FATAL: Ident authentication failed for user "postgres"
Postgresql
Get execution time of PostgreSQL query
Sql
Postgresql
Performance
Timing
PostgreSQL alter type timestamp without time zone -> with time zone
Postgresql
Timezone
Psycopg2 image not found
Python
Macos
Postgresql
Psycopg2
PostgreSql INSERT FROM SELECT RETURNING ID
Sql
Postgresql
Insert
Postgresql 9.2
How to check if an array is empty in Postgres
Sql
Arrays
Postgresql
Stored Procedures
Null
Postgresql: error "must be owner of relation" when changing a owner object
Postgresql
Sql Grant
Performance differences between equal (=) and IN with one literal value
Mysql
Sql
Postgresql
Equals Operator
In Operator
What is the difference between single quotes and double quotes in PostgreSQL?
Sql
Postgresql
Timestamp Difference In Hours for PostgreSQL
Sql
Postgresql
Timestamp
Calculating and saving space in PostgreSQL
Postgresql
Database Design
Storage
Bigdata
How to pass in password to pg_dump?
Bash
Postgresql
Shell
Crontab
Postgres and Indexes on Foreign Keys and Primary Keys
Sql
Postgresql
Foreign Keys
Split comma separated column data into additional columns
Sql
Postgresql
Split
Delimiter
Postgresql 8.4
Connecting postgresql with sqlalchemy
Python
Database
Postgresql
Orm
Sqlalchemy
Error Installing Psycopg2 on MacOS 10.9.5
Python
Macos
Postgresql
Psycopg2
Hidden Features of PostgreSQL
Database
Postgresql
Rdbms
Postgresql 9.3
Export a CREATE script for a database
Sql
Database
Postgresql
Can't subtract offset-naive and offset-aware datetimes
Python
Postgresql
Datetime
Timezone
In Postgres, how do you restrict possible values for a particular column?
Sql
Postgresql
postgres autoincrement not updated on explicit id inserts
Postgresql
Auto Increment
IntegrityError duplicate key value violates unique constraint - django/postgres
Django
Postgresql
Duplicates
Unique Constraint
Database Integrity
How to query a json column for empty objects?
Json
Postgresql
Types
Jsonb
Empty array as PostgreSQL array column default value
Sql
Postgresql
How to Extract Year from DATE in POSTGRESQL
Postgresql
Date
Datetime
postgreSQL - psql \i : how to execute script in a given path
Postgresql
How to limit rows in PostgreSQL SELECT
Sql
Postgresql
Sql Limit
How to call a function, PostgreSQL
Postgresql
Function Call
Permission denied for relation
Postgresql
Privileges
Postgresql 9.2
Sql Grant
Alternate output format for psql
Postgresql
Output Formatting
Psql
How can I check if PostgreSQL is installed or not via Linux script?
Linux
Postgresql
Shell
Why is pg_restore returning successfully but not actually restoring my database?
Postgresql
Pg Dump
Pg Restore
PostgreSQL: Create schema in specific database
Sql
Database
Schema
Postgresql
PostgreSQL 9.1 pg_restore error regarding PLPGSQL
Postgresql
Plpgsql
Database Restore
How to close idle connections in PostgreSQL automatically?
Postgresql
Timeout
Connection
Strange PostgreSQL "value too long for type character varying(500)"
Sql
Database
Django
Postgresql
Postgresql 9.1
How to drop all NOT NULL constraints from a PostgreSQL table in one go
Sql
Postgresql
Constraints
Sql Drop
Notnull
How to add `unique` constraint to already existing index by migration
Ruby on-Rails
Postgresql
ActiveRecord::StatementInvalid: PG InFailedSqlTransaction
Ruby on-Rails
Postgresql
Activerecord
Rollback
Pg
How to join only one row in joined table with postgres?
Sql
Postgresql
Join
Best way to get result count before LIMIT was applied
Php
Sql
Postgresql
Window Functions
Sql Limit
Is it possible to get a history of queries made in postgres
Database
Performance
Postgresql
Timing
Django+Postgres: "current transaction is aborted, commands ignored until end of transaction block"
Django
Postgresql
How to configure postgresql postgresql.conf listen_addresses for multiple ip addresses
Postgresql
Get Nth element of an array that returns from "string_to_array()" function
Arrays
Postgresql
PGError: ERROR: permission denied for relation (when using Heroku)
Database
Postgresql
Heroku
Permissions
Can I automatically create a table in PostgreSQL from a csv file with headers?
Postgresql
Csv
Auto-increment on partial primary key with Entity Framework Core
C#
asp.net
Entity Framework
Postgresql
Entity Framework-Core
Postgres SELECT where the WHERE is UUID or string
Postgresql
PostgreSQL function for last inserted ID
Postgresql
Insert
Lastinsertid
From Now() to Current_timestamp in Postgresql
Sql
Datetime
Postgresql
How to show row numbers in PostgreSQL query?
Sql
Database
Postgresql
what's the escape sequence for hyphen (-) in PostgreSQL
Sql
Postgresql
Escaping
What is the most recommended way to store time in PostgreSQL using Java?
Java
Postgresql
Date
Jdbc
Copy a few of the columns of a csv file into a table
Postgresql
SQL Get all records older than 30 days
Sql
Postgresql
How to COALESCE for empty strings and NULL values?
Sql
Postgresql
Coalesce
ECONNREFUSED for Postgres on nodeJS with dockers
node.js
Postgresql
Docker
sequelize.js
Run PostgreSQL queries from the command line
Database
Postgresql
What is the datatype for a password in PostgreSQL?
Database
Postgresql
Types
Switch role after connecting to database
Postgresql
What is equivalent of Long data type in PostgreSQL?
Java
Postgresql
Get count of records affected by INSERT or UPDATE in PostgreSQL
Sql
Postgresql
Sql Update
How can I specify the schema to run an sql file against in the Postgresql command line
Postgresql
How to remove duplicates, which are generated with array_agg postgres function
Sql
Postgresql
Select
Array Agg
Check Postgres access for a user
Postgresql
Privileges
Data Dictionary
What is the default password for Postgres
Windows
Postgresql
Difference between GiST and GIN index
Postgresql
Indexing
Full Text-Search
Postgres returns [null] instead of [] for array_agg of join table
Postgresql
Left Join
Database Normalization
Connecting to Postgresql in a docker container from outside
Postgresql
Docker
Remote Connection
Postgresql json like query
Postgresql
Jsonb
Upgrade PostgreSQL from 9.6 to 10.0 on Ubuntu 16.10
Postgresql
Ubuntu
How do I do large non-blocking updates in PostgreSQL?
Postgresql
Transactions
Sql Update
Plpgsql
Dblink
List stored functions that reference a table in PostgreSQL
Sql
Postgresql
Metaprogramming
how to check type of value in postgres
Sql
Postgresql
I want to restore the database with a different schema
Postgresql
Pg Dump
Pg Restore
Postgresql: Check if Schema Exists?
Sql
Postgresql
Using multiple PostgreSQL schemas with Rails models
Ruby on-Rails
Postgresql
Models
Database Schema
Schema Design
gem install pg --with-pg-config works, bundle fails
Postgresql
Rubygems
Bundler
Pg
create table in postgreSQL
Postgresql
Create Table
What is PostgreSQL equivalent of SYSDATE from Oracle?
Oracle
Postgresql
Cannot install pg gem in Mavericks with Postgres.app
Ruby on-Rails
Macos
Postgresql
Osx Mavericks
Pg
Difference between language sql and language plpgsql in PostgreSQL functions
Sql
Function
Postgresql
Stored Procedures
Plpgsql
How to delete duplicate rows without unique identifier
Sql
Database
Postgresql
Duplicates
Netezza
MySQL vs PostgreSQL? Which should I choose for my Django project?
Mysql
Django
Database
Postgresql
Django Migrations
Entity framework PostgreSQL
Entity Framework
Postgresql
How to add a new Column in a table after the 2nd or 3rd column in the Table using postgres?
Postgresql
PostgreSQL GROUP BY different from MySQL?
Sql
Mysql
Ruby on-Rails
Postgresql
Heroku
How to use (install) dblink in PostgreSQL?
Sql
Postgresql
Dblink
How to invoke sequence while inserting new record into postgresql table?
Postgresql
Postgresql 9.1
how to execute a .sql script on heroku?
Sql
Postgresql
Heroku
cannot create extension without superuser role
Database
Postgresql
Postgresql 9.1
Postgresql column reference "id" is ambiguous
Sql
Postgresql
Select
Installing PostgreSQL on Ubuntu for Ruby on Rails
Ruby on-Rails
Ruby
Postgresql
Ubuntu
Heroku
PG::Error: SELECT DISTINCT, ORDER BY expressions must appear in select list
Ruby on-Rails
Ruby
Ruby on-Rails-3
Postgresql
Distinct
Grouping timestamps by day, not by time
Sql
Postgresql
PostgreSQL - query from bash script as database user 'postgres'
Sql
Bash
Postgresql
Optimize GROUP BY query to retrieve latest row per user
Sql
Postgresql
Indexing
Greatest N-per-Group
Postgresql Performance
How to pg_dump an RDS Postgres database?
Database
Postgresql
Amazon Web-Services
PostgreSQL: Remotely connecting to Postgres instance using psql command
Postgresql
Psql
Postgres - How to check for an empty array
Sql
Arrays
Postgresql
Variable value assignment using RETURNING clause
Sql
Postgresql
Sql Returning
GIS: PostGIS/PostgreSQL vs. MySql vs. SQL Server?
Mysql
Postgresql
Gis
Geocoding
Postgis
PostgreSQL Regex Word Boundaries?
Regex
Postgresql
Word Boundary
Joining Results from Two Separate Databases
Postgresql
Join
Count cumulative total in Postgresql
Sql
Postgresql
Aggregate Functions
Using a variable period in an interval in Postgres
Postgresql
Variables
Intervals
Period
Getting date list in a range in PostgreSQL
Sql
Postgresql
Date
Date Comparison
Size limit of JSON data type in PostgreSQL
Json
Postgresql
Postgresql 9.2
What's a PostgreSQL "Cluster" and how do I create one?
Sql
Database
Postgresql
Postgresql 9.1
Passing table name as a parameter in psycopg2
Python
Sql
Postgresql
Sql Injection
Psycopg2
To ignore duplicate keys during 'copy from' in postgresql
Sql
Postgresql
Postgresql: How to find pg_hba.conf file using Mac OS X
Postgresql
missing FROM-clause entry for table
Sql
Postgresql
How to declare a variable in a PostgreSQL query
Sql
Postgresql
Postgresql 8.3
PostgreSQL - disabling constraints
Postgresql
Constraints
Custom ORDER BY Explanation
Postgresql
Sql Order-By
Different db for testing in Django?
Django
Unit Testing
Sqlite
Postgresql
DictCursor doesn't seem to work under psycopg2
Python
Postgresql
Dictionary
Psycopg2
What is the fastest way to truncate timestamps to 5 minutes in Postgres?
Sql
Performance
Postgresql
Datetime
Postgres 9.1 vs Mysql 5.6 InnoDB?
Mysql
Postgresql
Postgres table column name restrictions?
Postgresql
Create Table
Will UUID as primary key in PostgreSQL give bad index performance?
Ruby on-Rails
Ruby
Postgresql
Heroku
How to get the top 10 values in postgresql?
Sql
Postgresql
Sql Limit
PostgreSQL: Drop PostgreSQL database through command line
Database
Postgresql
PG COPY error: invalid input syntax for integer
Postgresql
Csv
Import
Copy
Pandas update sql
Python
Postgresql
Pandas
"Failed building wheel for psycopg2" - MacOSX using virtualenv and pip
Python
Django
Postgresql
Virtualenv
Psycopg2
how to use Blob datatype in Postgres
Database
Postgresql
PostgreSQL: SQL script to get a list of all tables that have a particular column as foreign key
Sql
Database
Postgresql
Foreign Keys
Best method for PostgreSQL incremental backup
Postgresql
Backup
Postgresql - select something where date = "01/01/11"
Sql
Postgresql
Datetime
Oracle SQL Developer and PostgreSQL
Postgresql
Oracle Sqldeveloper
Any reason not use PostgreSQL's built-in full text search on Heroku?
Postgresql
Heroku
Solr
Full Text-Search
Sphinx
PostgreSQL 9.2 - Convert TEXT json string to type json/hstore
Postgresql
Postgresql 9.2
unable to create autoincrementing primary key with flask-sqlalchemy
Python
Postgresql
Sqlalchemy
Flask
Flask Sqlalchemy
What is the difference between a user and a role?
Postgresql
Split column into multiple rows in Postgres
Sql
Postgresql
Split
Set Returning-Functions
Starting and populating a Postgres container in Docker
Database
Postgresql
Docker
UUID or SEQUENCE for primary key?
Postgresql
Create a Postgres database using python
Python
Postgresql
Psycopg2
psql - save results of command to a file
Postgresql
Psql
Efficient latest record query with Postgresql
Sql
Postgresql
Subquery
Distinct
How to declare local variables in postgresql?
Sql Server
Postgresql
Migration
How do you find results that occurred in the past week?
Sql
Postgresql
Date Arithmetic
psycopg2 not actually inserting data
Python
Postgresql
Psycopg2
How can I do multiple "order_by" in Flask-SQLAlchemy?
Postgresql
Sqlalchemy
Flask
Flask Sqlalchemy
PostgreSQL via SSH Tunnel
Postgresql
Ssh
Tunnel
Razorsql
LOWER LIKE vs iLIKE
Performance
Postgresql
Pattern Matching
Database Performance
Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
Java
Hibernate
Postgresql
Jdbc
Orm
Changing a postgres containers server port in Docker Compose
Postgresql
Docker
Docker Compose
Updating integer column with null values in postgres
Postgresql
Null
Sql Update
Alter
Log all queries in the official Postgres docker image
Postgresql
Docker
How different is PostgreSQL to MySQL?
Sql
Mysql
Postgresql
PostgreSQL and C# Datatypes
C#
Postgresql
Types
disable NOTICES in psql output
Database
Postgresql
Verbosity
PostgreSQL: Case insensitive string comparison
Sql
Postgresql
String Comparison
Case Insensitive
Online SQL syntax checker conforming to multiple databases
Mysql
Sql Server
Oracle
Postgresql
set blank password for PostgreSQL user
Postgresql
Createuser
Relationship between catalog, schema, user, and database instance
Mysql
Sql Server
Oracle
Postgresql
Db2
Why is Solr so much faster than Postgres?
Performance
Postgresql
Solr
Lucene
Rdbms
PostgreSQL date() with timezone
Postgresql
Datetime
Timezone
Postgresql 9.1
Rails Postgresql
Postgresql Truncation speed
Postgresql
Database Performance
Truncate
Altering an Enum field using Alembic
Python
Postgresql
Sqlalchemy
Alembic
Using COALESCE to handle NULL values in PostgreSQL
Sql
Database
Postgresql
Null
Coalesce
Transfer data between databases with PostgreSQL
Sql
Postgresql
Insertion
How do I connect to PostgreSQL without specifying a database name?
Php
Postgresql
What is the default order of a list returned from a Django filter call?
Python
Django
Postgresql
Sql Order-By
Django Orm
Debug PostgreSQL function using pgAdmin
Debugging
Postgresql
Plpgsql
Pgadmin
How can I test if a column exists in a table using an SQL statement
Postgresql
Information Schema
Underscores or camelCase in PostgreSQL identifiers, when the programming language uses camelCase?
Oop
Postgresql
Database Design
Naming Conventions
Camelcasing
How can I get all keys from a JSON column in Postgres?
Json
Postgresql
How to use Joda-Time with java.sql.Timestamp
Java
Postgresql
Timestamp
Jodatime
Select count of rows in another table in a Postgres SELECT statement
Sql
Postgresql
Bulk/batch update/upsert in PostgreSQL
Sql
Database
Postgresql
Insert
Sql Update
Order varchar string as numeric
Postgresql
Types
Casting
Indexing
Integer
PostgreSQL Error: Relation already exists
Postgresql
Identifier
Create Table
Copy a table from one database to another in Postgres
Postgresql
Pass In "WHERE" parameters to PostgreSQL View?
Sql
Postgresql
Stored Procedures
View
PostgreSQL field type for unix timestamp?
Postgresql
Postgresql 9.1
Postgres.app Could not start on port 5432
Macos
Postgresql
Postgresql adapter (pg): could not connect to server
Ruby on-Rails
Postgresql
Rails Postgresql
Pg
Conditional INSERT INTO statement in postgres
Database
Postgresql
Conditional Statements
Sql Insert
SQLAlchemy multiple foreign keys in one mapped class to the same primary key
Python
Postgresql
Sqlalchemy
Postgres - Transpose Rows to Columns
Sql
Database
Postgresql
Crosstab
Transpose
Docker-compose environment variables
Postgresql
Docker
Docker Compose
GROUP BY and COUNT using ActiveRecord
Sql
Ruby on-Rails
Ruby
Postgresql
Activerecord
Docker & Postgres: Failed to bind tcp 0.0.0.0:5432 address already in use
Macos
Postgresql
Docker
How to UPSERT (MERGE, INSERT ... ON DUPLICATE UPDATE) in PostgreSQL?
Postgresql
Insert Update
Upsert
Sql Merge
SQL query to get most recent row for each instance of a given key
Sql
Postgresql
Greatest N-per-Group
How do I get the primary key(s) of a table from Postgres via plpgsql?
Sql
Postgresql
Plpgsql
Hibernate Slow to Acquire Postgres Connection
Java
Hibernate
Postgresql
Connection
CREATE TABLE AS with PRIMARY KEY in one statement (PostgreSQL)
Postgresql
Primary Key
Create Table
PostgreSQL query to count/group by day and display days with no data
Sql
Postgresql
Join
Group By
Postgresql: Scripting psql execution with password
Postgresql
Psql
How to insert a row in postgreSQL pgAdmin?
Postgresql
Composite primary key in django
Python
Django
Postgresql
Postgres error in batch insert : relation "hibernate_sequence" does not exist position 17
Java
Hibernate
Postgresql
Jpa
How do you write a case insensitive query for both MySQL and Postgres?
Mysql
Ruby on-Rails
Database
Postgresql
Heroku
Use Django ORM as standalone
Python
Django
Postgresql
Orm
Queries in pg_stat_activity are truncated?
Postgresql
Get the last N rows in the database in order?
Postgresql
About clustered index in postgres
Postgresql
Clustered Index
How to format bigint field into a date in Postgresql?
Sql
Postgresql
Date
Timestamp
Bigint
Role does not exist and unable to create database when using PostgreSQL
Ruby on-Rails
Ruby
Ruby on-Rails-3
Postgresql
PostgreSQL MAX and GROUP BY
Sql
Postgresql
Group By
Max
Greatest N-per-Group
Postgresql find total disk space used by a database
Database
Postgresql
Diskspace
Get first date of month in postgres
Postgresql
Date
Triggers
Postgres ERROR: could not open file for reading: Permission denied
Postgresql
Allow null in unique column
Sql
Postgresql
Database Design
Null
Unique Constraint
How to get the trigger(s) associated with a view or a table in PostgreSQL
Sql
Database
Postgresql
PostgreSQL query to rename and change column type with single query
Sql
Postgresql
Merging Concatenating JSON(B) columns in query
Postgresql
How can I Insert JSON object into Postgres using Java preparedStatement?
Java
Json
Postgresql
Prepared Statement
Using psql how do I list extensions installed in a database?
Postgresql
Psql
Postgresql Extensions
Counting the number of occurrences of a substring within a string in PostgreSQL
Sql
String
Postgresql
Installing PostgreSQL Client v10 on AWS Amazon Linux (EC2) AMI
Postgresql
Amazon Web-Services
Amazon Ec2
Is it possible to make a recursive SQL query?
Sql
Postgresql
Recursive Query
Parameterized queries with psycopg2 / Python DB-API and PostgreSQL
Python
Postgresql
Psycopg2
How to insert current_timestamp into Postgres via python
Python
Postgresql
Datetime
Omitting the double quote to do query on PostgreSQL
Postgresql
Double Quotes
Why does PostgreSQL's \dt show only public schema tables?
Postgresql
Postgresql turn null into zero
Sql
Postgresql
Null
Max
Case insensitive unique model fields in Django?
Python
Django
Postgresql
Model
Return pre-UPDATE column values using SQL only
Sql
Postgresql
Concurrency
Sql Update
Subquery
Selecting by month in PostgreSQL
Sql
Postgresql
Date
How to change PostgreSQL user password?
Postgresql
Change Password
How can I drop all the tables in a PostgreSQL database?
Postgresql
How to change a PG column to NULLABLE TRUE?
Sql
Postgresql
Nullable
Loop over array dimension in plpgsql
Arrays
Postgresql
Multidimensional Array
For Loop
Plpgsql
PL/pgSQL checking if a row exists
Sql
Postgresql
Plpgsql
Postgresql 9.1
Exists
Most Efficient Way to Create an Index in Postgres
Performance
Postgresql
Indexing
postgresql sequence nextval in schema
Postgresql
Postgresql 9.3
postgresql - view schema privileges
Sql
Postgresql
Amazon Redshift
PostgreSQL: Create an index to quickly distinguish NULL from non-NULL values
Sql
Postgresql
Indexing
Null
alembic util command error can't find identifier
Postgresql
Flask Sqlalchemy
Alembic
Sqlalchemy Migrate
Difference between Stream Replication and logical replication
Database
Postgresql
Database Replication
Reset auto increment counter in postgres
Sql
Postgresql
Reset
Auto Increment
How to release possible Postgres row locks?
Sql
Database
Postgresql
Get last record of a table in Postgres
Sql
Postgresql
How do you print the result of a PostgreSQL query in CSV or TSV format from the command line?
Postgresql
Is there a way to define a named constant in a PostgreSQL query?
Sql
Postgresql
How to write SQL in a migration in Rails
Sql
Postgresql
Ruby on-Rails-3
Migration
Rails Activerecord
Postgres - FATAL: database files are incompatible with server
Macos
Postgresql
Homebrew
records from yesterday in postrgesql
Postgresql
How to create a user for Postgres from the command line for bash automation
Postgresql
Ubuntu
Postgresql 9.2
How do I efficiently select the previous non-null value?
Postgresql
Rails order by association field
Sql
Ruby on-Rails
Postgresql
PostgreSQL: NULL value in foreign key column
Postgresql
Foreign Keys
PostgreSQL : cast string to date DD/MM/YYYY
String
Postgresql
Date
Casting
PostgreSQL: How to DROP FUNCTION IF EXISTS without specifying parameters?
Postgresql
Plpgsql
Cannot find pg_hba.conf and postgreql.conf file on OS X?
Macos
Postgresql
Homebrew
Calculate JSONB Array Length Using PostgreSQL 9.4
Postgresql
Postgresql 9.4
Jsonb
Postgres drop database error: pq: cannot drop the currently open database
Postgresql
Go
How to write function for optional parameters in postgresql?
Sql
Postgresql
Plpgsql
DBeaver can only see default PostgreSQL database in connection
Postgresql
Dbeaver
What is the difference between Seq Scan and Bitmap heap scan in postgres?
Optimization
Postgresql
Query Optimization
Sql Execution-Plan
What Is The PostgreSQL Equivalent To SQL Server NVARCHAR?
Postgresql
Best practices for SQL varchar column length
Mysql
Sql
Sql Server
Postgresql
PostgreSQL JOIN with array type with array elements order, how to implement?
Sql
Arrays
Postgresql
Join
How do I transfer production database to staging on Heroku using pgbackups? Getting error
Postgresql
Heroku
select records from postgres where timestamp is in certain range
Sql
Postgresql
Options to retrieve the current (on a moment of running query) sequence value
Postgresql
Postgresql 8.4
Postgresql insert trigger to set value
Postgresql
Triggers
Postgresql 9.1
Join postgres table on two columns?
Postgresql
Insert if not exists, else return id in postgresql
Postgresql
PostgreSQL query very slow with limit 1
Postgresql
Performance
Query Optimization
Limit
How to persist data in a dockerized postgres database using volumes
Postgresql
Docker
Docker Compose
Docker Volume
Postgres JSON data type Rails query
Json
Postgresql
Ruby on-Rails-4
Rails Postgresql
Psql
Grant privileges on future tables in PostgreSQL?
Sql
Database
Postgresql
Ordering results of eager-loaded nested models in Node Sequelize
node.js
Postgresql
sequelize.js
Cannot drop table users because other objects depend on it
Sql
Postgresql
Where condition for joined table in Sequelize ORM
Javascript
Sql
Postgresql
Orm
sequelize.js
what does the @> operator in postgres do?
Postgresql
is primary key automatically indexed in postgresql?
Postgresql
Indexing
Primary Key
PostgreSQL Equivalent of SQLServer's NoLock Hint
Postgresql
Nolock
How can I execute pl/pgsql code without creating a function?
Postgresql
Plpgsql
Inserting text string with hex into PostgreSQL as a bytea
Sql
Postgresql
How to generate the "create table" sql statement for an existing table in postgreSQL
Postgresql
Comparison of full text search engine - Lucene, Sphinx, Postgresql, MySQL?
Mysql
Postgresql
Full Text-Search
Lucene
Sphinx
Find dependent objects for a table or view
Postgresql
Metadata
Destroying a Postgres DB on Heroku
Postgresql
Heroku
Destroy
PostgreSQL syntax check without running the query
Sql
Parsing
Postgresql
Syntax
Cvs
PostgreSQL column 'foo' does not exist
Sql
Postgresql
Quoted Identifier
How to create a new database with the hstore extension already installed?
Sql
Postgresql
Postgresql 9.1
Hstore
Django bulk_create with ignore rows that cause IntegrityError?
Django
Postgresql
Bulk Load
Can I rollback a transaction I've already committed? (data loss)
Database
Postgresql
Data Recovery
PostgreSQL: FOREIGN KEY/ON DELETE CASCADE
Sql
Postgresql
Cascade
Postgres query to check a string is a number
Postgresql
Postgresql change column type from int to UUID
Postgresql
PostgreSQL wrong converting from timestamp without time zone to timestamp with time zone
Postgresql
Timezone
How do I convert a binary pgdump (compressed) to a plain SQL file?
Postgresql
Pg Dump
Pg Restore
rake db:create throws "database does not exist" error with postgresql
Ruby on-Rails
Postgresql
Insert line break in postgresql when updating text field
Postgresql
Char
Sql Update
Import psycopg2 Library not loaded: libssl.1.0.0.dylib
Python
Database
Postgresql
Python 2.7
Postgresql 9.3
How do I check if a json key exists in Postgres?
Json
Postgresql
Psycopg2
Docker container for Postgres 9.1 not exposing port 5432 to host
Postgresql
Docker
How to group by week in postgresql
Sql
Postgresql
PostgreSQL Index on JSON
Sql
Json
Postgresql
Indexing
Database Design
Postgres conflict handling with multiple unique constraints
Postgresql
Can't connect to Postgresql on port 5432
Postgresql
Ssh
Port
Remote Access
postgres jsonb_set multiple keys update
Postgresql
Jsonb
How to drop column if it exists in PostgreSQL 9+?
Sql
Postgresql
How to get a value from the last inserted row?
Java
Database
Postgresql
Jdbc
How to map a PostgreSQL array with Hibernate
Java
Arrays
Postgresql
Hibernate
Orm
How to handle Ruby on Rails error: "Please install the postgresql adapter: `gem install activerecord-postgresql-adapter'"
Ruby on-Rails
Ruby
Postgresql
Activerecord
Rubygems
Checking if a postgresql table exists under python (and probably Psycopg2)
Python
Postgresql
Psycopg2
How can I hash passwords in postgresql?
Security
Postgresql
Hash
Cryptography
Salt
How do I modify fields inside the new PostgreSQL JSON datatype?
Json
Postgresql
Postgresql 9.3
Postgresql Json
Extract date (yyyy/mm/dd) from a timestamp in PostgreSQL
Sql
Postgresql
Casting
Timestamp
Is it possible to temporarily disable an index in Postgres?
Performance
Debugging
Postgresql
Indexing
Date in mmm yyyy format in postgresql
Sql
Postgresql
How to apply a function to each element of an array column in Postgres?
Arrays
Postgresql
Are there performance issues storing files in PostgreSQL?
File
Postgresql
Blob
Bytea
How to restore PostgreSQL dump file into Postgres databases?
Sql
Postgresql
Dump
Database Restore
Database Dump
Postgres password authentication fails
Postgresql
How to add a variable number of hours to a date in PostgreSQL?
Sql
Postgresql
Datetime
Creating user with encrypted password in PostgreSQL
Postgresql
Passwords
Sha
Plaintext
How to query for null values in json field type postgresql?
Sql
Json
Postgresql
How to parse JSON in postgresql
Json
Postgresql
unable to connect to server for Postgres
Postgresql
Appending (pushing) and removing from a JSON array in PostgreSQL 9.5+
Arrays
Postgresql
Jsonb
Postgresql 9.5
Array Push
pg_restore: [archiver] unsupported version (1.14) in file header
Postgresql
Ubuntu
Pg Dump
Pg Restore
SQLAlchemy DateTime timezone
Python
Postgresql
Datetime
Sqlalchemy
Timezone
Insert Data Into Tables Linked by Foreign Key
Sql
Postgresql
SQL Populate table with random data
Sql
Postgresql
Insert
PG::ConnectionBad - could not connect to server: Connection refused
Ruby on-Rails
Ruby
Database
Postgresql
Database Connection
PostgreSQL server wouldn't shutdown on Lion (Mac OS 10.7)
Macos
Postgresql
Osx Lion
Install psycopg2 on Ubuntu
Python
Postgresql
Ubuntu
Postgres No Primary Key Drawback
Postgresql
Why Should I use Redis when I have PostgreSQL as my database for Django?
Python
Django
Postgresql
Redis
How to convert postgres json to integer
Json
Postgresql
Rails Console find users by array of ids
Mysql
Ruby on-Rails
Ruby
Postgresql
Rails Console
Primary key for multiple column in PostgreSQL?
Postgresql
Database Design
Primary Key
Ddl
Composite Primary-Key
How to execute multiple queries using psql command from bash shell?
Database
Postgresql
Shell