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

Tapping the hive mind:

My client experiences random HAProxy check timeouts (up to 2 seconds) when polling Patroni. Quite a PITA when HAProxy takes the backend down and kills all connections... :/

Sadly, since those events appear randomly, chances to look at the system when they happen are close to zero. What we can see in hindsight is that atop reports high numbers of "scan", "compact" and also "memsome" & "memall" events. And those "kcompactd[01]" kernel threads use quite some CPU time as well. But at 10 min granularity, that's just hints...

However, I'm quite certain that the root cause is (transparent) huge page stuff (which gives me terribel RHEL 6 vibes tbth.).

Is anyone else experiencing stalls on Ubuntu 24.04 Postgres servers with contemporary amounts of RAM (512-768GB)? Any hints how I can get rid of them? Kernel is "6.8.0-53-generic #55-Ubuntu SMP PREEMPT_DYNAMIC", GUC "huge_pages" is "try".

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

PostgreSQL

How do you usually stop the streaming replication? In case needed...

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

PostgreSQL

Hi , we have got a request to plan for mysql ( on prem) to postgres RDS migration . Is there any guide available ? I searched and found pgloader . Is that a good option ?

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

PostgreSQL

https://www.postgresql.eu/events/pgconfeu2017/sessions/session/1645/slides/18/db2-postgresql-migration-169.pdf

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

PostgreSQL

Unlogged tables are just like normal tables in backup and usage, they just get erased when there is a crash. See:

https://www.postgresql.org/docs/17/sql-createtable.html#SQL-CREATETABLE-UNLOGGED

Data written to unlogged tables is not written to the write-ahead log (see Chapter 28), which makes them considerably faster than ordinary tables. However, they are not crash-safe: an unlogged table is automatically truncated after a crash or unclean shutdown. The contents of an unlogged table are also not replicated to standby servers.

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

PostgreSQL

Are UNLOGGED tables exist in pg_basebackup / pg_dump?
didn't find something related to this int he offical docs

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

PostgreSQL

In that case, you can just use pg_dump whitelisting the table. Be careful, though, it might be slow if there's plenty of files. File-based backup making (basebackup or rsync with start backup or any other solution) might be a better choice if your database is so big

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

PostgreSQL

Hi Everyone, I have a postgresql partitioned table in which there are around 200 partitions , I want to take the backup of that partitioned table do we have any way for this kind of structure or we need to take the backup of all partitions manually???

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

PostgreSQL

Hi All
Any one have any pdf book for postgreSql DBA

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

PostgreSQL

Hi all looking for postgre sql dba real time training,any one provide pls ping to me.

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

PostgreSQL

Consider that every database runs in a container with qcow2 as the backing image formats for easy backups and restores with proxmox-backup-server, so rolling back is really not an issue and usually is nearly instantaneous assuming only the schema and only a minimal amount of data is changed

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

PostgreSQL

In case everybody needs to rollback (e.g. A software bug, so people updated and then used the software and long after they encounter the bug) -> new schema version is actually a roll back (example: schema version 301 is a roll back of schema version 300)

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

PostgreSQL

so sql scripts are created on your hand, you commit and upgrade when asked?
do you also have log table to track which sql script was deployed already and when?

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

PostgreSQL

But my stuff is on premise. Every customer has the stuff managed by us

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

PostgreSQL

If you need to rollback, you write an upgrade that does the rollback

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

PostgreSQL

stop instance, and delete the standby.signal and start the instance

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

PostgreSQL

Hi everyone.im an postgresql developer.. I want to learn to snow flake with real time scenarios . please help me

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

PostgreSQL

Any one here want to learn SQL DBA , please DM me

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

PostgreSQL

Yeah I understand this but according to this article https://www.dbi-services.com/blog/postgresql-unlogged-tables-and-backups/
it seems like the data doesn't get backed up , only the structure.

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

PostgreSQL

Just the structure or the data as well?
Could you please direct me to the docs?

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

PostgreSQL

Michael Banck did a talk on such a migration a while back, slides should be online... Let me ask him.

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

PostgreSQL

You only want to make a backup of that specific table+partitions?

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

PostgreSQL

Hello All,

Anyone has experience in migration of DB2 mainframe to postgres? Please help me with some migration tools.

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

PostgreSQL

Im not trainer, rather amateur but what troubles do you have with learning dbms?

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

PostgreSQL

Do not use this approach for your 20tb government database, or well, don't blame me if it doesn't scale 😳

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

PostgreSQL

In case we want to roll back immediately (example, upgrade failure) -> restore from snapshot

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

PostgreSQL

@unfoxo May I ask how you managed the rollback mechanism? in case of failure it will automatically run the rollback sql files?
In case you want to trigger rollback - how is it done?

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

PostgreSQL

Which means they call us and we do a backup, a git pull and restart the software and it self upgrades

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

PostgreSQL

You working with git? github actions? jenkins?

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

PostgreSQL

how are you taking care the rollback? or you just have sql script also for the downgrade/rollback?
I find those tools (flyway/liquibase) good mainly for this

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