Loading topic
psql, which the previous chapter covered. You should also know basic SQL and what a schema and a table are. Here you learn how psql separates its own commands from SQL, and how to find a command you have forgotten without leaving the pr6 min readpsql, run SQL, and use basic meta-commands such as \dt and \d. It covers the settings that make query output readable: expanded mode, timing, NULL display, and the pager. It also covers the common ways these settings go wrong.6 min readpsql, use basic meta-commands such as \dt, and write simple SQL. Everything below is about running psql without typing into its prompt, so that an inspection becomes repeatable.4 min read\dt and \d+, and write basic SQL with joins and filters. You should also know the server, database, schema and object hierarchy from the first chapter.4 min read\dt and \d+, and read basic catalog queries. It covers how to measure databases, tables and indexes, which size function to use for each question, and where the numbers can mislead you.4 min read\dt and \d+, and read the pg_catalog queries from the earlier chapters. It covers three questions: who can connect, what each role may do, and why a given query is allowed or refused.5 min read\x, \timing, \pset). Here you will put those settings in a startup file so they apply to every session, and you will learn how that file is found, what it can safely co5 min readpsql flags you already know, and how to diagnose a failed connection.6 min readEXPLAIN, read the plan tree, and spot the usual signs of a slow query.6 min read\d+ in psql. You should also know what primary keys and foreign keys are. Here you will use pgAdmin's ERD tool to draw the tables of a database and the relationships between5 min read\d+ and \dt, query information_schema and pg_catalog, register a server in pgAdmin 4, browse its object tree, and run a query in the Query Tool. Here you comp6 min read