Тёмный

Changing your huge table's data types in production [ 

Jimmy Angelakos
Подписаться 708
Просмотров 1,9 тыс.
50% 1

Опубликовано:

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@MrMikomi
@MrMikomi 11 месяцев назад
Very interesting, good to know that this workaround exists. Thanks.
@periclessevegnani
@periclessevegnani 2 года назад
Yeah definitely this is one of those big problems DBA encounters in large and busy environments. The solution is always painful but you described here a graceful solution. Thanks for sharing, best regards from Brazil.
@CUXI
@CUXI Год назад
Thanks for the awesome talk. I had a query, will we ever see pg_repack or logical replication type util that will help move data without this age old procedure. With logical replication i can move the db to another db live, but that would be too much.
@JimmyAngelakos
@JimmyAngelakos Год назад
pg_repack does something different, it can't help in this case. But copying the table onto a partitioned table on another server with logical replication is not as crazy as it sounds.
@JogJezz
@JogJezz 2 года назад
update 1,7 B of rows. how about the deadtuples? autovacuum will start and it might slow down the DB performances
@JimmyAngelakos
@JimmyAngelakos 2 года назад
Thanks for your comment. This operation can't be done for free anyway, and that's exactly what autovacuum is there for. I would actually suggest increasing its limits before starting, because it's better to trade off a little performance than accumulate bloat. The point of this exercise is to perform a necessary action without blocking usage.
@JogJezz
@JogJezz 2 года назад
@@JimmyAngelakos in Our case, we use different approach to handle this data type issue with minimum downtime from apps, the downtime less than 5 mins actually
@jaegeunyu4449
@jaegeunyu4449 3 года назад
Following the procedure you presented, I find the primary key column(id) to be in the second place of the table. How can I put the primary column(ID) in the first column?
@vyruss000
@vyruss000 3 года назад
Why would you care about column order? One way to change it would be to recreate the table, which kind of defeats the purpose of this exercise. Another would be to repeat this procedure for all columns to rotate them until id becomes the first one. Again, time consuming and not worth the effort.
Далее
MAGIC TIME ​⁠@Whoispelagheya
00:28
Просмотров 12 млн
Solving one of PostgreSQL's biggest weaknesses.
17:12
Просмотров 209 тыс.
Database Indexing for Dumb Developers
15:59
Просмотров 67 тыс.
In-depth: ClickHouse vs PostgreSQL
7:33
Просмотров 14 тыс.