You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+13-15Lines changed: 13 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,28 @@
1
1
# Contributing to pgtools
2
2
3
-
We welcome contributions from the PostgreSQL community! This document provides comprehensive guidelines for contributing to the pgtools project.
3
+
We welcome contributions from the PostgreSQL and TimescaleDB communities! This document provides guidelines for contributing to the `pgtools` "First Responder" Toolbelt.
4
4
5
-
## 📋 Quick Start
5
+
The goal of this project is to create a safe, reliable, and easy-to-use set of diagnostic scripts for support engineers and DBAs to use when triaging production database issues.
6
6
7
-
### Prerequisites
8
-
- PostgreSQL knowledge (administration, performance tuning, or development)
9
-
- Basic understanding of SQL and shell scripting
10
-
- Familiarity with Git and GitHub workflows
11
-
- Access to PostgreSQL test environment for script validation
7
+
## Core Principles
8
+
9
+
All contributions must adhere to a strict **"Zero-Harm"** policy.
10
+
11
+
1.**Read-Only**: Scripts must *never* perform write operations. No `CREATE TABLE`, `ALTER`, `UPDATE`, `DELETE`, or `TRUNCATE`. Temporary tables should be avoided unless absolutely necessary and lightweight.
12
+
2.**Lightweight**: Queries must be efficient and avoid expensive operations that could impact a heavily loaded customer system.
13
+
3.**No Heavy Dependencies**: We stick to `bash` and `psql`. No Python, Go, or other languages that require complex installation.
14
+
4.**Safety First**: All queries are executed via the `pgtools.sh` wrapper, which enforces a short `statement_timeout` and `lock_timeout`.
Copy file name to clipboardExpand all lines: GETTING-STARTED.md
+12-29Lines changed: 12 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,46 +1,29 @@
1
-
# Getting Started with pgtools
1
+
# Getting Started with pgtools: The First Responder Toolbelt
2
2
3
-
Welcome to **pgtools** - the comprehensive PostgreSQL administration toolkit! This guide will help you get up and running quickly, whether you're a database administrator, developer, or DevOps engineer working with PostgreSQL.
3
+
Welcome to **pgtools**, the "First Responder" Support Toolbelt for safely diagnosing PostgreSQL and TimescaleDB databases. This guide will help you get up and running quickly.
4
4
5
5
## 📋 Table of Contents
6
6
7
7
-[Prerequisites](#prerequisites)
8
-
-[Quick Installation](#quick-installation)
9
-
-[First Steps](#first-steps)
10
-
-[Essential Scripts](#essential-scripts)
11
-
-[Common Workflows](#common-workflows)
12
-
-[Setting Up Automation](#setting-up-automation)
13
-
-[Troubleshooting](#troubleshooting)
14
-
-[Next Steps](#next-steps)
8
+
-[Installation](#installation)
9
+
-[Core Usage](#core-usage)
10
+
-[Example Workflows](#example-workflows)
11
+
-[Available Commands](#available-commands)
15
12
16
13
## Prerequisites
17
14
18
-
### System Requirements
19
-
-**PostgreSQL**: Version 14 or higher (tested against 14, 15, 16, 17, and 18)
20
-
-**Operating System**: Linux, macOS, or Windows with appropriate shell environment
21
-
-**Shell**: Bash, Zsh, or compatible shell for automation scripts
-**Tools**: `psql` (the PostgreSQL command-line client) and `git`.
17
+
-**Database Access**: A valid PostgreSQL connection string or service name to connect to the target database. Most scripts require privileges equivalent to the `pg_monitor` role.
23
18
24
-
### Database Access
25
-
-**Privileges**: Most scripts require `pg_monitor` role or superuser privileges
26
-
-**Connection**: Ability to connect to your PostgreSQL database(s)
27
-
-**Extensions**: Some scripts benefit from `pg_stat_statements` and `pg_buffercache`
28
-
29
-
### Knowledge Level
30
-
-**Basic SQL**: Understanding of PostgreSQL queries and administration
31
-
-**Command Line**: Comfort with terminal/command prompt usage
32
-
-**PostgreSQL Concepts**: Familiarity with databases, tables, indexes, and basic administration
0 commit comments