r/postgres • • Apr 30 '20

Postgres with Some Useful Plugins

Thumbnail
github.com
7 Upvotes

r/postgres • • Apr 17 '20

Need Suggestions: Looking for a Better Schema Management Tool

7 Upvotes

I am using Liquibase for PostgreSQL schema management (versioning schema, deploying changes to servers through CI/CD pipelines)

I do like it because it's flexible and fairly simple. I don't like it because it's a lot of overhead. I have to verify that things won't break, I have to write roll backs, etc...

I like how SQL Server Data Tools for SQL Server works. It's declarative, it generates a schema model from create scripts, it generates diff scripts, and it deploys based on rules I set. It also has hooks for pre and post deployment scripts (data migration scripts) that can be executed as wrappers around the DDL (schema) being deployed.

I also like Skeema.io for MySQL for similar reasons but it's lacking some functionality.

I'm looking for a PostgreSQL tool that behaves like SQL Server Data Tools or Skeema. I want something that will generate a diff but will work against a declarative model of the database (a bunch of CREATE statements). So I can effectively run it against a database in any condition and it will make that database match the scripted model. Bonus points if it supports hooks for schema migration scripts like SSDT does.

Any tools exist that do this? So far I've either found migration tools like Liquibase and Sqitch or diff tools but nothing like Skeema or SSDT.

Thanks in advance!


r/postgres • • Jan 24 '20

Merge with r/PostgreSQL

7 Upvotes

Hi, is there any reason why not merge this subreddit to r/PostgreSQL?


r/postgres • • Jul 10 '18

Postgres Range types are dope, and they have become my new infatuation in the database world

Thumbnail
medium.com
7 Upvotes

r/postgres • • May 16 '16

Queries to monitor your PostgreSQL database

Thumbnail
github.com
7 Upvotes

r/postgres • • 5d ago

Discussion Storing generated PDFs in Postgres vs object storage: where do you draw the line?

6 Upvotes

šŸ‘‹ Hey postgres Community,

Follow-up on the approval system I posted about last week. One decision I made this week that I am still not sure about.

The workflow generates a final PDF once Finance approves a request. People download it from a portal afterwards, sometimes repeatedly, sometimes months later. Regenerating on every download meant paying for the conversion again and making them wait several seconds each time.

So I cache it: the PDF is generated at the moment of approval and stored as base64 in a column on the fact sheets table, then served from there.

What I think I got right

Generating at approval rather than on demand means the document always carries the real approval timestamps, and I never pay twice for the same conversion. Caching any earlier would have meant storing drafts that never got approved.

What I am less sure about

Base64 in Postgres is simple. Everything lives in one place, no extra service, no signed URLs, no bucket permissions. But it is blobs in a relational database, and I have not yet hit the point where row sizes start to hurt. The alternative is object storage with a reference in the row, which is more correct and also more moving parts for something a handful of people download a few times a month.

Where would you draw that line? Curious whether people go to object storage from day one or wait until something actually breaks.

Best,
Felix


r/postgres • • 16d ago

Question Which databases/caches do you use alongside PostgreSQL?

6 Upvotes

I mostly hear about folks using Redis/Valkey or Memcached for caching, but curious what other DBs most folks use alongside PostgreSQL.

In particular - anyone using Snowflake, BigQuery, DataBricks, something else?

Context: I make Beekeeper Studio, an open source database GUI focused on being fast and intuitive. One of our strengths is to be a pleasant and consistent UI for ANY database.. So wondering what the 'any' is for you all.

I personally use PostgreSQL with Redis.


r/postgres • • 27d ago

Tools PostgreSQL GUI clients: lightweight tools vs full IDEs

6 Upvotes

PostgreSQL GUI tools fall roughly into three groups: lightweight clients (TablePlus, Beekeeper Studio, Postico) and full IDEs (pgAdmin, DBeaver, dbForge Studio for PostgreSQL). Asking which one is best doesn't get you far. It's more useful to look at what each group handles well, task by task.

TaskLightweight clientsFull IDEs
Browse and edit table dataFast to open, clean UI. Usually the best experience hereWorks, with filtering, grouping and export on top
Writing SQL every dayEditor with basic completionContext-aware completion, formatting, snippets, refactoring, query history
Query performanceYou run EXPLAIN yourselfEXPLAIN Plan view plus profiling tools. In dbForge you can compare profiling runs before and after a change
Server admin (roles, backups, maintenance)LimitedVaries by tool, usually not the focus
Comparing schemas between environmentsUsually not availableSchema and data compare with reviewable sync scripts and CLI runs
Test data, reports, automationRarelyThis is where IDEs pay off
CostFree tiers or low-cost licenses, check the limitsMostly paid, but part of them offers free editions

