Loading topic
psql. This chapter focuses on commands that help you explore a database. These commands do not query tables directly. They tell the psql client what to display or do.2 min readSELECT, WHERE, JOIN, and ORDER BY queries. You should also have access to a PostgreSQL server and be connected with psql. This chapter focuses on discovering the structure of a database before you query its data.2 min readSELECT statements and can connect to PostgreSQL with psql. This chapter focuses on making query results easier to read and easier to investigate. These settings change how psql displays results; they do not change the stored data.2 min readmydb. The psql commands in this chapter run SQL without requiring you to stay in an interactive session.2 min readSELECT, WHERE, JOIN, and ORDER BY statements. You should also understand tables, columns, schemas, primary keys, and foreign keys. The examples use the current database connection, so replace public and orders with names from your database.2 min readpsql, and understand schemas, tables, indexes, and views. This chapter shows how to measure storage usage in PostgreSQL and identify objects that deserve attention.2 min readmydb and the schema public.2 min readpsql, and write basic SQL. You should also know the difference between a database, schema, table, and column.1 min readSELECT, WHERE, JOIN, and ORDER BY statements. You also need access to a PostgreSQL server and permission to connect to the database you want to inspect. The pgAdmin Query Tool gives you a SQL editor, execution controls, result grids, messages, and query-plan views in on2 min readSELECT, WHERE, JOIN, and indexes. You also need access to a PostgreSQL database with a table such as orders. A query plan is PostgreSQL's chosen method for finding and combining rows. Reading plans helps explain why a query is slow.2 min readpsql or pgAdmin 4.2 min read