Loading topic
CREATE TABLE, INSERT, UPDATE and SELECT, know the common types (text, integer, numeric, timestamptz), and k6 min readCREATE TABLE, INSERT, UPDATE and SELECT, and that you know the common PostgreSQL types (text, integer, numeric, timestamptz). You should also know what an index is. The previous chapter covered the syntax. Here you will use stored generated columns 7 min readGENERATED ALWAYS AS. It assumes you can write CREATE TABLE statements, know the common types (text, integer, numeric, timestamptz), and have seen the basic GENERATED ALWAYS AS (...) STORED syntax from the previous chapters.6 min readINSERT, UPDATE and SELECT statements. It also assumes you have seen the GENERATED ALWAYS AS (...) STORED syntax from the earlier chapters. Here you will learn what PostgreSQL does with a generated column when you write rows: when it computes the value6 min readGENERATED ALWAYS AS (expression) STORED, the immutability rule for the expression, and the fact that you cannot write to a generated column directly. You should also know what a view is and what an expression index does. Virtual gene8 min readCREATE TABLE and CREATE INDEX, and that you can read basic EXPLAIN output. It also assumes you know that a B-tree index lets PostgreSQL find rows without scanning the whole table. You should already know how to define a stored generated column.6 min readACCESS EXCLUSIVE lock is, at least that it blocks other sessions from reading and writing the table. The examples continue with the people table from earlier chap8 min readDEFAULT or a6 min read