pg_sql | Unsorted

Telegram-канал pg_sql - PostgreSQL

2818

English speaking PostgreSQL public chat. This group is for discussions on PostgreSQL-related topics and strives to provide best-effort support as well.

Subscribe to a channel

PostgreSQL

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

Читать полностью…

PostgreSQL

is it bad just to run from jenkins (groovy) the .sql files for the particular version?

Читать полностью…

PostgreSQL

Flyway but if you want to save on downtime in schema migrations then pgroll

https://github.com/xataio/pgroll

Читать полностью…

PostgreSQL

No - I mean when there's new feature to deploy that needs new table/column/alter...

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

Hi folks, does anybody have postgresql dba course recorded sessions? Please let me know if anyone has

Читать полностью…

PostgreSQL

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

Читать полностью…

PostgreSQL

REVOKE ALL ON SCHEMA public FROM PUBLIC

Читать полностью…

PostgreSQL

there is pg_read_all_data

Читать полностью…

PostgreSQL

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

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

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

Читать полностью…

PostgreSQL

I have a talk streaming at POSETTE next month about UUIDs

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

Although i would recommend working with random UUID’s for row identifiers

Читать полностью…

PostgreSQL

It's good whatever fits your workflow

Читать полностью…

PostgreSQL

Not this kind of migration.
When you need to make changes to your database structure when CI/CD

Читать полностью…

PostgreSQL

pg_dumpall
reliable method, but a long downtime is possible

Читать полностью…

PostgreSQL

Are we talking about migrating from another database management system?

Читать полностью…

PostgreSQL

How your team deal with CI\CD and data migration for postgresql?
Using flyway / liquibase? or some other method?

Читать полностью…

PostgreSQL

Make test as similar as prod 😉 it won't make much sense to have two different setups for debugging in case of problems.

Читать полностью…

PostgreSQL

Then give the privilege as you need

Читать полностью…

PostgreSQL

it works at cluster level

Читать полностью…

PostgreSQL

because there are lots of schema in my database , I am searching something which can help to grant select permission at database level

Читать полностью…

PostgreSQL

I think that's the best choice and also most common tbh

Читать полностью…

PostgreSQL

or is there any better choice to create a read only user;

Читать полностью…

PostgreSQL

how I can create a read only user in postgresql

Читать полностью…

PostgreSQL

yeah the id should be sequential so it works well with B-trees. Another option is ULID

Читать полностью…

PostgreSQL

You can use the built in ‘gen_random_uuid()’

Читать полностью…

PostgreSQL

Most of the time the FKs reference to the primary keys of other tables

Читать полностью…
Subscribe to a channel