PostgreSQL DBA
описание
Sharing knowledge about postgresql database
Лучшие посты
за три месяца- 20 мая786 просмотров
без подписи
без подписи
- 20 мая735 просмотров
без подписи
- 20 мая677 просмотров
Configuration Parameters
- 20 мая536 просмотров
CREATE TABLE orders ( order_id SERIAL PRIMARY KEY, customer_id INTEGER, order_date DATE, order_total NUMERIC ) PARTITION BY RANGE (order_date); CREATE TABLE orders_y2023 PARTITION OF orders FOR VALUES FROM ('2023-01-01') TO ('2024-01-01'); CREATE TABLE orders_y2024 PARTITION OF orders FOR VALUES FROM ('2024-01-01') TO ('2025-01-01'); -- Add an index to each partition CREATE INDEX idx_orders_y2023_customer_id ON orders_y2023 (customer_id); CREATE INDEX idx_orders_y2024_customer_id ON orders_y2024 (customer_id);
- 20 мая409 просмотров
без подписи
- 20 мая405 просмотров
без подписи
- 20 мая367 просмотров
без подписи
- 20 мая330 просмотров
Beyond indexing, several query optimization techniques can significantly improve performance.
- 20 мая330 просмотров
Partial indexes index only a subset of the table's rows, based on a condition. This can reduce index size and improve performance when queries frequently filter on that condition.
- 20 мая329 просмотров
Statistics: PostgreSQL relies on statistics to estimate the cost of different query plans. Inaccurate statistics can lead to suboptimal plan choices. Regularly update statistics using the ANALYZE command.
- 20 мая321 просмотров
Composite indexes index multiple columns. The order of columns in a composite index is important. The most frequently used column in WHERE clauses should come first.
- 20 мая307 просмотров
Unused Indexes: Identify and remove unused indexes to reduce write overhead. The pg_stat_all_indexes view provides information about index usage.
- 20 мая301 просмотров
Index Bloat: As data is inserted, updated, and deleted, indexes can become fragmented and bloated, leading to performance degradation. Rebuild indexes periodically using the REINDEX command.
Patroni is a widely used solution for managing PostgreSQL high availability. It provides a robust framework for automatic failover, cluster management, and operational simplicity in PostgreSQL environments. https://www.cybertec-postgresql.com/en/patroni-cascading-replication-with-stanby-cluster/
- 10 авг.176 просмотров
https://patroni.readthedocs.io/en/latest/README.html
- 10 авг.167 просмотров
Cascading Replication https://www.cybertec-postgresql.com/en/patroni-cascading-replication-with-stanby-cluster/
- 10 авг.158 просмотров
без подписи
- 10 авг.156 просмотров
Schemas in PostgreSQL and Oracle: what is the difference? https://www.cybertec-postgresql.com/en/schema-postgresql-oracle-difference/
- 10 авг.146 просмотров
https://stormatics.tech/blogs/the-1-gb-limit-that-breaks-pg_prewarm-at-scale