Postgres Scripts
open-menu closeme
Home
About
Contact Us
Privacy Satement
🌐
English Português
rss
  • PostgreSQL Lock Troubleshooting, Unlocking Blocked Processes

    calendar Apr 22, 2024 / Sep 14, 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
  • Identifying Unused Indexes in PostgreSQL - Declutter and Optimize

    calendar Apr 10, 2024 / Sep 14, 2025 · 3 min read · postgresql performance optimization database indexing  ·
    Share on: twitter facebook linkedin copy

    Understanding Your PostgreSQL Index Cache Hit Ratio: Optimizing Performance In PostgreSQL, keeping frequently accessed data readily available is crucial for optimal query performance. Indexes act as shortcuts, enabling the database to locate specific data within tables faster. The PostgreSQL cache plays a vital role in …


    Read More
  • Identifying Unused Indexes in PostgreSQL - Declutter and Optimize

    calendar Apr 9, 2024 / Sep 14, 2025 · 3 min read · postgresql performance optimization database indexing pg_stat_all_indexes  ·
    Share on: twitter facebook linkedin copy

    Identifying Unused Indexes in PostgreSQL: Optimizing Storage and Performance In PostgreSQL, indexes act as shortcuts, accelerating data retrieval within tables. However, unused indexes can become a burden, consuming storage space and potentially impacting performance. This article explores a PostgreSQL code snippet …


    Read More
  • Query the PostgreSQL Configuration

    calendar Apr 8, 2024 / Sep 14, 2025 · 4 min read · postgresql database administration  ·
    Share on: twitter facebook linkedin copy

    Your PostgreSQL Configuration This blog post empowers you to gain valuable insights into your PostgreSQL database configuration. We'll delve into the provided SQL code, explain its purpose, and equip you with key points and insights to effectively manage your PostgreSQL instance. Sample Code from Command Line …


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

    calendar Apr 7, 2024 / Sep 14, 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
  • Optimize Your PostgreSQL Queries, Index Cardinality

    calendar Apr 6, 2024 / Sep 14, 2025 · 3 min read · pg_class postgresql database performance indexing  ·
    Share on: twitter facebook linkedin copy

    PostgreSQL Index Cardinality: A Guide to Understanding Index Efficiency This blog post delves into the world of PostgreSQL index cardinality, a crucial metric for optimizing database performance. We'll dissect the provided SQL code, explain its purpose, and equip you with valuable insights to make informed decisions …


    Read More
  • Unveiling Your PostgreSQL Server - A Diagnostic Powerhouse

    calendar Apr 4, 2024 / Sep 14, 2025 · 6 min read · postgresql database server administration monitoring  ·
    Share on: twitter facebook linkedin copy

    Unveiling Your PostgreSQL Server: A Treasure Trove of Information This comprehensive PostgreSQL script delves into the inner workings of your database server, revealing valuable details about its version, configuration, connections, users, and more. It empowers database administrators and developers with insights to …


    Read More
  • Identify Underutilized Columns in PostgreSQL for Schema Optimization

    calendar Apr 3, 2024 / Sep 14, 2025 · 4 min read · PostgreSQL Database Administration Database Schema pg_class pg_namespace pg_attribute pg_type pg_statistic  ·
    Share on: twitter facebook linkedin copy

    Identifying Underutilized Columns in Your PostgreSQL Database Keeping your PostgreSQL database clean and efficient is crucial for optimal performance. One way to achieve this is by identifying and potentially removing "useless" columns – those that hold minimal or redundant data. This article explores a PostgreSQL code …


    Read More
  • Assess PostgreSQL Database Sizes Quickly and Easily

    calendar Apr 2, 2024 / Sep 14, 2025 · 2 min read · PostgreSQL Database Administration Performance Optimization Storage Management pg_database_size pg_size_pretty  ·
    Share on: twitter facebook linkedin copy

    Quickly Assess Your PostgreSQL Database Landscape by Size Managing multiple PostgreSQL databases requires an understanding of their storage footprint. This article introduces a simple yet effective PostgreSQL code snippet that helps you quickly determine the size of each database in your system, ordered by their …


    Read More
  • List and Organize Your PostgreSQL Databases by Size (With Access Check)

    calendar Apr 1, 2024 / Sep 14, 2025 · 3 min read · postgresql database optimization query pg_database  ·
    Share on: twitter facebook linkedin copy

    List Your PostgreSQL Databases by Size (With Access Check) Keeping your PostgreSQL database server organized is crucial for optimal performance and manageability. A critical aspect of this organization is understanding the storage footprint of each database. This SQL code snippet empowers you to efficiently retrieve a …


    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    • 5
    • »
    • »»

