✕ Clear all filters
15 articles
▶ Videos →

📰 Dev.to · JoongHyuk Shin

15 articles · Updated every 3 hours · View all reads

All Articles 132,631Blog Posts 137,216Tech Tutorials 34,343Research Papers 25,934News 18,764 ⚡ AI Lessons
1.4.6 Aggregate Cost: Choosing HashAgg vs GroupAgg
Dev.to · JoongHyuk Shin 📊 Data Analytics & Business Intelligence ⚡ AI Lesson 1mo ago
1.4.6 Aggregate Cost: Choosing HashAgg vs GroupAgg
A query like SELECT region, COUNT(*) FROM sales GROUP BY region folds many rows together, collapsing...
1.4.4 Join Strategies: Nested Loop, Hash, Merge
Dev.to · JoongHyuk Shin 📊 Data Analytics & Business Intelligence ⚡ AI Lesson 1mo ago
1.4.4 Join Strategies: Nested Loop, Hash, Merge
The costs in 1.4.2 and 1.4.3 were about how to read a single table. A join combines two tables, and...
1.3.4 RETURNING Mapping and View-Target DML Transformation
Dev.to · JoongHyuk Shin ⚡ AI Lesson 2mo ago
1.3.4 RETURNING Mapping and View-Target DML Transformation
The previous section (1.3.3) looked at the work the rewriter does to fill empty slots with values and...
1.3.3 INSERT/UPDATE/DELETE Targetlist Normalization (Default Expansion)
Dev.to · JoongHyuk Shin ⚡ AI Lesson 2mo ago
1.3.3 INSERT/UPDATE/DELETE Targetlist Normalization (Default Expansion)
The two rewriter tasks we have seen so far, view expansion and RLS policy injection, were unpacked...
1.3.2 How RLS Rewrites Queries (Mechanism)
Dev.to · JoongHyuk Shin ⚡ AI Lesson 2mo ago
1.3.2 How RLS Rewrites Queries (Mechanism)
Once you put row-level security (RLS) on a table, queries that read from that table don't run the way...
1.3.1 Rule system and view expansion
Dev.to · JoongHyuk Shin ⚡ AI Lesson 2mo ago
1.3.1 Rule system and view expansion
This section is about how PostgreSQL makes a view reference disappear. When a user writes SELECT *...
1.3 Rewriter: How a Query is Rewritten
Dev.to · JoongHyuk Shin ⚡ AI Lesson 2mo ago
1.3 Rewriter: How a Query is Rewritten
By the time the analysis stage from 1.2 finishes, the SQL has become a Query tree. Catalog...
1.2.3 Query tree node types: Query, RangeTblEntry, TargetEntry
Dev.to · JoongHyuk Shin ⚡ AI Lesson 2mo ago
1.2.3 Query tree node types: Query, RangeTblEntry, TargetEntry
After the Analyze stage from 1.2.2, the raw parse tree has become a Query tree. This section is about...
1.2 Parser and Analyzer: How SQL Gets Its Meaning
Dev.to · JoongHyuk Shin ⚡ AI Lesson 2mo ago
1.2 Parser and Analyzer: How SQL Gets Its Meaning
A line like SELECT name FROM users WHERE id = 1 is just text when the client sends it. The first...
1.1.3 Optimizable vs Utility
Dev.to · JoongHyuk Shin ⚡ AI Lesson 2mo ago
1.1.3 Optimizable vs Utility
Inside the five-stage pipeline from 1.1.1, there is another fork right after the parser. PostgreSQL...
1.1.2 Simple vs Extended
Dev.to · JoongHyuk Shin ⚡ AI Lesson 2mo ago
1.1.2 Simple vs Extended
The fork visible in 1.1.1 — simple query protocol on one side, extended on the other — is the subject...