Postgres

Update Postgres service configuration

Changed on

Update the existing Postgres service and pgBouncer configuration.

patch/v1/organizations/{organizationId}/postgres/{postgresId}/config

Request

  • Base URL
    https://api.clickhouse.cloud
  • Auth
    HTTP basic

Path parameters

organizationId, string uuid required

ID of the organization that owns the Postgres service.

postgresId, string uuid required
Example:f71df78e-ddad-82d0-8dfa-abbec741b82e

ID of the requested Postgres service.

Request body

PostgresInstanceConfig required
pgConfig, PgConfig required

Postgres runtime configuration configuration.

pgBouncerConfig, PgBouncerConfig required

PgBouncer runtime configuration configuration.

Example request

{
  "pgConfig": {
    "max_connections": 100
  },
  "pgBouncerConfig": {
    "default_pool_size": "16"
  }
}

Response

Successful response

object required
status, number

HTTP status code.

requestId, string uuid

Unique id assigned to every request. UUIDv4

result, PostgresInstanceUpdateConfigResponse

Example response

{
  "status": 200,
  "result": {
    "pgConfig": {
      "max_connections": 100
    },
    "pgBouncerConfig": {
      "default_pool_size": "16"
    }
  }
}

Changes

    • info

      added the new optional request property pgConfig/autovacuum_max_parallel_workers

    • info

      added the new optional request property pgConfig/io_max_workers

    • info

      added the new optional request property pgConfig/io_min_workers

    5 more changes in this revision