English speaking PostgreSQL public chat. This group is for discussions on PostgreSQL-related topics and strives to provide best-effort support as well.
I have a folder full of sql scripts that upgrade the schema and the software checks the version on startup and does on the fly upgrade
Читать полностью…is it bad just to run from jenkins (groovy) the .sql files for the particular version?
Читать полностью…Flyway but if you want to save on downtime in schema migrations then pgroll
https://github.com/xataio/pgroll
No - I mean when there's new feature to deploy that needs new table/column/alter...
Читать полностью…flyway/liqubase were too complex and we switched to "goose" for a while. But anyways, we decided to use SQL Server + SSDT (Sql Server Database Projects) which takes a declarative approach compared to imperative approach of migration tools and we are very happy with it.
Читать полностью…Hi folks, does anybody have postgresql dba course recorded sessions? Please let me know if anyone has
Читать полностью…Hi! when using a vps (ubuntu 24, 2gb), should i deploy it in docker way or not (postgres v17)? this is a test instance and will be transitioned into prod in future
Читать полностью…My question is , I want to grant select permission or readonly permission to a user at database level. but at per my knowledge it is only possible at the schemma level
Читать полностью…I am not an expert on psql, but I would also just create a read only user and grant it rights to only read on the specified database.
Читать полностью…should i first create a role then assign a user to it? so that in future it will help to assign new user the same role
Читать полностью…I have a talk streaming at POSETTE next month about UUIDs
Читать полностью…Just be aware that UUIDv4s have bad interactions with B-trees. If you can, use UUIDv7s or another implementation of UUIDs that have serial high-order bits.
Читать полностью…Although i would recommend working with random UUID’s for row identifiers
Читать полностью…Not this kind of migration.
When you need to make changes to your database structure when CI/CD
pg_dumpall
reliable method, but a long downtime is possible
Are we talking about migrating from another database management system?
Читать полностью…How your team deal with CI\CD and data migration for postgresql?
Using flyway / liquibase? or some other method?
Make test as similar as prod 😉 it won't make much sense to have two different setups for debugging in case of problems.
Читать полностью…because there are lots of schema in my database , I am searching something which can help to grant select permission at database level
Читать полностью…I think that's the best choice and also most common tbh
Читать полностью…or is there any better choice to create a read only user;
Читать полностью…yeah the id should be sequential so it works well with B-trees. Another option is ULID
Читать полностью…Most of the time the FKs reference to the primary keys of other tables
Читать полностью…