Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Stackland
  • What's new
  • Installation
    • All tutorials
    • Installing Stackland on Yandex BareMetal
    • Installing Stackland on Yandex BareMetal via PXE
    • Installing Stackland on Yandex Cloud VMs
    • Setting up external access to a pod in a cluster
    • Verifying signatures for custom images
    • All guides
        • Creating a PostgreSQL cluster
        • Updating cluster settings
        • Creating a user
        • Updating a user
        • Deleting a user
        • Create database
        • Update database
        • Deleting a database
        • Performance diagnostics
        • Create a backup
        • Recovering a cluster
        • Deleting a cluster
    • Projects
    • Resource model
    • Scaling a cluster
    • Licensing
  • Access management
  • Pricing policy
  • Diagnostics and troubleshooting
  1. Step-by-step guides
  2. Databases and analytics
  3. Managed Service for PostgreSQL
  4. Update database

Editing a PostgreSQL database

Written by
Yandex Cloud
Updated at July 24, 2026
View in Markdown

If you have a PostgreSQL database in your cluster, you can edit its settings.

Using the CLIUsing the CLI

  1. Open the PostgresqlDatabase resource, e.g., by running this command: kubectl edit PostgresqlDatabase <resource_name> -n <project_name>.

  2. Edit the parameters:

    • spec.owner: Database owner role.
    • spec.allowConnections: Permission to connect to the database.
    • spec.connectionLimit: Limit on simultaneous connections. If set to -1, there is no limit.
    • spec.isTemplate: Use the database as a template to create other databases.
    • spec.tablespace: Default tablespace.
    • spec.schemas: List of managed schemas. To delete a schema, set the value to state: absent or delete the item from the list.
  3. Apply the manifest: kubectl apply -f postgresqldatabase.yaml -n <project_name>.

Once the database is created, you cannot change the name, template, encoding, localeProvider, locale, localeCollate, localeCType, icuLocale, icuRules, builtinLocale, or collationVersion field.

Was the article helpful?

Previous
Create database
Next
Deleting a database
© 2026 Direct Cursus Technology L.L.C.