PostgresScripts.com

Your Source for PostgreSQL Database SQL Scripts
Read More

Recent Posts

  • PostgreSQL Connection Settings Query - Complete Guide to pg_settings
  • PostgreSQL Compatibility Settings Query: Complete Guide to pg_settings Analysis
  • PostgreSQL Client Connection Settings: Complete Guide to pg_settings Query
  • PostgreSQL Autovacuum Settings Query: Complete Guide to pg_settings Analysis
  • PostgreSQL Authentication Settings Query for Admins
  • Understanding PostgreSQL pg_settings and pg_file_settings with Practical Examples
  • Monitoring PostgreSQL Active Sessions with pg_stat_activity Explained
  • Monitor Running Queries in PostgreSQL using pg_stat_activity

Categories

SCRIPTS 41 ADMINISTRATION STATUS 21 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 STATUS21 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 SCRIPTS41 STRUCTURE INDEXES4
[A~Z][0~9]

Series

ADMIN-GUIDE 7

Tags

POSTGRESQL 39 DATABASE 28 PERFORMANCE 22 OPTIMIZATION 13 SQL 13 PG_STAT_ACTIVITY 11 DATABASE-ADMINISTRATION 9 MONITORING 7 PG_CLASS 5 CONFIGURATION 4 INDEXING 4 PG_LOCKS 4 SQL-QUERIES 4 TROUBLESHOOTING 4
All Tags
ADMINISTRATION3 ANALYZE1 AUTHENTICATION1 AUTOMATION1 AUTOVACUUM1 BACKUP1 CACHING1 CLIENT-CONNECTIONS1 COMMAND-LINE1 COMPATIBILITY1 CONFIGURATION4 CONNECTION-SETTINGS1 DATABASE28 DATABASE OPTIMIZATION1 DATABASE PERFORMANCE3 DATABASE SCHEMA1 DATABASE SCHEMA DESIGN1 DATABASE-ADMINISTRATION9 DATABASE-MAINTENANCE1 DATABASE-MANAGEMENT3 DATABASE-TUNING2 DBA-TIPS1 IMPORT1 INDEXING4 LOCKS2 MAINTENANCE1 MONITOR RUNNING QUERIES2 MONITORING7 OPTIMIZATION13 PERFORMANCE22 PERFORMANCE OPTIMIZATION2 PERFORMANCE-TUNING2 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_SETTINGS2 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 POSTGRES CONFIGURATION1 POSTGRES-SEQUENCES1 POSTGRESQL39 POSTGRESQL LOCKS1 POSTGRESQL-SCRIPTING1 PSQL1 QUERIES2 QUERY2 RECOVERY1 SECURITY1 SERVER1 SHOW1 SQL13 SQL SCRIPTS1 SQL-QUERIES4 STORAGE1 STORAGE MANAGEMENT1 SYSTEM-CATALOG1 SYSTEM-VIEWS3 TROUBLESHOOTING4 TUNING2 VACUUM1
[A~Z][0~9]
PostgresScripts.com

Copyright  POSTGRESSCRIPTS.COM. All Rights Reserved

to-top