Postgres Scripts
open-menu closeme
Home
About
Contact Us
Privacy Satement
🌐
English Português
rss
  • Monitoring PostgreSQL Active Sessions with pg_stat_activity Explained

    calendar Aug 25, 2025 / Oct 10, 2025 · 3 min read · postgresql sql database monitoring performance queries pg_stat_activity  ·
    Share on: twitter facebook linkedin copy

    Monitoring PostgreSQL Active Sessions with pg_stat_activity Explained As databases scale, monitoring active connections and queries in PostgreSQL becomes essential for performance tuning, troubleshooting, and ensuring stability. PostgreSQL provides a powerful system view called pg_stat_activity that contains detailed …


    Read More
  • Monitor Running Queries in PostgreSQL using pg_stat_activity

    calendar Aug 18, 2025 / Oct 10, 2025 · 2 min read · postgresql database sql performance monitoring tuning optimization queries pg_stat_activity  ·
    Share on: twitter facebook linkedin copy

    Monitor Running Queries in PostgreSQL (9.2+ and Newer) Overview When managing a PostgreSQL database, one of the most important tasks for database administrators and developers is monitoring currently running queries. This helps identify problematic sessions, troubleshoot performance bottlenecks, and optimize …


    Read More
  • How to Identify and Monitor Slow Queries in PostgreSQL: A Practical Guide

    calendar May 19, 2025 / Oct 10, 2025 · 3 min read · PostgreSQL SQL database performance monitor running queries pg_stat_activity  ·
    Share on: twitter facebook linkedin copy

    PostgreSQL Query for Monitoring Slow Running Queries Purpose Monitoring and optimizing database performance is critical for any production environment. One common challenge is identifying slow queries that may impact overall system responsiveness. This article explains how to use a PostgreSQL SQL query to find …


    Read More
  • PostgreSQL Lock Monitoring Uncover Query Details and Lock Age

    calendar Sep 2, 2024 / Oct 10, 2025 · 3 min read · PostgreSQL SQL Database Performance Monitoring pg_stat_activity pg_locks  ·
    Share on: twitter facebook linkedin copy

    PostgreSQL Lock Monitoring: Gain Insights into Locks with Query and Age Purpose This PostgreSQL SQL query equips you to monitor locks held by active database sessions along with their associated queries and age. This detailed information proves invaluable for performance tuning, troubleshooting lock conflicts, and …


    Read More
  • PostgreSQL Lock Monitoring Identify & Resolve Blocking Application Locks

    calendar Sep 1, 2024 / Oct 10, 2025 · 3 min read · PostgreSQL SQL Database Performance Troubleshooting pg_locks pg_stat_activity  ·
    Share on: twitter facebook linkedin copy

    PostgreSQL Lock Monitoring: Identify Blocking Locks and Resolve Application Conflicts Purpose In a busy PostgreSQL environment, transactions can sometimes become blocked, waiting for other transactions to release locks. This can slow performance and even cause stalls. This article dissects a powerful PostgreSQL script …


    Read More
  • PostgreSQL Performance Monitoring Identify Slow Queries in Real-Time

    calendar Aug 31, 2024 / Oct 10, 2025 · 3 min read · PostgreSQL SQL Database Performance Monitoring pg_stat_activity  ·
    Share on: twitter facebook linkedin copy

    PostgreSQL: Identify Slow Running Queries in Real-Time Purpose This PostgreSQL SQL query provides a real-time snapshot of queries currently executing on your database that have been running for more than 30 seconds. It acts as a powerful alternative to a traditional slow query log, helping you proactively identify and …


    Read More
  • PostgreSQL Lock Troubleshooting, Unlocking Blocked Processes

    calendar Apr 22, 2024 / Oct 10, 2025 · 2 min read · PostgreSQL database performance troubleshooting locks pg_locks pg_stat_activity  ·
    Share on: twitter facebook linkedin copy

    PostgreSQL Lock Troubleshooting: Unlocking Blocked Processes In a busy PostgreSQL environment, transactions can sometimes become blocked, waiting for other transactions to release locks. This can slow performance and even cause stalls. This article dissects a powerful PostgreSQL script designed to expose blocked …


    Read More
  • Keep Your PostgreSQL Database Clean, Identify Idle Connections

    calendar Apr 7, 2024 / Oct 10, 2025 · 3 min read · pg_stat_activity postgresql database performance  ·
    Share on: twitter facebook linkedin copy

    Identify Idle PostgreSQL Connections: Keep Your Database Clean This blog post equips you with the knowledge to identify and potentially terminate stale connections within your PostgreSQL database. We'll delve into the provided SQL code, explain its purpose, and offer valuable insights for maintaining optimal database …


    Read More
  • Identifying Blocking PostgreSQL Queries using pg_stat_activity

    calendar Mar 25, 2024 / Oct 10, 2025 · 3 min read · pg_blocking_pids pg_stat_activity postgresql locks database performance database administration  ·
    Share on: twitter facebook linkedin copy

    Identifying Blocking PostgreSQL Queries: A Guide for Database Administrators This article explores a PostgreSQL query designed to identify currently blocked database queries and the processes (identified by PIDs) responsible for blocking them. This information is crucial for database administrators troubleshooting …


    Read More
  • Monitoring Active Queries in PostgreSQL for Performance Optimization

    calendar Mar 22, 2024 / Oct 10, 2025 · 3 min read · postgresql performance monitoring optimization database pg_stat_activity  ·
    Share on: twitter facebook linkedin copy

    Monitoring Active Queries in PostgreSQL for Performance Optimization Introduction Ensuring smooth database performance is crucial for modern applications. In PostgreSQL, the number of active queries can significantly impact responsiveness. This article explores a PostgreSQL query that effectively counts active queries, …


    Read More
    • ««
    • «
    • 1
    • 2
    • »
    • »»