When a lightweight client is enough

You mostly read and edit data, your schema is managed by an ORM or a migration tool, and you rarely write long SQL by hand. On a Mac, a native client like Postico may simply feel better than anything cross-platform.

When a full IDE starts to make sense

You own the schema, you work across dev, staging and prod, and the same tasks keep coming back: checking that environments match, preparing test data, producing the same report every week. That's where completion quality, compare tools and CLI automation save real time.

A note on dbForge Studio for PostgreSQL so it's clear where it fits. It also works with PostgreSQL-compatible services like Amazon Redshift, Aurora, Azure PostgreSQL and Supabase.

Which group are you in? And if you switched from one to another, what made you switch?


r/postgres • • Oct 22 '26

Tools pgAdmin vs dbForge Studio: Which One is better for daily PostgreSQL work?

Thumbnail
devart.com
6 Upvotes

r/postgres • • Jun 19 '26

What PostgreSQL mistake do you see developers repeat over and over?

6 Upvotes

Every experienced PostgreSQL developer seems to have that one mistake they keep seeing in reviews, production incidents, or performance investigations. What's the most common PostgreSQL mistake you've seen, and what usually happens because of it?


r/postgres • • Jun 08 '26

What's the hardest thing to explain to a new developer on your database team?

6 Upvotes

To be honest, it's the things that only exist in people's heads.

If you work with SQL Server, MySQL, and Postgres, each engine has its own quirks that aren't obvious until you've been burned by them once. Why a query was written a certain way, why an index exists, or why somebody added a workaround three years ago are exactly the kinds of things that never make it into documentation.

Does your documentation actually stay up to date, or does it only get updated after a new team member starts asking questions?


r/postgres • • May 06 '26

Tool for importing CSV data into PostgreSQL? What do you use when COPY is not enough?

6 Upvotes

Importing CSV data into PostgreSQL sounds simple until the file comes from a real system.

If it’s clean, COPY or \copy is usually fine. Matching columns, normal encoding, proper headers, no surprises.

The pain starts when the CSV is slightly cursed. Wrong delimiter, empty strings that should be NULL, dates in different formats, random extra columns, quotes inside quotes, or an Excel export that looks normal until Postgres disagrees.

For small imports, I still start with \copy: \copy table_name FROM 'file.csv' WITH CSV HEADER

But I don’t like loading messy files straight into the final table. I usually import into a staging table first and treat that data as suspicious. Then I can check what actually came in: row counts, weird NULLs, duplicates, broken dates, IDs that don’t match anything.

After that, moving clean rows into the real table feels much safer. A GUI tool can help when the file needs column mapping, preview, or quick fixes before import. I’ve tried this with DBeaver and dbForge Studio for PostgreSQL, but I still want validation SQL after the import, because the tool can load the file, but it won’t know what ā€œcorrectā€ means for the app.

What do you use for importing CSV data into PostgreSQL? Plain COPY, pgAdmin, DBeaver, scripts, ETL tools, or something else?


r/postgres • • May 31 '20

Transactional outbox for Kafka and Postgres

6 Upvotes

Folks. I just published an implementation of the 'Outbox Pattern' (targeting Kafka and Postgres). Any and all feedback welcome.

https://github.com/obsidiandynamics/goharvest


r/postgres • • Jan 16 '20

Effectively Using Materialized Views in Ruby on Rails

Thumbnail
pganalyze.com
6 Upvotes

r/postgres • • Jun 13 '19

One Line code to clone PostGreSQL DB

Thumbnail linuxtutorialsblog.com
6 Upvotes

r/postgres • • Nov 07 '17

Moving ORM Mapping towards the database

Thumbnail enter-haken.github.io
6 Upvotes

r/postgres • • Sep 29 '16

PostgreSQL 9.6 released

Thumbnail
postgresql.org
6 Upvotes

r/postgres • • 5d ago

Tools Feedback wanted: Airflow style database orchestration written 100% in SQL (just use postgres!)

Thumbnail
github.com
5 Upvotes

r/postgres • • 23d ago

Debugging exploit a 22 years old PostgreSQL composite-type vulnerability

Thumbnail
mehmetince.net
5 Upvotes

r/postgres • • Sep 26 '26

