Home New Trending Search
About Privacy Terms
#
#pgsql
Posts tagged #pgsql on Bluesky
Preview
A Safety Parachute for Your Symfony Migrations: Introducing Migration Backup Bundle Fear of doctrine:migrations:migrate during development?

🛡️ Stop breaking your DB with doctrine:migrations:migrate!

Migration Backup Bundle for #Symfony automatically backs up your #MySQL, #PGSQL, or #SQLite right before migrations run.

✅ Auto-backup via --backup flag
✅ Gzip & rotation

🔗 github.com/tito10047/mi...

0 0 0 0
Post image

Один «странный» случай индексного сканирования Эта история началась с исследования проблем производитель...

#execution #plan #postgresql #базы #данных #pgsql #sql #postgres

Origin | Interest | Match

0 0 0 0
Post image

#pgsql PostgreSQL @ #SeaGL2025

1 0 0 0
Preview
PostgreSQL 18 Released with Up to 3× Faster I/O and Easier Upgrades PostgreSQL 18 open-source RDBMS brings 3× faster I/O, easier upgrades, OAuth 2.0 authentication, and new developer tools.

🦾 PostgreSQL 18 Released with Up to 3× Faster I/O and Easier Upgrades

linuxiac.com/postgresql-1...

#PostgreSQL #pgsql #opensource

2 0 0 0
Post image

pgxWrappy — потому что жизнь слишком коротка для ручного сканирования в Go! � Если вы устали от бесконечного rows.Sc...

#Go #golang #pgx #sql #gorm #orm #postgres #pgsql #database #opensource

Origin | Interest | Match

