Discussion of PostgreSQL's performance issues. Please see Guide to reporting problems and Slow Query Questions for some tips on how to write your performance question.
| Thread | Author | Time |
|---|---|---|
| Re: Re: proposal: schema variables 📎 | Pavel Stehule | 04:43 |
| Thread | Author | Time |
|---|---|---|
| Re: Re: proposal: schema variables 📎 | Pavel Stehule | 09:13 |
| Thread | Author | Time |
|---|---|---|
| Re: Query planning read a large amount of buffers for partitioned tables | bruno vieira da silva | 20:18 |
| Re: Query planning read a large amount of buffers for partitioned tables | bruno vieira da silva | 20:25 |
| Re: Query planning read a large amount of buffers for partitioned tables | bruno vieira da silva | 20:27 |
| Thread | Author | Time |
|---|---|---|
| Re: Query planning read a large amount of buffers for partitioned tables | David Rowley | 12:16 |
| Re: Query planning read a large amount of buffers for partitioned tables | bruno vieira da silva | 15:48 |
| Thread | Author | Time |
|---|---|---|
| Re: Re: proposal: schema variables 📎 | Pavel Stehule | 20:22 |
| Thread | Author | Time |
|---|---|---|
| Unfortunate Nested Loop + Missing Autovacuum | Lincoln Swaine-Moore | 23:46 |
| Thread | Author | Time |
|---|---|---|
| Re: Unfortunate Nested Loop + Missing Autovacuum | Andrei Lepikhov | 08:37 |
| Thread | Author | Time |
|---|---|---|
| Re: Unfortunate Nested Loop + Missing Autovacuum | Lincoln Swaine-Moore | 22:49 |
| Thread | Author | Time |
|---|---|---|
| Re: Unfortunate Nested Loop + Missing Autovacuum | Jeff Janes | 02:08 |
| Re: Unfortunate Nested Loop + Missing Autovacuum | Andrei Lepikhov | 14:01 |
| Thread | Author | Time |
|---|---|---|
| Re: Unfortunate Nested Loop + Missing Autovacuum | Lincoln Swaine-Moore | 02:17 |
| Thread | Author | Time |
|---|---|---|
| Efficient pagination using multi-column cursors | large.goose2829 | 14:27 |
| Re: Efficient pagination using multi-column cursors | Peter Geoghegan | 15:05 |
| Re: Efficient pagination using multi-column cursors | large.goose2829 | 15:40 |
| Re: Efficient pagination using multi-column cursors | Peter Geoghegan | 16:14 |
| Re: Efficient pagination using multi-column cursors | Laurenz Albe | 16:15 |
| Thread | Author | Time |
|---|---|---|
| Slow performance of collate "en_US.utf8" 📎 | Alexey Borschev | 13:54 |
| Thread | Author | Time |
|---|---|---|
| Re: Slow performance of collate "en_US.utf8" | Achilleas Mantzios - cloud | 12:59 |
| Re: Slow performance of collate "en_US.utf8" | Laurenz Albe | 14:16 |
| Re: Slow performance of collate "en_US.utf8" | Joe Conway | 20:02 |
| Re: Slow performance of collate "en_US.utf8" | Thomas Munro | 22:49 |
| Re: [PERFORM] Unused index influencing sequential scan plan | Thom Brown | 23:19 |
| Thread | Author | Time |
|---|---|---|
| Re: Slow performance of collate "en_US.utf8" | Joe Conway | 00:11 |
| Re: Re: proposal: schema variables 📎 | Pavel Stehule | 07:23 |
| Thread | Author | Time |
|---|---|---|
| Slow performance of collate "en_US.utf8" | Alexey Borschev | 08:47 |
| Thread | Author | Time |
|---|---|---|
| Asking for OK for a nasty trick to resolve PG CVE-2025-1094 i | Abraham, Danny | 07:39 |
| Re: Asking for OK for a nasty trick to resolve PG CVE-2025-1094 i | Laurenz Albe | 08:11 |
| Re: Asking for OK for a nasty trick to resolve PG CVE-2025-1094 i | Ron Johnson | 08:27 |
| Re: [EXTERNAL] Re: Asking for OK for a nasty trick to resolve PG CVE-2025-1094 i | Abraham, Danny | 09:33 |
| Re: [EXTERNAL] Re: Asking for OK for a nasty trick to resolve PG CVE-2025-1094 i | Ron Johnson | 10:08 |
| Re: [EXTERNAL] Re: Asking for OK for a nasty trick to resolve PG CVE-2025-1094 i | Laurenz Albe | 12:32 |
| Thread | Author | Time |
|---|---|---|
| Re: [EXTERNAL] Re: Asking for OK for a nasty trick to resolve PG CVE-2025-1094 i | Greg Sabino Mullane | 13:24 |
| Thread | Author | Time |
|---|---|---|
| Bulk DML performance | bill.poole | 04:05 |
| Re: Bulk DML performance | Laurenz Albe | 09:21 |
| RE: Bulk DML performance | bill.poole | 10:13 |
| Re: Bulk DML performance | Laurenz Albe | 11:28 |
| Re: Bulk DML performance | Laurenz Albe | 11:29 |
| RE: Bulk DML performance | bill.poole | 13:04 |
| Re: Bulk DML performance | Renan Alves Fonseca | 21:25 |
| Thread | Author | Time |
|---|---|---|
| RE: Bulk DML performance | bill.poole | 01:20 |
| Thread | Author | Time |
|---|---|---|
| Re: Bulk DML performance | Álvaro Herrera | 10:53 |
| Re: Bulk DML performance | Greg Sabino Mullane | 14:14 |
| Bad perf when using DECLARE CURSOR on big table | kimaidou | 14:41 |
| Re: Bad perf when using DECLARE CURSOR on big table | Tom Lane | 15:22 |
| Re: Bulk DML performance | Renan Alves Fonseca | 17:45 |
| Re: Re: proposal: schema variables 📎 | Pavel Stehule | 18:32 |
| Re: Efficient pagination using multi-column cursors | large.goose2829 | 19:52 |
| Re: Re: proposal: schema variables | Marcos Pegoraro | 20:52 |
| Thread | Author | Time |
|---|---|---|
| Background writer not active | Motog Plus | 04:04 |
| Re: Re: proposal: schema variables | Pavel Stehule | 05:46 |
| Re: Bad perf when using DECLARE CURSOR on big table | kimaidou | 07:48 |
| Thread | Author | Time |
|---|---|---|
| PostgreSQL 16 - Detach partition with FK - Error | Adithya Kumaranchath | 12:07 |
| Re: PostgreSQL 16 - Detach partition with FK - Error | Álvaro Herrera | 14:43 |
| parallel pg_restore blocks on heavy random read I/O on all children processes | Dimitrios Apostolou | 18:46 |
| Thread | Author | Time |
|---|---|---|
| Re: parallel pg_restore blocks on heavy random read I/O on all children processes | Tom Lane | 19:17 |
| Re: parallel pg_restore blocks on heavy random read I/O on all children processes | Dimitrios Apostolou | 19:57 |
| Thread | Author | Time |
|---|---|---|
| Re: parallel pg_restore blocks on heavy random read I/O on all children processes | Tom Lane | 15:46 |
| Thread | Author | Time |
|---|---|---|
| Re: parallel pg_restore blocks on heavy random read I/O on all children processes | Dimitrios Apostolou | 16:43 |
| Thread | Author | Time |
|---|---|---|
| Re: parallel pg_restore blocks on heavy random read I/O on all children processes | Dimitrios Apostolou | 23:45 |
| Thread | Author | Time |
|---|---|---|
| Re: parallel pg_restore blocks on heavy random read I/O on all children processes | Dimitrios Apostolou | 00:48 |
| Thread | Author | Time |
|---|---|---|
| Very slow query performance when using CTE | Chris Joysn | 13:37 |
| Re: Very slow query performance when using CTE | Tom Lane | 14:28 |
| Re: Very slow query performance when using CTE | Renan Alves Fonseca | 20:03 |
| Thread | Author | Time |
|---|---|---|
| Re: Re: proposal: schema variables 📎 | Pavel Stehule | 06:46 |
| partition table optimizer join cost misestimation 📎 | James Pang | 10:18 |
| Re: partition table optimizer join cost misestimation | Andrei Lepikhov | 11:03 |
| Thread | Author | Time |
|---|---|---|
| Re: partition table optimizer join cost misestimation 📎 | James Pang | 00:46 |
| Re: partition table optimizer join cost misestimation | Andrei Lepikhov | 06:32 |
| Fwd: Very slow query performance when using CTE | Chris Joysn | 07:20 |
| Fwd: Very slow query performance when using CTE | Chris Joysn | 07:21 |
| Re: Very slow query performance when using CTE | Michael Christofides | 09:10 |
| Re: partition table optimizer join cost misestimation | James Pang | 12:38 |
| Re: Very slow query performance when using CTE | Chris Joysn | 13:34 |
| Thread | Author | Time |
|---|---|---|
| Re: Re: proposal: schema variables 📎 | Pavel Stehule | 10:33 |
| Thread | Author | Time |
|---|---|---|
| Question on what Duration in the log | Vitale, Anthony, Sony Music | 14:27 |
| Re: Question on what Duration in the log | Tom Lane | 15:02 |
| RE: Question on what Duration in the log | Vitale, Anthony, Sony Music | 15:47 |
| Thread | Author | Time |
|---|---|---|
| Re: parallel pg_restore blocks on heavy random read I/O on all children processes | Hannu Krosing | 06:50 |
| Thread | Author | Time |
|---|---|---|
| many sessions wait on LWlock WALWrite suddenly | James Pang | 14:36 |
| Re: many sessions wait on LWlock WALWrite suddenly | Laurenz Albe | 19:59 |
| Re: many sessions wait on LWlock WALWrite suddenly | MichaelDBA | 22:43 |
| Thread | Author | Time |
|---|---|---|
| session waiting IO while background writer writing data | James Pang | 05:30 |
| Thread | Author | Time |
|---|---|---|
| Re: many sessions wait on LWlock WALWrite suddenly | Yura Sokolov | 09:16 |
| Re: many sessions wait on LWlock WALWrite suddenly | Andres Freund | 10:00 |
| Re: many sessions wait on LWlock WALWrite suddenly | Yura Sokolov | 10:44 |
| Re: many sessions wait on LWlock WALWrite suddenly | Andres Freund | 10:53 |
| Re: many sessions wait on LWlock WALWrite suddenly | Yura Sokolov | 10:58 |
| Thread | Author | Time |
|---|---|---|
| Constraints elimination during runtime | Weck, Luis | 11:16 |
| Re: Constraints elimination during runtime | Laurenz Albe | 12:38 |
| Thread | Author | Time |
|---|---|---|
| PostgreSQL Choosing Full Index Over Partial Index | Felipe López Montes | 13:22 |
| Re: PostgreSQL Choosing Full Index Over Partial Index | Laurenz Albe | 13:35 |
| Re: PostgreSQL Choosing Full Index Over Partial Index | Felipe López Montes | 14:54 |
| Re: PostgreSQL Choosing Full Index Over Partial Index | Tom Lane | 15:07 |
| Thread | Author | Time |
|---|---|---|
| Re: PostgreSQL Choosing Full Index Over Partial Index | Felipe López Montes | 09:11 |
| Re: PostgreSQL Choosing Full Index Over Partial Index | Tom Lane | 14:14 |
| Thread | Author | Time |
|---|---|---|
| Vacuum Questions | Leo | 14:23 |
| Re: Vacuum Questions | Leo | 16:04 |
| Re: Vacuum Questions | John Naylor | 23:49 |
| Thread | Author | Time |
|---|---|---|
| RE: Vacuum Questions | msalais | 19:46 |
| Thread | Author | Time |
|---|---|---|
| Re: Vacuum Questions | Craig Jackson | 14:33 |
| Re: Vacuum Questions | Craig Jackson | 14:35 |
| Thread | Author | Time |
|---|---|---|
| Re: inefficient/wrong plan cache mode selection for queries with partitioned tables (postgresql 17) | Andrei Lepikhov | 04:25 |
| Re: inefficient/wrong plan cache mode selection for queries with partitioned tables (postgresql 17) | David Rowley | 11:20 |
| Thread | Author | Time |
|---|---|---|
| Re: inefficient/wrong plan cache mode selection for queries with partitioned tables (postgresql 17) | Maxim Boguk | 00:47 |
| Thread | Author | Time |
|---|---|---|
| Re: Re: proposal: schema variables 📎 | Pavel Stehule | 06:48 |
| a lot of session wait on lock relation | James Pang | 08:27 |
| Re: a lot of session wait on lock relation | Chetan | 09:31 |
| Re: a lot of session wait on lock relation | Laurenz Albe | 12:08 |
| Re: a lot of session wait on lock relation | Tom Lane | 13:24 |
| Re: a lot of session wait on lock relation | James Pang | 13:32 |
| Re: a lot of session wait on lock relation | James Pang | 13:43 |
| Database creation performance drop going from pg 14 to pg 15+ 📎 | Mahdi Bahrami | 16:28 |
| Thread | Author | Time |
|---|---|---|
| Re: inefficient/wrong plan cache mode selection for queries with partitioned tables (postgresql 17) | Andrei Lepikhov | 16:54 |
| Thread | Author | Time |
|---|---|---|
| Re: Re: proposal: schema variables | Bruce Momjian | 14:56 |
| Re: Re: proposal: schema variables | Marcos Pegoraro | 16:33 |
| Re: Re: proposal: schema variables | Bruce Momjian | 16:39 |
| Re: proposal: schema variables | Daniel Gustafsson | 18:47 |
| Re: proposal: schema variables | Bruce Momjian | 20:28 |
| Re: Re: proposal: schema variables | Pavel Stehule | 20:28 |
| Re: proposal: schema variables | Laurenz Albe | 20:36 |
| Re: proposal: schema variables | Bruce Momjian | 21:06 |
| Re: Re: proposal: schema variables | Bruce Momjian | 21:10 |
| Thread | Author | Time |
|---|---|---|
| Re: Re: proposal: schema variables | Michael Paquier | 00:21 |
| Re: proposal: schema variables | Pavel Stehule | 05:15 |
| Re: Re: proposal: schema variables | Pavel Stehule | 05:49 |
| Re: proposal: schema variables | Laurenz Albe | 06:27 |
| Re: proposal: schema variables | Pavel Stehule | 06:36 |
| Re: proposal: schema variables | Pavel Stehule | 07:12 |
| Re: proposal: schema variables | Bruce Momjian | 20:41 |
| Re: proposal: schema variables | Bruce Momjian | 21:22 |
| Re: Re: proposal: schema variables | Bruce Momjian | 21:23 |
| Thread | Author | Time |
|---|---|---|
| Re: Database creation performance drop going from pg 14 to pg 15+ 📎 | Mahdi Bahrami | 08:12 |
| Re: Database creation performance drop going from pg 14 to pg 15+ | Álvaro Herrera | 15:07 |
| Thread | Author | Time |
|---|---|---|
| Re: Database creation performance drop going from pg 14 to pg 15+ | Mahdi Bahrami | 11:09 |
| Re: Database creation performance drop going from pg 14 to pg 15+ | Thomas Munro | 11:29 |
| Re: Database creation performance drop going from pg 14 to pg 15+ | Mahdi Bahrami | 12:15 |
| Thread | Author | Time |
|---|---|---|
| Re: proposal: schema variables 📎 | Pavel Stehule | 07:26 |
| Re: proposal: schema variables 📎 | Pavel Stehule | 11:43 |
| ALTER TABLE ADD FOREIGN KEY to partitioned table, is not parallelized | Dimitrios Apostolou | 15:34 |
| Thread | Author | Time |
|---|---|---|
| Re: ALTER TABLE ADD FOREIGN KEY to partitioned table, is not parallelized | Frédéric Yhuel | 07:00 |
| Re: ALTER TABLE ADD FOREIGN KEY to partitioned table, is not parallelized | Dimitrios Apostolou | 14:12 |
| Re: proposal: schema variables 📎 | Pavel Stehule | 20:22 |
| Thread | Author | Time |
|---|---|---|
| Re: ALTER TABLE ADD FOREIGN KEY to partitioned table, is not parallelized | Frédéric Yhuel | 14:13 |
| Re: ALTER TABLE ADD FOREIGN KEY to partitioned table, is not parallelized | Frédéric Yhuel | 14:51 |
| Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column | Mark Frost | 15:42 |
| Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column | Frédéric Yhuel | 17:09 |
| Re: Database creation performance drop going from pg 14 to pg 15+ | Mahdi Bahrami | 18:25 |
| Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column | Tom Lane | 18:57 |
| Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column | Tom Lane | 21:52 |
| Thread | Author | Time |
|---|---|---|
| Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column | Frédéric Yhuel | 08:07 |
| RE: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column | Mark Frost | 09:21 |
| Thread | Author | Time |
|---|---|---|
| Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column 📎 | Tom Lane | 01:29 |
| Thread | Author | Time |
|---|---|---|
| [PATCH] ALTER TABLE ADD FOREIGN KEY to partitioned table, is not parallelized 📎 | Dimitrios Apostolou | 00:51 |
| Re: proposal: schema variables 📎 | Pavel Stehule | 14:25 |
| Thread | Author | Time |
|---|---|---|
| Re: proposal: schema variables 📎 | Pavel Stehule | 04:53 |
| Re: Performance implications of 8K pread()s | Dimitrios Apostolou | 12:15 |
| Thread | Author | Time |
|---|---|---|
| Re: [PATCH] ALTER TABLE ADD FOREIGN KEY to partitioned table, is not parallelized | Dimitrios Apostolou | 16:23 |
| Thread | Author | Time |
|---|---|---|
| many sessions waiting DataFileRead and extend | James Pang | 03:15 |
| Re: many sessions waiting DataFileRead and extend | Laurenz Albe | 05:59 |
| Guidance Needed: Scaling PostgreSQL for 12 TB Data Growth - New Feature Implementation | Motog Plus | 08:35 |
| Guidance Needed: Scaling PostgreSQL for 12 TB Data Growth - New Feature Implementation | Motog Plus | 08:48 |
| Re: many sessions waiting DataFileRead and extend | James Pang | 09:10 |
| Re: many sessions waiting DataFileRead and extend | Frits Hoogland | 14:27 |
| Re: proposal: schema variables 📎 | Pavel Stehule | 17:33 |