Skip to content
DbaFix
Just share answer and question for fixing database problem
MENU
  • HOME

Tag: postgresql-9.6

Changing numeric type slow down query big time for postgres

By adminPosted on March 17, 2023

Question : I have 3 tables, leads, lead_addresses and addresses. Scheme looks like this: recently we decided that foreign keys […]

Query to get counts of values per column

By adminPosted on March 16, 2023

Question : I have a big table of vendor-supplied data (that I can’t change around much) with about 315 columns. […]

Conflict resolution for hash-backed unique constraint of large text bodies

By adminPosted on March 14, 2023

Question : So we’ve just run into ERROR: index row size 2736 exceeds maximum 2712 for index “foo__bar__un” Hint: Values […]

How to use pg_archivecleanup on Windows

By adminPosted on March 11, 2023

Question : Trying to figure out a proper way to clean old WAL files located in archive directory for point […]

Calculate difference between SUM over last 30 days and the SUM for 30 days preceding this period (days 30-60) in Postgres

By adminPosted on March 11, 2023

Question : Every day we store the number of jobs posted for hundres of thousands of companies. We need to […]

GRANT SELECT ON SEQUENCE succeeds, but to no effect?

By adminPosted on March 10, 2023

Question : I am trying to grant select access to sequences from one user/role to another. There are no errors […]

Permission denied on function after schema copy

By adminPosted on February 27, 2023

Question : I had one schema ‘public’ and simple function in the schema named ‘isvalidoption’. What was done: backup schema […]

pg_restore “CREATE CAST” not executed if using public or pg_catalog schemas

By adminPosted on February 26, 2023

Question : While moving database to another instance I’m using pg_dump and pg_restore with intermediate file. Dump file was created […]

SELECT DISTINCT ON, ordered by another column

By adminPosted on February 17, 2023

Question : Please consider the following table test: CREATE TABLE test(col1 int, col2 varchar, col3 date); INSERT INTO test VALUES […]

Postgres sometimes uses inferior index for WHERE a IN (…) ORDER BY b LIMIT N

By adminPosted on February 14, 2023

Question : We have a PostgreSQL table with ~5 billion rows that has developed a nasty habit of missing the […]

  • 1
  • 2
  • 3
  • …
  • 32

Recent Posts

  • Foreign Key to Multicolumn Primary Key?
  • Speed up INSERTs
  • Regularly updating table with huge amount of rows
  • How can I create a gapless sequence?
  • Unable to Query Very Large Table
  • Why should I create an ID column when I can use others as key fields? [duplicate]
  • Force NOW to return new timestamps without committing the transaction
  • MariaDB on Windows Server 2012 R2 – out of memory
  • How to easily convert a comma seperated list of ids into a table of rows
  • clusterdb stopped working for PostgreSQL database in Ubuntu 12.04 server
  • Slow MySQL query
  • Database design : hotel room and its detail
  • How to use GROUP BY in an efficient way without losing attributes? [closed]
  • Query execution time is random, need to identify the root cause
  • Returning data where all categories exactly match
  • Partitioning increases CPU usage in mariadb
  • How to script out push subscription creation at the subscriber?
  • Can a transitive join loop infinitely?
  • 2 similar queries in large sql server table – 1 takes too long
  • Select data from another database instance on the same server in sql server

Categories

  • Database Backup
  • Database Design
  • Database Index
  • Database Optimization
  • InnoDB
  • Join
  • MariaDB
  • MongoDB
  • MySQL
  • Oracle
  • Performance
  • Permissions
  • Postgresql
  • Query Performance
  • Replication
  • Security
  • SQL Server
Proudly powered by WordPress / Support by: DizzyCoding