Loading topic
SELECT, INSERT, and UPDATE, can create a table with typed columns, and can run statements in psql. It also assumes you know that a NULL in SQL means "unknown", not "empty". You don't need to h7 min readNULL instead of failing, and a slice is always an array.6 min readSELECT, INSERT and UPDATE statements. It also assumes you know how to declare an array column and write array values, and that you understand NULL and three-valued logic in SQL. You will learn to measure an array, locate an element in it, and predict wh5 min readSELECT, INSERT, UPDATE, and WHERE. You should know how to declare an array column and write array values with ARRAY[...] and '{...}'. You should also know that subscripts start at 1 and that NULL follows three-valued logic. This chapter covers the write sid6 min readWHERE clauses against array columns. It assumes you can already declare an array column, write values with ARRAY[...] or '{...}', and read the three-valued logic of NULL in a WHERE clause. It also assumes you can run SQL in psql or another PostgreSQL clie6 min readSELECT, JOIN and GROUP BY queries, and that you have the posts table from earlier chapters. You should also know how array literals and subscripts work and how NULL behaves in SQL. Here you learn to move data in both directions: from one array value to6 min read@>, && and = ANY queries against an array column, as covered in the previous chapters. It also assumes you can read basic EXPLAIN output. You will build a GIN index on an array column and see which queries it serves. You will also learn why the planner some7 min read@>, &&, ANY, unnest, array_agg) and can read a basic EXPLAIN plan. It also assumes you know foreign keys and primary keys. Here you will compare two designs for the same data, see where each one breaks down, 7 min read