To get the list of all stored procedures in a database, the “\df” command, “pg_proc” catalog, and “information_schema.routines” view are used in Postgres.
Education
Professional Postgres and Open Source support
Command Prompt, Inc., is the oldest Postgres Company in North America and one of the oldest Open Source firms still operating today. We serve our clients with best in class expertise and professionalism. You can read more about support and services here:
- Postgres Support
- PgLTS: Extended Support for EOL Postgres
- Open Source Full Stack Support
- Try the latest PgManage (Open Source) and get rid of PgAdmin!
You have landed at the largest single source of Postgres education blogs in the world. At Command Prompt, we believe deeply that the education of the community is critical to the continued success of Postgres and related technologies. We hope you find content you are looking for and don't hesitate to Contact us today for all your Postgres and Open Source consulting and support needs.
How to Check if a Table Exists in Postgres Database Using a User-Defined Function
In PostgreSQL, a user-defined function can be created that accepts the table name and schema name as arguments.
How to Show Installed Extensions in PostgreSQL
In PostgreSQL, the “\dx” command, “pg_extension” catalog, and “pgAdmin” are used to get the list of installed extensions.
How to Update Multiple Columns in PostgreSQL
To update multiple columns of a PostgreSQL table, use the comma-separated syntax within the UPDATE statement, combined with the SET clause.
How Do I Add an IDENTITY Column to an Already Existing Postgres Table
In PostgreSQL, the ALTER TABLE statement is executed with the “ADD GENERATED AS IDENTITY” option to add an IDENTITY column to a pre-existing table.
How to Fix the “lastval is not yet defined” Error When Calling LASTVAL() in Postgres
In PostgreSQL, the “lastval of the sequence is not yet defined” error occurs when the LASTVAL() function is invoked/called prior to the NEXTVAL() function.
How to Fix the “column can only be updated to DEFAULT” Error in Postgres
The “column can only be updated to DEFAULT” error arises when a user tries to update the value of an IDENTITY column that is created using the "GENERATED ALWAYS" option.
How to Drop IDENTITY Column From a Postgres Table
To drop or delete an IDENTITY column from a table, execute the ALTER TABLE statement with the DROP IDENTITY option.
How to Fix “ERROR: step size cannot equal zero” While Creating a Series in PostgreSQL
The "step size can't equal zero" error in PostgreSQL occurs when a user uses a wrong step size of 0 while generating a series using the generate_series() function.
How to Fix the “column of the relation must be declared NOT NULL before an identity can be added” Error in PostgreSQL?
In PostgreSQL, altering a regular column to an IDENTITY column requires the targeted column to be defined as NOT NULL.