Skip to main content

33 docs tagged with "beginner"

View all tags

Ad-hoc monitoring

In some cases, we need to observe some values in Postgres or the environment it's running on (OS, FS, etc.), and:

How to benchmark

Benchmarking is a huge topic. Here, we cover minimal steps that are required for a Postgres benchmark to be informative, useful, and correct.

How to find unused indexes

Find and safely clean up unused PostgreSQL indexes with SQL queries, replica checks, and zero-downtime drop steps.

How to generate fake data

Generate realistic test data in PostgreSQL using generate_series, random(), timestamps, pseudowords, and Faker.

How to help others

Two key principles of helping others (it can be internal help to your teammates, or external consulting, doesn't matter):

How to work with metadata

When working with metadata – data about data – in Postgres, these reference docs are worth using:

Index maintenance

Index maintenance is inevitable in a larger project. The sooner the process is established the better for performance.

Over-indexing

Everyone knows that each additional index is going to slow down writes (INSERT, UPDATE – unless it's HOT).

psql shortcuts

In my tool postgres_dba, the setup instructions have this: