r/postgres • u/kiwicopple • Apr 30 '20
Postgres with Some Useful Plugins
r/postgres • u/zylo4747 • Apr 17 '20
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 • u/vyvar • Jan 24 '20
Hi, is there any reason why not merge this subreddit to r/PostgreSQL?
r/postgres • u/[deleted] • Jul 10 '18
r/postgres • u/ssrihari • May 16 '16
r/postgres • u/easybits_ai • 5d ago
š 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 • u/rathboma • 16d ago
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 • u/dbforge_dev • 27d ago
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.
| Task | Lightweight clients | Full IDEs |
|---|---|---|
| Browse and edit table data | Fast to open, clean UI. Usually the best experience here | Works, with filtering, grouping and export on top |
| Writing SQL every day | Editor with basic completion | Context-aware completion, formatting, snippets, refactoring, query history |
| Query performance | You run EXPLAIN yourself | EXPLAIN Plan view plus profiling tools. In dbForge you can compare profiling runs before and after a change |
| Server admin (roles, backups, maintenance) | Limited | Varies by tool, usually not the focus |
| Comparing schemas between environments | Usually not available | Schema and data compare with reviewable sync scripts and CLI runs |
| Test data, reports, automation | Rarely | This is where IDEs pay off |
| Cost | Free tiers or low-cost licenses, check the limits | Mostly 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 • u/dbForge_Studio • Oct 22 '26
r/postgres • u/Ms_AlarmingCulture • Jun 19 '26
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 • u/EchidnaFlowers • Jun 08 '26
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 • u/AdorableMaids • May 06 '26
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 • u/ekoutanov • May 31 '20
Folks. I just published an implementation of the 'Outbox Pattern' (targeting Kafka and Postgres). Any and all feedback welcome.
r/postgres • u/squeezetree3021 • Jan 16 '20
r/postgres • u/tomakerman1770 • Jun 13 '19
r/postgres • u/[deleted] • Nov 07 '17
r/postgres • u/merlinm • 5d ago
r/postgres • u/wtfse • 23d ago
r/postgres • u/eu_pg • Sep 26 '26
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 • u/Some_Childhood_3842 • Sep 20 '26
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 • u/DesignerRoyal8833 • Sep 19 '26
r/postgres • u/netizen99 • Sep 18 '26
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 • u/blackneckbean • Aug 31 '26
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 • u/MightVector • Aug 05 '26
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?