pgsql-performance since 2025-09-17 00:00

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.

Search the Archives

(enter a message-id to go directly to that message)

Browse Archives

Prev | Next

Sept. 17, 2025

Thread Author Time
Indexes on expressions with multiple columns and operators 📎 Frédéric Yhuel 13:55
Re: Indexes on expressions with multiple columns and operators Laurenz Albe 14:22
Re: Indexes on expressions with multiple columns and operators Tom Lane 14:41
Re: Indexes on expressions with multiple columns and operators Frédéric Yhuel 14:57
Re: Indexes on expressions with multiple columns and operators Frédéric Yhuel 15:33

Sept. 18, 2025

Thread Author Time
Why isn't PG using an index-only scan? Jean-Christophe BOGGIO 06:36
Re: Why isn't PG using an index-only scan? David Rowley 07:20
Re: Why isn't PG using an index-only scan? Jean-Christophe BOGGIO 07:45
Re: Why isn't PG using an index-only scan? Andrei Lepikhov 07:55
Re: Why isn't PG using an index-only scan? David Rowley 11:32
Re: Why isn't PG using an index-only scan? David Rowley 11:35
Re: Why isn't PG using an index-only scan? Andrei Lepikhov 11:55
Re: Indexes on expressions with multiple columns and operators Jehan-Guillaume de Rorthais 15:26
Re: Indexes on expressions with multiple columns and operators Tom Lane 15:32
Re: Indexes on expressions with multiple columns and operators 📎 Tom Lane 16:40
Re: Indexes on expressions with multiple columns and operators Ranier Vilela 16:48
Re: Indexes on expressions with multiple columns and operators Tom Lane 16:59

Sept. 19, 2025

Thread Author Time
Re: Why isn't PG using an index-only scan? David Rowley 01:05
Re: Indexes on expressions with multiple columns and operators Frédéric Yhuel 07:50
Re: Why isn't PG using an index-only scan? Andrei Lepikhov 07:50
Re: Indexes on expressions with multiple columns and operators Jehan-Guillaume de Rorthais 14:37
Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column Matt Long 18:26
Re: Poor row estimates from planner, stat `most_common_elems` sometimes missing for a text[] column Tom Lane 19:23

Sept. 20, 2025

Thread Author Time
Re: Indexes on expressions with multiple columns and operators Tom Lane 16:51

Sept. 22, 2025

Thread Author Time
Re: Indexes on expressions with multiple columns and operators Frédéric Yhuel 13:37
Re: Indexes on expressions with multiple columns and operators Andrei Lepikhov 13:57
Re: Indexes on expressions with multiple columns and operators Frédéric Yhuel 16:09
Re: Indexes on expressions with multiple columns and operators Andrei Lepikhov 21:15

Sept. 23, 2025

Thread Author Time
Re: Indexes on expressions with multiple columns and operators Frédéric Yhuel 10:20
Re: Indexes on expressions with multiple columns and operators Andrei Lepikhov 10:43
Re: Indexes on expressions with multiple columns and operators Frédéric Yhuel 13:31
Very expensive update to update a single row Dirschel, Steve 19:40
Re: Very expensive update to update a single row Sean M 21:12

Sept. 25, 2025

Thread Author Time
Re: Indexes on expressions with multiple columns and operators Frédéric Yhuel 10:41
Re: Indexes on expressions with multiple columns and operators Frédéric Yhuel 10:43
Partition pruning is not happening (even in PG18) Lauro Ojeda 19:34
Re: Partition pruning is not happening (even in PG18) Michał Kłeczek 20:10
Re: Partition pruning is not happening (even in PG18) Michał Kłeczek 20:13
Re: Partition pruning is not happening (even in PG18) David Rowley 20:17

Sept. 29, 2025

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 10:13
Re: Partition pruning is not happening (even in PG18) Lauro Ojeda 13:49
Re: Partition pruning is not happening (even in PG18) Chetan 20:05
Re: Partition pruning is not happening (even in PG18) David Rowley 20:08

Oct. 6, 2025

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 05:54

Oct. 9, 2025

Thread Author Time
Question about nested loops.. Frits Jalvingh 08:52
Re: Question about nested loops.. Andrei Lepikhov 10:00
Re: Poor performance with row wise comparisons Peter Geoghegan 21:53

Oct. 10, 2025

Thread Author Time
Re: Poor performance with row wise comparisons lokesh 04:21
Re: Question about nested loops.. Andrei Lepikhov 09:28

Oct. 11, 2025

Thread Author Time
Re: Poor performance with row wise comparisons David G. Johnston 23:03

Oct. 12, 2025

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 04:57

Oct. 13, 2025