PostgresScripts.com

Your Source for PostgreSQL Database SQL Scripts
Read More

Recent Posts

  • PostgreSQL Memory Settings Query: Monitor Database Memory Configuration
  • PostgreSQL Logging Configuration Query pg_settings - Monitor Database Settings
  • PostgreSQL Lock Management Settings Query Guide accessing system table pg_settings
  • PostgreSQL File Location Settings Query Guide using pg_settings
  • PostgreSQL Error Handling Settings Query Guide using pg_settings
  • PostgreSQL Developer Settings Query: How to View Database Configuration Options
  • PostgreSQL Connection Settings Query - Complete Guide to pg_settings
  • PostgreSQL Compatibility Settings Query: Complete Guide to pg_settings Analysis

Categories

SCRIPTS 47 ADMINISTRATION STATUS 22 ADMINISTRATION SESSION 9 ADMINISTRATION SETTINGS 6 PERFORMANCE QUERY TUNING 5 PERFORMANCE LOCKS DDL 4 PERFORMANCE LOCKS DML 4 PERFORMANCE STATISTICS 4 STRUCTURE INDEXES 4 PERFORMANCE MONITORING 3 POSTGRESQL COMMANDS 3 POSTGRESQL STRUCTURE INDEXES 3 ADMINISTRATION INIT PARAMETERS 1 BACKUP AND RECOVERY 1
All Categories
ADMINISTRATION INIT PARAMETERS1 ADMINISTRATION SESSION9 ADMINISTRATION SETTINGS6 ADMINISTRATION STATUS22 BACKUP AND RECOVERY1 BACKUP IMPORT EXPORT1 BACKUP PG_DUMP1 PEFORMANCE MEMORY1 PERFORMANCE GENERAL1 PERFORMANCE LOCKS DDL4 PERFORMANCE LOCKS DML4 PERFORMANCE MEMORY1 PERFORMANCE MONITORING3 PERFORMANCE QUERY TUNING5 PERFORMANCE STATISTICS4 PERFORMANCE STATSTICS1 POSTGRESQL COMMANDS3 POSTGRESQL STRUCTURE INDEXES3 SCRIPTS47 STRUCTURE INDEXES4
[A~Z][0~9]

Series

ADMIN-GUIDE 13

Tags

POSTGRESQL 45 DATABASE 29 PERFORMANCE 22 DATABASE ADMINISTRATION 14 OPTIMIZATION 13 SQL 13 PG_STAT_ACTIVITY 11 SQL QUERIES 10 CONFIGURATION 8 MONITORING 8 PG_SETTINGS 8 TROUBLESHOOTING 6 PERFORMANCE TUNING 5 PG_CLASS 5
All Tags
ADMINISTRATION3 ANALYZE1 AUTHENTICATION1 AUTOMATION1 AUTOVACUUM1 BACKUP1 CACHING1 CLIENT-CONNECTIONS1 COMMAND-LINE1 COMPATIBILITY1 CONFIGURATION8 CONNECTION-SETTINGS1 DATABASE29 DATABASE ADMIN1 DATABASE ADMINISTRATION14 DATABASE CONFIGURATION2 DATABASE MANAGEMENT4 DATABASE OPTIMIZATION1 DATABASE PERFORMANCE3 DATABASE SCHEMA1 DATABASE SCHEMA DESIGN1 DATABASE-MAINTENANCE1 DATABASE-TUNING3 DBA-TIPS1 DEVELOPER TOOLS1 ERROR HANDLING1 FILE MANAGEMENT1 IMPORT1 INDEXING4 LOCK MANAGEMENT1 LOCKS2 LOGGING1 MAINTENANCE1 MEMORY MANAGEMENT1 MONITOR RUNNING QUERIES2 MONITORING8 OPTIMIZATION13 PERFORMANCE22 PERFORMANCE OPTIMIZATION2 PERFORMANCE TUNING5 PG_ATTRIBUTE2 PG_BACKUP_START_TIME1 PG_BLOCKING_PIDS1 PG_CATALOG1 PG_CLASS5 PG_DATABASE1 PG_DATABASE_SIZE1 PG_DUMP1 PG_FILE_SETTINGS1 PG_INDEXES1 PG_IS_IN_BACKUP1 PG_IS_IN_RECOVERY1 PG_LOCKS4 PG_NAMESPACE2 PG_SETTINGS8 PG_SIZE_PRETTY1 PG_STAT_ACTIVITY11 PG_STAT_ALL_INDEXES1 PG_STAT_DATABASE1 PG_STAT_STATEMENTS3 PG_STAT_USER_TABLES3 PG_STATIO_USER_INDEXES1 PG_STATISTIC2 PG_TABLESPACE1 PG_TYPE2 PG-SETTINGS3 POSTGRES1 POSTGRES CONFIGURATION1 POSTGRES DBA1 POSTGRES-SEQUENCES1 POSTGRESQL45 POSTGRESQL LOCKS1 POSTGRESQL-SCRIPTING1 PSQL1 QUERIES2 QUERY2 RECOVERY1 SECURITY1 SERVER1 SHOW1 SQL13 SQL QUERIES10 SQL SCRIPTS1 STORAGE1 STORAGE MANAGEMENT1 SYSTEM CATALOG3 SYSTEM MONITORING1 SYSTEM SETTINGS1 SYSTEM VIEWS5 TROUBLESHOOTING6 TUNING2 VACUUM1
[A~Z][0~9]
PostgresScripts.com

Copyright  POSTGRESSCRIPTS.COM. All Rights Reserved

to-top