Home / Companies / PlanetScale / Blog / June 2026

June 2026 Summaries

4 posts from PlanetScale

Filter
Month: Year:
Post Summaries Back to Blog
Running multiple applications with distinct schemas on a single Postgres database cluster is feasible and beneficial for small-scale projects, using logical databases to maintain separation while sharing resources. The process involves creating logical databases within a cluster and managing access through roles, with the complexity arising from Postgres' permission model. To streamline this setup, infrastructure as code (IaC) tools like Terraform, Pulumi, or others can automate the creation and management of logical databases and roles, facilitating actions such as granting and revoking permissions. This approach allows for efficient scaling and management of side projects and small applications, with the flexibility to incorporate additional infrastructure components. The use of IaC not only simplifies the deployment process but also enables developers to focus on application development and problem-solving rather than administrative overhead.
Jun 25, 2026 2,619 words in the original blog post.
Kubernetes is a powerful framework for running workloads at scale, operating as a system of feedback controllers similar to those used in control theory, such as a thermostat or cruise control. The essential function of a Kubernetes operator is to maintain the desired state of a system—like a database—by continually observing its current state, identifying discrepancies, and taking corrective actions. This process is achieved through a closed feedback loop, where events act as triggers for state evaluation rather than dictating specific actions. Kubernetes components like kubelets, schedulers, and the Container Storage Interface (CSI) handle various operational tasks, while custom operators can be developed to manage specific applications like databases by leveraging tools like controller-runtime. These operators follow level-triggered logic, which helps them remain resilient to disruptions and maintain system stability, ensuring that the current state is aligned with the desired state, even after failures or interruptions. This approach in Kubernetes exemplifies the application of control theory principles in software engineering, allowing for the creation of scalable, self-healing systems that operate autonomously.
Jun 16, 2026 7,084 words in the original blog post.
Connections is a new feature in the PlanetScale CLI designed to simplify database debugging for Postgres and Vitess (MySQL) by offering an interactive live view of database activity, refreshing about once a second and highlighting the most critical sessions. Unlike traditional methods like repeatedly running queries such as pg_stat_activity in Postgres or SHOW FULL PROCESSLIST in Vitess, Connections allows users to navigate and inspect connections using keyboard shortcuts, view a rolling history of database states, and capture sessions for later analysis. This tool is particularly useful during incidents when regular database connections are exhausted, as it uses a reserved administrative connection to ensure continued access for debugging. By providing features such as query cancellation and connection termination, Connections streamlines the troubleshooting process without requiring users to manually track syntax or connection details. It is available for use by updating to the latest version of pscale, making it an effective resource for managing active database connections in both Postgres and Vitess environments.
Jun 15, 2026 837 words in the original blog post.
Deleting data in PostgreSQL can be resource-intensive, especially at large scales, due to the way the database manages row versions and space. Large DELETE operations do not immediately free disk space and add additional load due to the need for replication and maintaining multiple row versions through Multi-Version Concurrency Control (MVCC). This can lead to increased work for read queries and autovacuum processes. In contrast, DROP TABLE and TRUNCATE operations are more efficient for large data deletions as they remove data files directly from the operating system, freeing up space immediately, and do not generate dead tuples or vacuum debt. For scenarios where a large amount of data must be deleted, restructuring the database schema to allow for DROP TABLE or TRUNCATE instead of DELETE can greatly enhance performance and scalability. This can be particularly useful in cases of schema designs utilizing partitioning, which allows for efficient data management by converting frequent DELETE operations into occasional DROP TABLE operations. Additionally, employing a trigger-based approach or pg_squeeze for large-scale data deletions can further optimize database performance by preventing bloat and reducing replication lag.
Jun 11, 2026 1,187 words in the original blog post.