Thread Author Time
Re: Indexes on expressions with multiple columns and operators Andrei Lepikhov 13:56
Re: Indexes on expressions with multiple columns and operators Andrei Lepikhov 14:00
Re: Indexes on expressions with multiple columns and operators Tom Lane 14:55

Oct. 14, 2025

Thread Author Time
Re: Indexes on expressions with multiple columns and operators Andrei Lepikhov 09:29

Oct. 22, 2025

Thread Author Time
Performance implications of partitioning by UUIDv7 range in PostgreSQL v18 Jonathan Reis 03:37
Re: Performance implications of partitioning by UUIDv7 range in PostgreSQL v18 David Rowley 19:55
Re: Performance implications of partitioning by UUIDv7 range in PostgreSQL v18 Olof Salberger 21:05

Oct. 23, 2025

Thread Author Time
Re: Performance implications of partitioning by UUIDv7 range in PostgreSQL v18 Greg Sabino Mullane 16:51
Re: Performance implications of partitioning by UUIDv7 range in PostgreSQL v18 Jonathan Reis 20:11
Re: Performance implications of partitioning by UUIDv7 range in PostgreSQL v18 Laurenz Albe 20:38
Re: Performance implications of partitioning by UUIDv7 range in PostgreSQL v18 David Rowley 22:54

Oct. 24, 2025

Thread Author Time
Re: Performance implications of partitioning by UUIDv7 range in PostgreSQL v18 Jonathan Reis 02:14
Re: Performance implications of partitioning by UUIDv7 range in PostgreSQL v18 Laurenz Albe 05:04
Re: Performance implications of partitioning by UUIDv7 range in PostgreSQL v18 Greg Sabino Mullane 12:38
Re: Performance implications of partitioning by UUIDv7 range in PostgreSQL v18 Jonathan Reis 15:24

Oct. 27, 2025

Thread Author Time
GEQO plans much slower than standard join plans 📎 Carlo Sganzerla 18:17

Oct. 28, 2025

Thread Author Time
Re: GEQO plans much slower than standard join plans Tomas Vondra 01:24
Re: GEQO plans much slower than standard join plans 📎 Carlo Sganzerla 15:43

Oct. 29, 2025

Thread Author Time
Re: GEQO plans much slower than standard join plans Tomas Vondra 02:05
Re: GEQO plans much slower than standard join plans Carlo Sganzerla 14:57

Oct. 30, 2025

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 16:27

Oct. 31, 2025

Thread Author Time
Re: GEQO plans much slower than standard join plans David Rowley 01:19

Nov. 2, 2025

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 20:40

Nov. 5, 2025

Thread Author Time
trgm and index-usage when using similarity function Andreas Joseph Krogh 08:18
Problem getting query to use index inside a function Dirschel, Steve 16:02
Re: Problem getting query to use index inside a function Tom Lane 16:18
RE: [EXT] Re: Problem getting query to use index inside a function Dirschel, Steve 16:55
Re: [EXT] Re: Problem getting query to use index inside a function Tom Lane 19:17
RE: [EXT] Re: Problem getting query to use index inside a function Dirschel, Steve 20:18

Nov. 6, 2025

Thread Author Time
Index Searches higher than expected for skip scan Michael Christofides 19:00
Re: Index Searches higher than expected for skip scan 📎 Peter Geoghegan 19:54
Re: Index Searches higher than expected for skip scan Peter Geoghegan 20:39

Nov. 7, 2025

Thread Author Time
Re: Index Searches higher than expected for skip scan Michael Christofides 11:16
Re: Index Searches higher than expected for skip scan Peter Geoghegan 15:00

Nov. 10, 2025

Thread Author Time
Multicolumn index scan efficiency Vitalii Tymchyshyn 02:44
Re: Multicolumn index scan efficiency Peter Geoghegan 04:20
Re: Multicolumn index scan efficiency Vitalii Tymchyshyn 05:12
Re: proposal: schema variables 📎 Pavel Stehule 06:40
Re: Multicolumn index scan efficiency Peter Geoghegan 17:00

Nov. 24, 2025

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 19:59
Re: proposal: schema variables 📎 Pavel Stehule 21:19

Nov. 25, 2025

Thread Author Time
Re: proposal: schema variables Pavel Stehule 04:43

Nov. 30, 2025

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 06:01

Dec. 3, 2025

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 04:27
Re: proposal: schema variables Jim Jones 13:44
Client-server communication for FETCH Tim Fors 18:02
Re: Client-server communication for FETCH Tom Lane 18:41
Re: Client-server communication for FETCH Tim Fors 19:45

Dec. 4, 2025