2 1 0 0
Preview
# PostgreSQL Tutorial: 🚀 How to Improve PostgreSQL Database Performance: A Practical Guide PostgreSQL is a powerful and feature-rich open-source relational database, but like any complex system, its performance depends heavily on how it's used. Whether you're managing a startup app or a large-scale enterprise platform, optimizing PostgreSQL can lead to massive gains in speed, scalability, and efficiency. In this article, we break down **12 proven strategies** to improve database performance—covering indexing, caching, query optimization, and architectural techniques. ## 1. 📇 Indexing Create indexes based on your most common query patterns. Indexes allow PostgreSQL to **find rows faster** by avoiding full table scans. ### ✅ Tip: Use `EXPLAIN ANALYZE` to identify slow queries and missing indexes. ## 2. 🧮 Materialized Views Materialized views **store precomputed results** of complex queries, making reads faster. CREATE MATERIALIZED VIEW fast_view AS SELECT category, COUNT(*) FROM products GROUP BY category; > Use `REFRESH MATERIALIZED VIEW` to keep data up to date. ## 3. 📈 Vertical Scaling Sometimes the simplest fix is to **add more resources**. Upgrading CPU, RAM, or disk I/O on your PostgreSQL server improves: * Query execution time * Parallel processing * Cache hit ratios ## 4. 🔄 Denormalization In read-heavy environments, you can **reduce joins** by storing redundant but relevant data together. ### ✅ Example: Instead of joining `orders` with `customers` each time, add `customer_name` directly into `orders`. > Helps reduce query complexity and latency. ## 5. ⚡ Database Caching Cache frequently accessed data in-memory using: * PostgreSQL’s own `shared_buffers` * External caches like **Redis** or **Memcached** This reduces round-trips to the database and improves response times. ## 6. 🌍 Replication Use **replica nodes** for read traffic, separating load from your write-heavy primary node. ### Tools: * `Streaming Replication` * `Logical Replication` ## 7. 🧩 Sharding Divide large datasets into **smaller, distributed chunks**. * Improves scalability and performance * Each shard can be hosted on a separate server > PostgreSQL tools: Citus, Pgpool-II ## 8. 📂 Partitioning Break large tables into **partitions** (by range, list, or hash) to: * Improve query targeting * Speed up inserts and deletes CREATE TABLE sales ( id serial, sale_date date, amount numeric ) PARTITION BY RANGE (sale_date); ## 9. 🛠️ Query Optimization Use `EXPLAIN` and `ANALYZE` to rewrite slow queries: * Avoid `SELECT *` * Use indexes efficiently * Limit rows with `WHERE` and `LIMIT` > Poor query design is one of the top causes of slowness. ## 10. 🧬 Use of Appropriate Data Types Choosing **efficient data types** helps: * Reduce storage * Speed up processing ### ✅ Tip: * Use `INT` instead of `BIGINT` when possible * Use `TEXT` only if variable-length strings are required ## 11. 🚦 Limiting Indexes While indexes help reads, **too many indexes hurt writes**. * Inserts, updates, and deletes must maintain all indexes * Audit existing indexes regularly ## 12. 🗃️ Archiving Old Data Move infrequently accessed data to **archive tables** or **cold storage**. * Keeps your working set smaller * Speeds up queries and maintenance ## ✅ Final Thoughts Optimizing PostgreSQL is not just about writing fast queries—it's about **architecting the whole system** for performance. Start with the low-hanging fruit like indexing and caching, and scale out with partitioning, sharding, and replication when necessary. > Think of your database as a living system. Tune, monitor, and evolve it with your application needs. ## 📚 Resources * PostgreSQL Performance Tuning Guide * EXPLAIN Guide * Citus Open Source for Sharding
0 0 0 0
Preview
# PostgreSQL Tutorial: 🚀 How to Improve PostgreSQL Database Performance: A Practical Guide PostgreSQL is a powerful and feature-rich open-source relational database, but like any complex system, its performance depends heavily on how it's used. Whether you're managing a startup app or a large-scale enterprise platform, optimizing PostgreSQL can lead to massive gains in speed, scalability, and efficiency. In this article, we break down **12 proven strategies** to improve database performance—covering indexing, caching, query optimization, and architectural techniques. ## 1. 📇 Indexing Create indexes based on your most common query patterns. Indexes allow PostgreSQL to **find rows faster** by avoiding full table scans. ### ✅ Tip: Use `EXPLAIN ANALYZE` to identify slow queries and missing indexes. ## 2. 🧮 Materialized Views Materialized views **store precomputed results** of complex queries, making reads faster. CREATE MATERIALIZED VIEW fast_view AS SELECT category, COUNT(*) FROM products GROUP BY category; > Use `REFRESH MATERIALIZED VIEW` to keep data up to date. ## 3. 📈 Vertical Scaling Sometimes the simplest fix is to **add more resources**. Upgrading CPU, RAM, or disk I/O on your PostgreSQL server improves: * Query execution time * Parallel processing * Cache hit ratios ## 4. 🔄 Denormalization In read-heavy environments, you can **reduce joins** by storing redundant but relevant data together. ### ✅ Example: Instead of joining `orders` with `customers` each time, add `customer_name` directly into `orders`. > Helps reduce query complexity and latency. ## 5. ⚡ Database Caching Cache frequently accessed data in-memory using: * PostgreSQL’s own `shared_buffers` * External caches like **Redis** or **Memcached** This reduces round-trips to the database and improves response times. ## 6. 🌍 Replication Use **replica nodes** for read traffic, separating load from your write-heavy primary node. ### Tools: * `Streaming Replication` * `Logical Replication` ## 7. 🧩 Sharding Divide large datasets into **smaller, distributed chunks**. * Improves scalability and performance * Each shard can be hosted on a separate server > PostgreSQL tools: Citus, Pgpool-II ## 8. 📂 Partitioning Break large tables into **partitions** (by range, list, or hash) to: * Improve query targeting * Speed up inserts and deletes CREATE TABLE sales ( id serial, sale_date date, amount numeric ) PARTITION BY RANGE (sale_date); ## 9. 🛠️ Query Optimization Use `EXPLAIN` and `ANALYZE` to rewrite slow queries: * Avoid `SELECT *` * Use indexes efficiently * Limit rows with `WHERE` and `LIMIT` > Poor query design is one of the top causes of slowness. ## 10. 🧬 Use of Appropriate Data Types Choosing **efficient data types** helps: * Reduce storage * Speed up processing ### ✅ Tip: * Use `INT` instead of `BIGINT` when possible * Use `TEXT` only if variable-length strings are required ## 11. 🚦 Limiting Indexes While indexes help reads, **too many indexes hurt writes**. * Inserts, updates, and deletes must maintain all indexes * Audit existing indexes regularly ## 12. 🗃️ Archiving Old Data Move infrequently accessed data to **archive tables** or **cold storage**. * Keeps your working set smaller * Speeds up queries and maintenance ## ✅ Final Thoughts Optimizing PostgreSQL is not just about writing fast queries—it's about **architecting the whole system** for performance. Start with the low-hanging fruit like indexing and caching, and scale out with partitioning, sharding, and replication when necessary. > Think of your database as a living system. Tune, monitor, and evolve it with your application needs. ## 📚 Resources * PostgreSQL Performance Tuning Guide * EXPLAIN Guide * Citus Open Source for Sharding
0 0 0 0
Post image

🚨 Database Admin - Harrisburg, PA 🚨

SQL/PostgreSQL support! Hybrid (1 day/wk), PA resident.

🔴Optimize DBs
🔴Backup/Recovery
🔴Troubleshoot

➡️ 2-5 yrs DBA exp (SQL/PgSQL). $70-130k.
↘️ Apply: tr.ee/voWxsUf1Pj

#DBA #SQL #PgSQL #HarrisburgJobs

0 0 0 0
Preview
The power of open source in PostgreSQL The power of open source helps us find out how a PostgreSQL parameter got its value. Unravel history with Git and the mailing list archive!

🐘The power of open source in PostgreSQL

www.cybertec-postgresql.com/en/the-power-of-open-sou...

#postgresql #pgsql #opensource

2 0 0 0
PostgreSQL AdministrationPostgreSQL Administration

Les versions de Postgresql et leurs apports selon les versions

public.dalibo.com/exports/form...

#pgsql #postgres #versions

0 0 0 0

Il est possible de revenir à tout moment à l'affichage classique en refaisant `\x`. #PGSQL

0 0 0 0
Post image Post image

#Postgres #PostgreSQL #PGSQL

How it started How it's going

2 1 0 0

Learning basis of #pgsql server administration and... kind of like it.

0 0 0 0