Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: Where are you hosting your Postgres database in 2024?
15 points by pier25 88 days ago | hide | past | favorite | 15 comments



Supabase.

We do also use their auth, storage, api, etc. But even if you just want to host a postgres db it's still worth checking out I think.

It's managed postgres, 2 free db's, connection pooler, super easy read replicas (requires a larger paid instance), backups, lots of tooling/dashboards/advisories, cli for running locally during development, database branching, backups, fdw, and lots more. All of it open source.

You can turn off the data api's etc if you just want to connect directly: https://supabase.com/docs/guides/database/hardening-data-api...


quick aside note: i heard great things about supabase and wanted to use it for auth. I wanted to maintain my own db, user tables etc.

but using supabase for auth, this means if need to play w RLS but i had a very simple db design and didn't want to include rls yet. supabase won't let me do it afaik.

so i switched to using ory/kratos ultimately.

also q, how heavily are we dependent on supabase ecosystem if all we want is the db?


You are not dependent if you just use the database. You can just pg_dump and and take your data to any other postgres service


I meant while using the db, i want to use sqlc and pgx with the postgres db instead of supabase api(s) that should work out right? i haven't tried but i think that should work ootb.

edit: yes that should be possible that's what op mentioned


Yes, we have plenty of customers doing just that. You can connect to the pg instance directly or using the connection pooler. You can also disable the Data API (PostgREST) if you want so that you have less security surface area to manage (eg, you don’t need to set up RLS policies if you are connecting only from the server)


awesome to know! but disabling rls and the data api does sabotage the use of supabase auth right? (in ref. to my previous message, just confirming if my checks were correct) i actually just wanted to use supabase because how convient it was for the entire auth flow. password email, reset etc. having to manually built a ui for it is out of question but the solution I am using right now (ory/kratos) has some cli utilities so that helps but still not as good as supabase auth ui ofc. keep making it better!


You can still use all the Authentication features of supabase Auth if you disable the data APIs (you just don’t need to use RLS for managing Authorization to your data)

Supabase is designed to work like LEGO, you add the blocks you want, and we keep everything as modular as possible so that you can combine it with other services like kratos if you prefer


For my personal projects - Inside my CapRover managed cluster of services, all on the cheapest Hetzner VPS. At work it's AWS RDS.


AWS RDS, have clocked 0 downtime in 3.5 years, does the job.


have you had minor and major upgrades? with really 0 downtime?


In k8s in our on prem private cloud using cloud native Postgres: https://cloudnative-pg.io


Digital Ocean. Easy setup and backups. Can scale it vertically for a while.


On my server, now a VPS, as I have done for the past 25 years.


Google Cloud SQL


Render




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: