Create a new PostgreSQL database
Create a new PostgreSQL user
Create a new PostgreSQL table
Create a new PostgreSQL function
CREATE FUNCTION functionname(arguments) RETURNS return_type AS $$ BEGIN ... END; $$ LANGUAGE plpgsql;
Creates a new function in the current database.
Create function to add two numbers
CREATE FUNCTION add_two_numbers(a int, b int) RETURNS int AS $$ BEGIN RETURN a + b; END; $$ LANGUAGE plpgsql;
Create a new PostgreSQL index
Create a new PostgreSQL view
Delete a PostgreSQL function