Vultr DocsLatest Content

Associated Doc

Do I Need to Use Primary Keys for Tables in Vultr Managed MySQL or PostgreSQL Clusters?

Updated on 15 September, 2025

Primary keys are mandatory for all tables in Vultr Managed MySQL/PostgreSQL clusters to ensure data integrity and efficient database operations.


Yes. Every table in a Vultr Managed MySQL or PostgreSQL cluster must have a primary key. Primary keys ensure that each row in a table is uniquely identifiable, which is essential for maintaining data integrity and supporting efficient queries, indexing, and replication. The database configuration enforces the use of primary keys to prevent tables from lacking unique identifiers, helping maintain consistent and reliable database operations across your cluster.