Creates a new database with the specified name.
Permanently deletes a database and all its data.
Connects to a specific database in psql.
Lists all databases in the PostgreSQL server.
Creates a new table with specified columns and constraints.
Permanently deletes a table and all its data.
Modifies the structure of an existing table.
Lists all tables in the current database.
Inserts new rows into a table.
Retrieves data from one or more tables.
Modifies existing rows in a table.
Removes rows from a table.
Returns only matching rows from both tables.
Returns all rows from left table and matching rows from right table.
Returns all rows from right table and matching rows from left table.
Returns all rows from both tables, with NULLs for non-matching rows.
Counts the number of rows or non-NULL values.
Calculates the sum of numeric values in a column.
Calculates the average of numeric values in a column.
Finds the minimum and maximum values in a column.
Concatenates multiple strings together.
Converts strings to uppercase or lowercase.
Extracts a substring from a string.
Returns the length of a string in characters.
Returns the current date and time.
Truncates a timestamp to specified precision.
Extracts a specific field from a timestamp.
Calculates the age between two timestamps.
Creates an index to improve query performance.
Removes an index from the database.
Lists all indexes in the current database.
Creates an index on a subset of rows.
Creates a virtual table based on a query result.
Removes a view from the database.
Lists all views in the current database.
Creates a view that stores the query result physically.
Starts a new transaction block.
Commits the current transaction, making changes permanent.
Rolls back the current transaction, undoing all changes.
Creates a savepoint within a transaction.
Creates a backup of a database to a SQL file.
Restores a database from a backup file.
Restores a database from a SQL file.
Backs up all databases in a PostgreSQL cluster.