Should we use foreign keys? | Postgres.FM 102 |

  Рет қаралды 489

PostgresTV 💙💛

PostgresTV 💙💛

10 күн бұрын

[ 🇬🇧_🇺🇸 Check out the subtitles - we now edit them, ChatGPT+manually! You can also try KZfaq's auto-translation of them from English to your language; try it and share it with people interested in Postgres!]
Nikolay and Michael discuss foreign keys in Postgres - what they are, their benefits, their overhead, some edge cases to be aware of, some improvements coming, and whether or not they generally recommend using them.
Here are some links to things they mentioned:
* Foreign keys (docs) www.postgresql.org/docs/curre...
* Our episode about constraints: postgres.fm/episodes/constraints
* GitLab migration helper add_concurrent_foreign_key github.com/gitlabhq/gitlabhq/...
* Adding a foreign key without downtime (tweet by Nikolay) x.com/samokhvalov/status/1732...
* Bloat, pg_repack, and deferred constraints (blog post by Miro) / postgresql-bloat-pg-re...
* Postgres 17 draft release notes, server configuration section www.postgresql.org/docs/17/re...
* Our 100th episode postgres.fm/episodes/to-100tb...
* Stop! Trigger Time (blog post by Michael) www.pgmustard.com/blog/trigge...
* Should I Create an Index on Foreign Keys? (Blog post by Percona) www.percona.com/blog/should-i...
* Avoid Postgres performance cliffs with MultiXact IDs and foreign keys (5 min video by Lukas Fittl) pganalyze.com/blog/5mins-post...
* Experiment to see basic overhead of foreign keys v2.postgres.ai/chats/01902ee6...
* Experiment showing an extreme contention case v2.postgres.ai/chats/018fb28d...
* Subtransactions Considered Harmful (blog post by Nikolay) postgres.ai/blog/20210831-pos...
* Notes on some PostgreSQL implementation details (blog post by Nelson Elhage that mentions “subtransactions are cursed”) buttondown.email/nelhage/arch...
~~~
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.

Пікірлер: 7
@obacht7
@obacht7 8 күн бұрын
Thank you for another nice episode! I like that you started out with a very gentle introduction what the topic is about, why it is important, and what the main issues are related to Postgres. In some of the past episodes, I was sometimes a bit lost because I couldn't follow your deep knowledge quickly while not knowing enough about the postgres-specific challenges/internals myself. So thanks for setting the stage a bit for the beginners and Postgres-"foreigners" (pun intended) 👍
@NikolaySamokhvalov
@NikolaySamokhvalov 7 күн бұрын
Thanks I needed to hear this. Passed to Michael too. I think we'll do it more - basics in the beginning of an episode
To 100TB, and beyond! | Postgres.FM 100 | #PostgreSQL #Postgres podcast
47:42
Custom vs generic plan | Postgres.FM 096 | #PostgreSQL #Postgres podcast
29:00
I’m just a kid 🥹🥰 LeoNata family #shorts
00:12
LeoNata Family
Рет қаралды 18 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 17 МЛН
3 Key Version Control Mistakes (HUGE STEP BACKWARDS)
15:08
Continuous Delivery
Рет қаралды 24 М.
Sponsoring the community | Postgres.FM 099 | #PostgreSQL #Postgres podcast
32:17
Webinar: XOSTOR, Hyperconvergence for XCP-ng
1:04:38
Vates
Рет қаралды 593
Massive DELETEs | Postgres.FM 093 | #PostgreSQL #Postgres podcast
44:28
PostgresTV 💙💛
Рет қаралды 402
transaction_timeout | Postgres.FM 087 | #PostgreSQL #Postgres podcast
26:48
Minor releases | Postgres.FM 097 | #PostgreSQL #Postgres podcast
39:46
PostgresTV 💙💛
Рет қаралды 210
When Microsoft Violated Liskov Substitution Principle in .NET
18:16
Christopher Okhravi
Рет қаралды 41 М.
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
Парковка ТАКСИ от клоуна!
0:22
Клаунхаус Kids
Рет қаралды 1,1 МЛН
小路飞被臭死啦!#海贼王#路飞
0:27
路飞与唐舞桐
Рет қаралды 11 МЛН
The clown snatched the child's pacifier.#Short #Officer Rabbit #angel
0:26
Smart Sigma Kid #funny #sigma #comedy
0:25
CRAZY GREAPA
Рет қаралды 4,7 МЛН