Loading topic
CREATE TABLE, SELECT, INSERT, UPDATE, and DELETE. You should also know how to connect to PostgreSQL with psql or another client, and understand that a PostgreSQL server contains databases, schemas, and tables.2 min readSELECT, INSERT, UPDATE, and DELETE statements. It also assumes you know that a database contains schemas, and schemas contain tables and other objects.2 min readSELECT, INSERT, UPDATE, and DELETE statements. This chapter uses the terms database, schema, table, sequence, and function in their PostgreSQL sense.2 min readpsql or another client, and understand that databases contain schemas and tables. The examples use group roles so that privileges are assigned to job functions rather than individual login accounts.2 min readCREATE TABLE, SELECT, INSERT, and UPDATE statements. It also assumes that you understand that roles, databases, schemas, and tables are separate objects.2 min readGRANT statements.2 min readpsql or another client, and understand that a server contains databases and each database contains schemas and tables.2 min readorders table owned by app_owner, with app_readonly and app_writer as group roles.2 min readapp_owner, app_readonly, app_writer, and the shop schema already exist. The goal is to make new objects receive the intended privileges automatically.2 min readpsql or another client, and the difference between a database, schema, and table. The goal is to inspect effective access before changing it.2 min readGRANT statements. This chapter focuses on PostgreSQL’s predefined roles, which provide broad, built-in access for common tasks without granting superuser status.2 min readpsql, and understand that a server contains databases, which contain schemas and tables. This chapter combines those pieces into a role design that gives each account only the access it needs.2 min readGRANT. It also assumes that shop.orders exists and that alice belongs to app_readonly.2 min readpsql, and understand that a PostgreSQL server contains databases, schemas, and tables. This chapter focuses on safely removing a role without leaving owned objects or privileges behind.2 min read