Thread Author Time
Why is my query 3 times faster on my workstation than on my server? Vincent Veyron 18:46
Re: Why is my query 3 times faster on my workstation than on my server? Pavel Stehule 18:53
Re: Why is my query 3 times faster on my workstation than on my server? Tom Lane 19:06
RE: Why is my query 3 times faster on my workstation than on my server? Clay Jackson (cjackson) 19:51
Re: Why is my query 3 times faster on my workstation than on my server? Vincent Veyron 22:56

Dec. 5, 2025

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 06:50
Re: Client-server communication for FETCH Jan Claeys 09:08
Seeking guidance on extremely slow pg_restore despite strong I/O performance MentionTheElephant 10:30
Re: Seeking guidance on extremely slow pg_restore despite strong I/O performance pg254kl 20:27

Dec. 6, 2025

Thread Author Time
Re: proposal: schema variables Jim Jones 11:29

Dec. 8, 2025

Thread Author Time
Re: Seeking guidance on extremely slow pg_restore despite strong I/O performance Jeff Janes 00:53
Re: proposal: schema variables 📎 Pavel Stehule 08:15
Re: proposal: schema variables 📎 Pavel Stehule 13:57

Dec. 9, 2025

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 05:51

Dec. 12, 2025

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 14:46

Dec. 15, 2025

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 04:42

Dec. 27, 2025

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 07:52

Jan. 2, 2026

Thread Author Time
Surprising optimizer behavior with a subquery, a GROUP BY, and a range filter wotq 20:26
Re: Surprising optimizer behavior with a subquery, a GROUP BY, and a range filter Tom Lane 20:46

Jan. 8, 2026

Thread Author Time
Unexpected planner choice in simple JOIN Mark Kirkwood 01:35
Re: Unexpected planner choice in simple JOIN Mark Kirkwood 03:34
Re: Unexpected planner choice in simple JOIN David Rowley 03:56
Re: Unexpected planner choice in simple JOIN Mark Kirkwood 04:03
Re: Unexpected planner choice in simple JOIN David Rowley 04:14
Re: Unexpected planner choice in simple JOIN Mark Kirkwood 04:24
Re: Unexpected planner choice in simple JOIN Tom Lane 04:34
Re: Unexpected planner choice in simple JOIN Mark Kirkwood 04:44
Re: Unexpected planner choice in simple JOIN Tom Lane 04:51
Re: Unexpected planner choice in simple JOIN Mark Kirkwood 04:55

Jan. 9, 2026

Thread Author Time
Another unexpected planner choice in simple JOIN Mark Kirkwood 00:12
Re: Another unexpected planner choice in simple JOIN Mark Kirkwood 01:15
Re: proposal: schema variables 📎 Pavel Stehule 08:45
Troubleshooting a brief spike in active sessions Dirschel, Steve-CW 21:41
Re: Troubleshooting a brief spike in active sessions Joshua Banton 21:58
Re: Troubleshooting a brief spike in active sessions Nikolay Samokhvalov 22:27
Re: Troubleshooting a brief spike in active sessions Nikolay Samokhvalov 22:29

Jan. 13, 2026

Thread Author Time
small database huge planning time 📎 Alexander Kulikov 09:16
Re: small database huge planning time Andrei Lepikhov 09:29
Re: small database huge planning time Greg Sabino Mullane 14:44
Re: small database huge planning time Huanbing Lu 16:07

Jan. 17, 2026

Thread Author Time
Slow queries on simple index Lillian Berry 13:58
Re: Slow queries on simple index Pavel Stehule 14:59
Re: Slow queries on simple index Ken Marshall 15:28
Re: Slow queries on simple index Tom Lane 16:57
Re: Slow queries on simple index Lillian Berry 19:33
Re: Slow queries on simple index Andrei Lepikhov 20:21
Re: Slow queries on simple index Lillian Berry 20:52
Re: Slow queries on simple index Tom Lane 21:10
[Solved] Slow queries on simple index Lillian Berry 22:06

Jan. 18, 2026

Thread Author Time
Re: Slow queries on simple index Andrei Lepikhov 09:24

Jan. 24, 2026

Thread Author Time
Re: small database huge planning time 📎 Andrei Lepikhov 22:12

Feb. 3, 2026

Thread Author Time
performance impact on read replicas during heavy vacuums on primary Dirk Krautschick 01:02

Feb. 4, 2026

Thread Author Time
Re: performance impact on read replicas during heavy vacuums on primary Greg Sabino Mullane 16:29

Feb. 10, 2026

Thread Author Time
Postgres IO sweet spot Riaan Stander 23:13

Feb. 11, 2026

