Manage Database Objects

These topics cover creating and maintaining database objects such as tables, views, and indexes, along with reading and writing data through them and controlling transactions.

Tables and storage models

Create and Manage Tables

Specify a distribution policy when creating a table, because row data is spread across segments.

Create and Manage Tables
Choose a Table Storage Model

Choose among the heap, append-optimized, UnionStore, and PAX storage formats.

Choose a Table Storage Model
Partition Large Tables

Divide a large table into smaller ones so that a query scans only the data it needs.

Partition Large Tables

Read and write data

Write Basic Queries

The basic form of the SELECT statement.

Write Basic Queries
Insert, Update, and Delete Rows

Insert, update, and delete operations on table rows.

Insert, Update, and Delete Rows

Views and indexes

Create and Manage Views

Save frequently used or complex queries. A view occupies no disk and runs as a subquery when accessed.

Create and Manage Views
Create and Manage Materialized Views

Persist query results as a table, for results that are reused often.

Create and Manage Materialized Views
Create and Manage Indexes

Indexes behave differently in a distributed system than in a traditional database. Check the conditions before adding one.

Create and Manage Indexes
Use BRIN Indexes

Block range indexes, for very large tables whose column values correlate with physical storage order.

Use BRIN Indexes

Transactions

Work with Transactions

Bundle multiple SQL statements into an all-or-nothing operation.

Work with Transactions
Control Transaction Concurrency

How isolation levels and concurrent transactions affect each other.

Control Transaction Concurrency

Cross-cluster and object management

Query Across Clusters

Query across multiple PostgreSQL database clusters, pushing work down to reduce data transfer.

Query Across Clusters
Tag Database Objects

Attach custom labels to databases, users, tables, and other objects for classification and monitoring.

Tag Database Objects