Рет қаралды 258
[ 🇬🇧_🇺🇸 Check out the subtitles - we now edit them, ChatGPT+manually! You can also try KZbin's auto-translation of them from English to your language; try it and share it with people interested in Postgres!]
Nikolay and Michael discuss custom and generic planning in prepared statements - how it works, how issues can present themselves, some ways to view the generic plan, and some benefits of avoiding planning (not just time).
Here are some links to things they mentioned:
* PREPARE www.postgresql.org/docs/curre...
* track_activity_query_size www.postgresql.org/docs/curre...
* plan_cache_mode www.postgresql.org/docs/curre...
* EXPLAIN (GENERIC_PLAN) www.postgresql.org/docs/curre...
* EXPLAIN (GENERIC_PLAN) in PostgreSQL 16 (blog post by Laurenz from Cybertec) www.cybertec-postgresql.com/e...
* Running EXPLAIN on any query, even with $1 parameters (blog post and video by Lukas Fittl of pganalyze) pganalyze.com/blog/5mins-post...
* EXPLAIN from pg_stat_statements, how to get the generic plan (blog post by Franck Pashto of Yugabyte) dev.to/yugabyte/explain-from-...
* Rework query relation permission checking (commit by Amit Langote) git.postgresql.org/gitweb/pos...
* Partition pruning, prepared statements and generic vs custom query plans (a follow up blog post and video by Lukas) pganalyze.com/blog/5mins-post...
* Our episode on over-indexing (inc LWLock discussion) postgres.fm/episodes/over-ind...
* “The year of the lock manager’s revenge” (from blog post by Jeremy Schneider) ardentperf.com/2024/03/03/pos...
~~~
What did you like or not like? What should we discuss next time? Let us know in the comments, or by tweeting us on @postgresfm / postgresfm , @samokhvalov / samokhvalov and @michristofides / michristofides
~~~
Postgres FM is brought to you by:
- Nikolay Samokhvalov, founder of Postgres.ai postgres.ai/
- Michael Christofides, founder of pgMustard pgmustard.com/
~~~
This is the video version. Check out postgres.fm to subscribe to the audio-only version, to see the transcript, guest profiles, and more.