---
title: Do I Need to Use Primary Keys for Tables in Vultr Managed MySQL or PostgreSQL Cluster?
url: https://docs.vultr.com/support/products/storage/databases/do-i-need-to-use-primary-keys-for-tables-in-vultr-managed-mysql-or-postgresql-cluster
description: Every table in a Vultr Managed MySQL or PostgreSQL cluster must have a primary key, which is enforced.
publish_date: 2025-09-15T13:57:01.574231Z
last_updated: 2026-10-26T23:32:13.851254Z
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

reference slug: products/storage/databases/postgresql

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

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.
