Devs Get Burned by Hosted Database Shutdowns
35 posts across 11 communities in the last 30 days; 23% from Hacker News.
“I'd leave out any database whose only job is to mirror fields from another one. Pick one canonical record (say, Projects), then use a relation and a linked view on related pages; add a rollup only when you need a specific count or summary. Before making a new table, write down…”
“thanks, this is really useful, and you're right on all of it. the compose file was written for local dev, where the build-from-source and the postgres port mapping were just convenient. the images came later and nobody went back to the compose file. there's no good reason for…”
“Why the sarcasm? There’s actual reputable forks. Are you saying don’t use cursor because it’s a fork? [re: Why can't SQLite handle more types?]”
Developers are experiencing significant pain related to database versioning, performance, reliability, and tooling. They face challenges with schema management, data loss, slow queries, and a lack of robust, user-friendly tools to simplify database workflows. This often leads to repetitive tasks, data loss, and frustration.
SOURCES (60)
“Reading this reminded me of when I worked for a startup whose CEO was a kind of hobbyist programmer. He came up with a very inefficent, very unorthodox half baked 'universal sql schema'. You could store 'any' kind of data in it, and it could…”
Thanks! I'm hoping to release it this week [re: Databases as in Notion]
“I think it's better than every other concievable alternative. It's small, quick, no need for docker, configs or dependencies.Runs on SQLite. You don't need multiple database containers. It's free forever and can run on the cheapest 512mb server.MIT License. No vendor lock in. Easy to use. Clean UI.Every dev should use it unless you're building something like Netflix or Amazon.”
“It is my go-to "backend" for every little tool I'm building.There are some annoyances with its admin interface I have to live with when manually adding/editing records (to give an example, the datetime field uses MM-DD-YYYY and there's no way to change that), but it does the job I want it to do and I never felt the need to look for an alternative.”
Curious: Retool Database GDPR prospect
“What happens initBoss (and so .jobs() on the server config) builds the pg boss options from four values only — connectionString , schema , maintenanceIntervalSeconds , monitorIntervalSeconds — and calls boss.start() . pg boss defaults migrate to true , so on every start it creates its schema and tables when they are missing, and migrates them when its version moved, through DATABASE URL . DATABASE URL is the app role. The db README's "Database roles" section says that role owns no table and is n”
“Ha, you're not alone to have gone through "autovacuum slows things down let's turn it off". Yes, it's fundamental to how Postgres works, yes it's a pain in the ass so often.I was so worried to talk much about repack when things started getting reverted. This felt like the riskiest thing of all the headline features in PG19 in my view. Not the graph support, not the split/merge partitions, not group by for all, repack felt like it wouldn't make it lone behold it was the one that did survive of so”
“One detail: if you batch up your writes in the client, and send that batch through a Raft-based data plane system, you can get high throughput. But then you are paying with latency, as the clients have to wait until they have a batch worth of data before making the write request to the Raft-based system. rqlite calls this approach Bulk Requests[1].[1] https://rqlite.io/docs/api/bulk-api/”
“Yeah, I'm not sure how well this will work. I've always dealt with data blobs with data on the filesystem (or s3), metadata in the database. Anything else starts to get a bit too much like a filesystem in a database, which has lead many smart people to tears.Or is there a better way?”
“Summary When the landscape server:database relation to postgresql is removed (for example by terraform destroy or juju remove relation ), Landscape keeps running and keeps transactions open in landscape standalone main . PostgreSQL's relation broken hook then runs REASSIGN OWNED BY relation id <N . That needs exclusive locks on every table the relation user owns, so it waits behind Landscape's open transactions. PostgreSQL applies no lock timeout there (canonical/postgresql operator 2098), so th”
“The README and manual require credentials for the shared database, and setting up a new one is not documented. When I applied the repo's SQL files myself: • 02 indexes.sql references a column that does not exist (removed at) • 04 triggers.sql calls a function that does not exist (set modified at). • Signup and login failed until I set the database's search path to kitchen by hand. The backend also calls usp fetch user without the kitchen. prefix • The startup error message tells you to copy .env”
“sadly, openbao is still the only full-featured and fully-opensource serious contender in this space ("sadly", because I find it a bit clunky to use and configure)”
“Right now, branches are meant to be disposable: you can snapshot and restore, but there's no way to merge changes back into the source. I'd like to try it someday, but there are real challenges to solve, conflict resolution being the main one.”
“Keeping saved state in IndexedDB makes a static experience possible, but versioned migrations and a clear reset or export path become important as the story evolves. How are you handling schema changes for returning readers? [re: [Showoff Saturday] I made a visual novel as a static website]”
“The database thing isn't surprising at all. Anyone who has had an app update swallow its bundled postgres volume learns to put the database in its own container the same day, and never goes back. [re: Results: 2026 Self-Host User Survey (selfh.st)]”
“I’d rebuild a Tasks database, because it touches every project and gets messy fastest. I’d keep one canonical Tasks database with just Status, Due date, Project relation, and Created time, then make views like Today, Next 7 days, Waiting, and Someday instead of separate task tables. Make Project a two-way relation so each project page can show its tasks; add a rollup only if you need a count or key status. I’d use it for a week before adding priorities, areas, or formulas. Fewer required fields”
“I'd leave out any database whose only job is to mirror fields from another one. Pick one canonical record (say, Projects), then use a relation and a linked view on related pages; add a rollup only when you need a specific count or summary. Before making a new table, write down what entries it will hold and which view or action it unlocks that an existing database can't. If the answer is just “keep the dashboard tidy,” a normal page or a view may be enough. That small test helps avoid dup”
“You just need to read the .sql file as a string using Node's built-in fs module, and then pass that string to the query() method of your pg client or pool. Here is a basic example of how your db.js could look: const fs = require('fs'); const path = require('path'); const { Pool } = require('pg'); // Set up your connection const pool = new Pool({ user: 'your_user', host: 'localhost', database: 'your_db', password: 'your_password', port:”
I can help you [re: Can someone help me run this SQL file with Node.js?]
“Before Submitting [x] I searched open and closed issues and discussions for an existing report. [x] I reproduced this bug on the latest release AND on the current dev branch, right before submitting this report. I did not just check an old version or rely on a check from days ago. [x] I understand that maintainers want a well written issue before any code pull request. [x] This is not a security vulnerability. Installation Method Docker Open WebUI Version v0.13.3 (latest) Operating System macOS”
“for the fullstack part specifically i'd hand write it, at least the first time through. auth, sessions, a couple of db queries with joins, one migration that goes wrong. that stuff only sticks when you hit the errors yourself, reading claude's version of it you just nod along. frontend you already know well enough to review generated code properly, so keep using it there. rough test for whether you've learned a piece: could you debug it at 2am with no agent. if not, that's the pa”
“lucky for you 3 years later they finally have it natively now [re: Meeting database creator]”
“Building your own plugin does mean you decide when it breaks, which is hard to get with other people's plugins. Did the queries pulling fields across entries cause most of the trouble, or was it something else? [re: I dropped my automated daily note setup after a month and my notes got better]”
“thanks, this is really useful, and you're right on all of it. the compose file was written for local dev, where the build-from-source and the postgres port mapping were just convenient. the images came later and nobody went back to the compose file. there's no good reason for the db to be exposed by default, and that's my mistake. i wrote everything up as an issue: https://github.com/CommandLineCoding/Elephant/issues/205 planned: remove the postgres port (keep it as an opt-in dev ove”
“Thanks for narrowing it down, that helps a lot. Since the databases are all native to that page, I'd look at what's attached to them rather than where they come from: - Database automations, especially ones that send to Slack, email or a webhook. Those depend on connections in your workspace that don't exist in the copy. - Form views, and buttons inside the databases that edit another database. - Person properties with default values, or anything tied to a specific member of your wor”
“yeah the relational databases are really where the app shines once you figure out how to connect everything [re: Watching from afar and more than happy doing so]”
“Why the sarcasm? There’s actual reputable forks. Are you saying don’t use cursor because it’s a fork? [re: Why can't SQLite handle more types?]”
“This is exactly why I am asking about what gets lost rather than which platform has the nicest feature list. A migration can look successful on launch day and still leave important historical data behind. [re: Shopify alternative in January. What do you actually lose in the move?]”
“The safest move is making sure your client databases are not locked into one vendor's features. Export the key databases to CSV or Markdown on a schedule, keep stable client IDs on every record, and document which workflows depend on Notion AI specifically. That way a pricing or feature change becomes a migration decision rather than an emergency. The important part is keeping client history connected even if the tool changes. We've wired in a decision intelligence layer that joins clien”
“making the whole net of immich internal will also cause issues because immich need to update ML models from internet etc. will this architecture work? services: database: image: ghcr.io/immich-app/postgres-pgvecto.rs:16-v0.5.1 # ... networks: - immich_backend # Solo acceso interno redis: image: docker.io/redis:6.2-alpine # ... networks: - immich_backend # Solo acceso interno immich-server: image: ghcr.io/immich-app/immich-server:release # ... ports: - "2283:2283" networks: - immich_bac”
“appreciate the heads up. Did the schema for the JSON reports change at all in this update, or is it a straight drop-in upgrade from 0.5.0 without breaking existing data? [re: [Project Update] Fail2Ban-Report v0.5.2 – Cumulative Security Release (XSS & Auth Bypass Fixes)]”
“wouldn't swap anything, but nothing on this list backs up your data. supabase free has no automatic backups, so i'd run a nightly pg_dump from a github action into r2 (10 gb free) before the first real user signs up [re: If I had zero budget, this is the free-tier stack I'd launch a micro SaaS on]”
“I worked at a place with a couple of overly optimistic principals who were so happy about their computationally convoluted system responding to queries in 600 ms, but it practically meant we needed almost half a CPU per request, and then pre-autoscaling, a strange requirement to be able to failover from taking a region offline so we ran each at around 60% utilization, putting us at about 1 CPU per req/s. Which is just fucking embarrassing.The first big system I worked on is the one where I learn”
“Two separate problems: Docker: backend/scripts/init db.py runs Base.metadata.create all , which never adds columns to tables that already exist. Anyone with an existing pgdata volume gets column events.theater does not exist . Alembic never runs in Docker. Local / README path: alembic upgrade head fails on a fresh database because migration 001 ( down revision=None ) calls add column("events", ...) , and no migration ever creates events . Fix: add a base migration that creates the initial tables”
“Two separate problems: Docker: backend/scripts/init db.py runs Base.metadata.create all , which never adds columns to tables that already exist. Anyone with an existing pgdata volume gets column events.theater does not exist . Alembic never runs in Docker. Local / README path: alembic upgrade head fails on a fresh database because migration 001 ( down revision=None ) calls add column("events", ...) , and no migration ever creates events . Fix: add a base migration that creates the initial tables”
“For PostgreSQL Backups it already shows "Total Usage", i'd like this as well for MariaDB, possibly even on the storage itself. This would help plan the capacities much better. If you consent to this feature, i can also take a look myself if i can do this.”
“Drives me crazy that the engineers I work with are perfectly happy writing TZ-less datetime strings to the hundreds of tables we manage. Every user has to guess, or be informed, that they’re UTC.”
“I will add more example links in the top-level comment, but here is the thread for that bug. [0]. tl;dr timestamp vs timestamptz comparisons aren't consistently ordered in a pathological edge case, which means that index scans can return the wrong answer. There's no way to fix it without either redefining the operators in a surprising way or disabling index scans in this case.[0] https://www.postgresql.org/message-id/flat/c22286ad6268347c6...”
“Short version of how I'd choose: * **Supabase.** Postgres underneath, so you get SQL and joins, plus an easy exit if you ever leave. Free plan has 2 active projects, 500 MB per database and 50,000 auth MAUs. Pro starts at $25 a month. Watch out for row level security, since you have to set the policies yourself. * **Firebase.** Firestore is a document database with strong mobile SDKs. The free Spark plan gives 50K reads and 20K writes a day plus 1 GiB stored. Best fit for mobile-first apps.”
“[ ] Context / Problem Currently, interacting with database schemas, managing tables, and creating quick data entry workflows requires either writing custom React frontend components or using external generic SQL tools. Users transitioning from desktop database management tools like Microsoft Access rely heavily on an all in one visual workflow: browsing tables, constructing visual queries without writing raw SQL, and auto generating functional data entry forms. Adding a dedicated module for this”
“Redis [re: Our Next.js + Supabase marketplace feels slow to use. Where should we start?]”
“You do not need to stop the entire stack if you handle stateful services correctly. Use pg_dump for PostgreSQL or sqlite3 .backup for SQLite to get a consistent file, then rsync the rest of the bind mounts while containers are running. Write a single bash loop that iterates over your compose directories, runs the specific dump command defined in a config file for each service, and triggers rsync. This gives you point-in-time consistency without downtime and avoids writing complex orchestration l”
“It doesnt matter what language you write in; additional fields, unexpected fields etc have to be applied to the database. The principles are the same whther its EF Core or SQL Alchemy or SeaORM. You have to map to the fields. So everytime there is a new field, you have to map those fields & there is a migration. Just because I used the ter .net doesn't mean thats the only stack we develop at my firm. We do in C++, Zig, Rust, .Net, Python, JavaScript/node, Dart/Flutter, Go & Java. We”
“Lets take a typical .net installation. Whether they use EF core or direct connect, you have to map the database tables and then you have to map it to DTOs . Many places I know, use ORMs. And in that case, you have to create the entities. Then you have to do migration, which means the database schema changes. Tell me a better way to solve this. [re: When should we actually choose SQL over NoSQL? As a beginner, I'm a bit confused]”
“Who ever said you had to rewrite a system to grow your database? Just don't so a shit job writing the database code and use migrations and you'll see it's not some impossibly hard task that a lot of people seem to think it is. [re: When should we actually choose SQL over NoSQL? As a beginner, I'm a bit confused]”
“What about EAV or Jsonb columns or per-BU extension tables? In nosql you have not removed the schema, you just moved it to application logic. I have my experience with nosql. Most of the time (especially with microservices) you'd have separate DBs and bounded context. [re: When should we actually choose SQL over NoSQL? As a beginner, I'm a bit confused]”
“It just goes right into my resources database. I clip it with Save.to extension which lets me set properties before it adds to the db. From there I have agents that examine the content and make connections to the right areas and projects and set appropriate tags. I also have skills written that can retrieve any missing content and format for easier reading. [re: How do you clip articles into Notion, and what annoys you most about it?]”
“Bug report [ ] I confirm this is a bug with Supabase, not with my own application. [ ] I confirm I have searched the Docs, GitHub Discussions, and Discord. Title: Unexpected PostgreSQL database creation in ALPHA SOLUTION project Describe the bug An unexpected PostgreSQL database named alpha m9 phase1 test appeared in my Supabase project, ALPHA SOLUTION (project reference: jfiflsowaoiytkdkliuf, region: West EU/Ireland). The Supabase Postgres logs displayed: CREATE DATABASE alpha m9 phase1 test; T”
“Bug report [ ] I confirm this is a bug with Supabase, not with my own application. [ ] I confirm I have searched the Docs, GitHub Discussions, and Discord. Subject: Request to investigate an unexpected PostgreSQL database creation Hello Supabase Support, I need assistance investigating an unexpected database named alpha m9 phase1 test in my Supabase project. Project name: ALPHA SOLUTION Project reference: jfiflsowaoiytkdkliuf Region: West EU (Ireland) Branch: main / Production During development”
“Introducing fsql - an interactive cli for querying Forge SQL databases via web triggers”
“i think rollback tests should cover migrated data too, since reverting Compose alone may leave schemas incompatible. [re: What tools do you use to keep your containers up to date?]”
“Feature request Is your feature request related to a problem? Yes. I use PostHog Sources extensively to bring data from external systems and then create SQL views to analyze users in my product. When I create a view, I intentionally define the columns in an order that makes sense for analysis and readability. However, when I later run: SELECT FROM my view the returned columns appear in a seemingly random order, instead of following the order I used when creating the view. This makes the output h”
“Question for the team Cross posting from an internal Slack thread so this doesn't get lost. Wiring this up as a question rather than a bug since the omission may be deliberate — flagging the spot in code that surprised me, but happy to be told "yeah, that's on purpose, here's why." What I observed When connecting the Slack data warehouse source (alpha, behind slack dwh flag) and picking a channel schema, the UI only offers Full refresh as the sync type. Incremental and Append are not selectable.”