Discussion Looking for pricing feedback before opening the beta on managed DBaaS

5 Upvotes

Hi all, I'm a founder in Spain building a managed PostgreSQL service and want honest feedback on pricing before opening it up.

I run a €30M ARR business in a different industry. We had to use a managed database from a big provider, which was very expensive for the performance we were actually getting, but we needed HA so we were stuck. That's when I started considering another startup.

Here's the general idea:

You create a database from a web dashboard and get a single connection string. That string always points to the current primary, so if a failover happens your app reconnects to the same address and carries on. There's nothing to change on your side.

Behind it, each HA database runs as a primary plus a synchronous standby on two separate servers in different zones.

Backups run continuously: every change is archived to object storage with a different provider, so even losing the whole hosting provider doesn't lose your data. You can restore to any point in the last 7 days. We handle monitoring, failover and maintenance; you just use Postgres.

It runs on European bare metal rather than shared cloud VMs, which is how we keep prices flat with no egress or IOPS fees.

Highly available (per month, excl. VAT):

\- Starter, €39: 1 vCPU, 2 GB RAM, 20 GB storage

\- Standard, €89: 2 vCPU, 4 GB RAM, 50 GB storage

\- Pro, €169: 2 vCPU, 8 GB RAM, 100 GB storage

\- Business, €329: 4 vCPU, 16 GB RAM, 200 GB storage

Free: one per account. Single node, 256 MB RAM, 1 GB storage.

To be upfront: this is a beta with no SLA yet. Failover runs 24/7, and human support is 09:00 to 18:00 CET on business days. If the standby is down, the primary keeps accepting writes asynchronously, so losing the primary during that window can lose the latest commits.

**I'd love to know:**

\- Which plan would you pick for a real project, if any?

\- At what price would this feel too cheap to trust, and at - what price too expensive?

\- What would you need to see before moving a production database?

\- What are you using now, and what does it cost?

**Early beta offer**: anyone who participates in this thread will have 30% off any plan when we launch!


r/postgres • • Sep 20 '26

Performance Columnar Databases

5 Upvotes

hey postgresql community do you thing is time postgres to support Column oriented like DuckDB as big feature or continue with row oriented like every DB does


r/postgres • • Sep 19 '26

Debugging Debugging Inconsistent Query Latency on a PostgreSQL Hypertable: What We Learned

Thumbnail
medium.com
5 Upvotes

r/postgres • • Sep 18 '26

Question version 9.18 error: exception: access violation writing 0x0000000000000000

5 Upvotes

When I save connection setting for the PostgreSQL database in WSL, I get that error in subject. I roll back version 9.17. I don't have that error. Any idea?


r/postgres • • Aug 31 '26

Tools How I organize multiple PostgreSQL connections across projects (after nearly running a migration on prod)

5 Upvotes

I contract for four companies right now, about twenty Postgres connections across local, staging and production. Last spring I had two tabs open beside each other, one on staging and one on prod, both connected to databases called app. I was maybe two seconds from dropping a column on the wrong one. Nothing happened, but I stopped winging connection management that afternoon.

Naming came first. Then the environment, then what it is allowed to do. Every connection is the client. Acme production acme-prod-ro read only Acme staging acme-stg-rw can write to staging. And that last bit is the most important. My default connection to anything in production can't write. The -rw twin is only opened when I have a change to actually ship. A little bit of friction and it has stopped me twice.

The change that helped most was also the simplest. I work in dbForge Studio for PostgreSQL, where every connection gets assigned a category (Production, Test, Sandbox, or one you invent) and that category paints the connection a colour which then follows it everywhere: down the object tree, and onto the tab of every query window opened against it.

My production connections are red. That is the whole trick. It works because the warning is a colour at the edge of my vision, not text I have to stop and read, and at the moment I am about to hit execute I am not reading anything.

What I would change is that there are no folders. Twenty connections is a long list with no way to group it, so I prefix names to make them sort together and drag them into order. People have been asking for folders for years. pgAdmin’s server groups handle this better.

Curious how other people do this, especially on a team. Do you share connection settings somehow, or does everybody build their own list off a wiki page?


r/postgres • • Aug 05 '26

What are the best PostgreSQL tools you actually use every day?

5 Upvotes

Every time I search for the best PostgreSQL tools, I end up with the same generic lists full of products I've never seen anyone use in real projects. I'd rather hear from people who work with PostgreSQL every day. Which tools have actually earned a permanent spot in your workflow? What's one PostgreSQL tool you'd recommend without hesitation, and why?