Thread Author Time
LATERAL subquery predicate pushdown: filter applied after JSON construction instead of inside join (PG 18) 📎 Nyasha Chigwamba 16:12
Re: LATERAL subquery predicate pushdown: filter applied after JSON construction instead of inside join (PG 18) Tom Lane 17:37

Feb. 12, 2026

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 19:25

Feb. 16, 2026

Thread Author Time
A serious change in performance between PG 15 and PG 16, 17, 18. Clive Boughton 03:49
Re: A serious change in performance between PG 15 and PG 16, 17, 18. Tom Lane 04:03
Re: A serious change in performance between PG 15 and PG 16, 17, 18. David Rowley 04:04
Re: A serious change in performance between PG 15 and PG 16, 17, 18. David G. Johnston 04:04
Re: A serious change in performance between PG 15 and PG 16, 17, 18. Andrei Lepikhov 09:05
Re: Postgres IO sweet spot Riaan Stander 14:57
Re: Postgres IO sweet spot Greg Sabino Mullane 15:34
Re: A serious change in performance between PG 15 and PG 16, 17, 18. Joe Conway 15:42

Feb. 17, 2026

Thread Author Time
Re: Postgres IO sweet spot Riaan Stander 23:42

Feb. 18, 2026

Thread Author Time
Re: A serious change in performance between PG 15 and PG 16, 17, 18. David Rowley 00:01
Re: A serious change in performance between PG 15 and PG 16, 17, 18. Clive Boughton 01:05

Feb. 23, 2026

Thread Author Time
unstable query plan on pg 16,17,18 Attila Soki 09:37
Re: unstable query plan on pg 16,17,18 Laurenz Albe 09:41
Re: LATERAL subquery predicate pushdown: filter applied after JSON construction instead of inside join (PG 18) Nyasha Chigwamba 10:52
MERGE INTO... WHEN NOT MATCHED BY SOURCE index usage Lea Führer 14:18
Re: unstable query plan on pg 16,17,18 Attila Soki 15:10
Re: unstable query plan on pg 16,17,18 Andrei Lepikhov 15:54
Re: unstable query plan on pg 16,17,18 Attila Soki 17:03
Re: unstable query plan on pg 16,17,18 Laurenz Albe 19:59
Re: unstable query plan on pg 16,17,18 Andrei Lepikhov 20:25
Re: unstable query plan on pg 16,17,18 Attila Soki 20:42
Re: unstable query plan on pg 16,17,18 Laurenz Albe 20:54
Re: unstable query plan on pg 16,17,18 Attila Soki 21:19
Re: unstable query plan on pg 16,17,18 Laurenz Albe 21:44

Feb. 24, 2026

Thread Author Time
Re: unstable query plan on pg 16,17,18 Andrei Lepikhov 09:11
Re: unstable query plan on pg 16,17,18 Attila Soki 09:16
Re: unstable query plan on pg 16,17,18 Andrei Lepikhov 11:09
Re: unstable query plan on pg 16,17,18 Attila Soki 11:37
Re: unstable query plan on pg 16,17,18 Attila Soki 15:50
Re: unstable query plan on pg 16,17,18 Andrei Lepikhov 15:57
Re: unstable query plan on pg 16,17,18 Attila Soki 16:48
Re: unstable query plan on pg 16,17,18 📎 Andrei Lepikhov 19:20

Feb. 25, 2026

Thread Author Time
Re: MERGE INTO... WHEN NOT MATCHED BY SOURCE index usage Feike Steenbergen 16:35

Feb. 26, 2026

Thread Author Time
Re: unstable query plan on pg 16,17,18 Attila Soki 16:15
Re: unstable query plan on pg 16,17,18 Attila Soki 16:22
Re: unstable query plan on pg 16,17,18 Laurenz Albe 20:53

Feb. 27, 2026

Thread Author Time
Re: unstable query plan on pg 16,17,18 Andrei Lepikhov 08:15
Re: unstable query plan on pg 16,17,18 Attila Soki 15:00
Re: unstable query plan on pg 16,17,18 Andrei Lepikhov 15:35

March 4, 2026

Thread Author Time
Re: proposal: schema variables Haritabh Gupta 10:02
Re: proposal: schema variables Pavel Stehule 19:15

March 5, 2026

Thread Author Time
Re: proposal: schema variables 📎 Pavel Stehule 12:54
Planner join order regression from PG 15 to PG 16+: 70ms -> 1440ms (self-contained reproducer included) 📎 Mauro Gatti 16:25
Re: Planner join order regression from PG 15 to PG 16+: 70ms -> 1440ms (self-contained reproducer included) 📎 Andrei Lepikhov 19:09

Browse Archives

Prev | Next