Performance
How Many Connections Can Your PostgreSQL Database Handle?
Mar 18, 2024 / · 7 min read · show postgresql database performance optimization pg_stat_activity pg_settings pg_stat_database pg_database pg_roles ·How Many Connections Can Your PostgreSQL Database Handle? PostgreSQL 16 split the connection limit into more than one pool. Besides the slots held back for superusers, a second block of slots can now be reserved for ordinary roles that have been granted pg_use_reserved_connections. The number of sessions an application …
Read MoreHow to Monitor PostgreSQL Index Cache for High Speed Queries
Mar 18, 2024 / · 2 min read · postgresql database performance optimization caching pg_statio_user_indexes pg_stat_user_indexes ·Keeping PostgreSQL Queries Speeding Along: Monitoring Index Cache Hit Rates For a smooth-running PostgreSQL database, ensuring efficient access to frequently used data is crucial. Indexes act as shortcuts, speeding up queries. But how well are those indexes utilized? This post explores a SQL query that helps you …
Read MoreIdentify Large PostgreSQL Indexes for Optimization
Mar 17, 2024 / · 9 min read · indexes storage optimization performance pg_index pg_class pg_namespace pg_tablespace pg_stat_user_indexes ·Find the Largest PostgreSQL Indexes by Size Which indexes are taking up the most disk in this database? pg_index joined to pg_class answers that in one query: every index with its table, schema, tablespace, size, and the command that would recreate it, sorted with the biggest first. It is the inventory step before any …
Read MoreMonitor PostgreSQL Index Usage for Speedy Queries
Mar 17, 2024 / · 3 min read · postgresql database performance optimization indexing pg_stat_user_tables pg_stat_user_indexes ·Monitoring PostgreSQL Index Usage: Keeping Your Queries Speedy In the fast-paced world of web applications, ensuring efficient database queries is paramount. PostgreSQL's powerful indexing capabilities play a crucial role in achieving optimal performance. This post delves into a SQL query that helps you monitor index …
Read More