- Display long running queries in a PostgreSQL database: This runbook displays collects the long running queries from a database and sends a message to the specified slack channel. Poorly optimized queries and excessive connections can cause problems in PostgreSQL, impacting upstream services.
- PostgreSQL Calculate Bloat: This Lego calculates bloat for tables in Postgres
- Calling a PostgreSQL function: Calling a PostgreSQL function
- PostgreSQL Check Unused Indexes: Find unused Indexes in a database in PostgreSQL
- Create Tables in PostgreSQL: Create Tables PostgreSQL
- Delete PostgreSQL Query: Delete PostgreSQL Query
- PostgreSQL Get Cache Hit Ratio: The result of the action will show the total number of blocks read from disk, the total number of blocks found in the buffer cache, and the cache hit ratio as a percentage. For example, if the cache hit ratio is 99%, it means that 99% of all data requests were served from the buffer cache, and only 1% required reading data from disk.
- Get PostgreSQL Handle: Get PostgreSQL Handle
- PostgreSQL Get Index Usage: The action result shows the data for table name, the percentage of times an index was used for that table, and the number of live rows in the table.
- PostgreSQL get service status: This action checks the status of each database.
- Execute commands in a PostgreSQL transaction.: Given a set of PostgreSQL commands, this actions run them inside a transaction.
- Long Running PostgreSQL Queries: Long Running PostgreSQL Queries
- Read PostgreSQL Query: Read PostgreSQL Query
- Show tables in PostgreSQL Database: Show the tables existing in a PostgreSQL Database. We execute the following query to fetch this information SELECT * FROM pg_catalog.pg_tables WHERE schemaname != 'pg_catalog' AND schemaname != 'information_schema';
- Call PostgreSQL Stored Procedure: Call PostgreSQL Stored Procedure
- Write PostgreSQL Query: Write PostgreSQL Query