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

  Рет қаралды 515

PostgresTV 💙💛

PostgresTV 💙💛

12 күн бұрын

[ 🇬🇧_🇺🇸 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 9 күн бұрын
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 9 күн бұрын
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
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 4,1 МЛН
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 8 МЛН
Василиса наняла личного массажиста 😂 #shorts
00:22
Денис Кукояка
Рет қаралды 9 МЛН
3 Key Version Control Mistakes (HUGE STEP BACKWARDS)
15:08
Continuous Delivery
Рет қаралды 27 М.
Why I Quit the Scrum Alliance
7:58
The Passionate Programmer
Рет қаралды 9 М.
Don't do this | Postgres.FM 091 | #PostgreSQL #Postgres podcast
44:31
PostgresTV 💙💛
Рет қаралды 510
Should We Build EVERYTHING In Kubernetes? | Kelsey Hightower
8:27
Continuous Delivery
Рет қаралды 6 М.
Roadmap for Learning SQL
4:52
ByteByteGo
Рет қаралды 294 М.
Minor releases | Postgres.FM 097 | #PostgreSQL #Postgres podcast
39:46
PostgresTV 💙💛
Рет қаралды 211
Sponsoring the community | Postgres.FM 099 | #PostgreSQL #Postgres podcast
32:17
Bret Weinstein - The West May Not Be Salvageable
6:13
Liberty Vault
Рет қаралды 52 М.
ХЕЧ БУЛМАСА МЕХНАТГА БИТТА ЛАЙК БОСИНГ #2024
0:10
Муниса Азизжонова
Рет қаралды 6 МЛН
Harley Quinn made everyone disappear#joker #shorts
0:54
Untitled Joker
Рет қаралды 6 МЛН
😨 24 ЧАСА чтобы найти школьную ПИЦЦУ
0:41
Настя, это где?
Рет қаралды 3,9 МЛН
Khi em gái tôi đắp mặt nạ || Mask of joy #shorts
0:11
Linh Nhi Shorts
Рет қаралды 4,2 МЛН