{
  "name": "pg-vacuum-analyze",
  "title": "Vacuum and analyze PostgreSQL",
  "description": "Reclaim dead space and refresh the planner's statistics on a PostgreSQL database, or on the tables you list.",
  "category": "Databases",
  "tags": [
    "databases",
    "postgres"
  ],
  "latestVersion": "1.0.0",
  "versions": [
    "1.0.0"
  ],
  "parameters": [
    "database",
    "host",
    "user",
    "full",
    "password-secret-key",
    "password-secret-name",
    "port",
    "tables"
  ],
  "images": [
    "cgr.dev/chainguard/postgres@sha256:dfc3fba4527ef4bf91eaf9ee518589447f4f2ca3bea47c914bc50e959b3721cb"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/pg-vacuum-analyze.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/pg-vacuum-analyze/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/pg-vacuum-analyze/",
  "entrypoint": "vacuum",
  "parameterDetails": [
    {
      "name": "database",
      "title": "Database",
      "description": "Database to connect to.",
      "type": "string",
      "required": true
    },
    {
      "name": "host",
      "title": "Host",
      "description": "PostgreSQL server host.",
      "type": "string",
      "required": true,
      "example": "db.internal"
    },
    {
      "name": "user",
      "title": "User",
      "description": "User to connect as.",
      "type": "string",
      "required": true
    },
    {
      "name": "full",
      "title": "Full",
      "description": "Set to \"true\" for VACUUM FULL, which rewrites the tables and locks them while it runs.",
      "type": "string",
      "required": false,
      "default": "false",
      "enum": [
        "true",
        "false"
      ]
    },
    {
      "name": "password-secret-key",
      "title": "Password secret key",
      "description": "Key in that Secret that holds the password.",
      "type": "string",
      "required": false,
      "default": "password"
    },
    {
      "name": "password-secret-name",
      "title": "Password secret name",
      "description": "Name of the Kubernetes Secret that holds the user's password.",
      "type": "string",
      "required": false,
      "default": "postgres-password"
    },
    {
      "name": "port",
      "title": "Port",
      "description": "PostgreSQL server port.",
      "type": "string",
      "required": false,
      "default": "5432"
    },
    {
      "name": "tables",
      "title": "Tables",
      "description": "Comma-separated tables to process. Leave blank to process the whole database.",
      "type": "string",
      "required": false,
      "default": "",
      "example": "orders,order_items"
    }
  ],
  "imageDetails": [
    {
      "ref": "cgr.dev/chainguard/postgres@sha256:dfc3fba4527ef4bf91eaf9ee518589447f4f2ca3bea47c914bc50e959b3721cb",
      "repository": "cgr.dev/chainguard/postgres",
      "tag": "latest-dev",
      "digest": "sha256:dfc3fba4527ef4bf91eaf9ee518589447f4f2ca3bea47c914bc50e959b3721cb"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.0",
      "date": "2026-10-18",
      "notes": "Initial release.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/pg-vacuum-analyze/1.0.0.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/pg-vacuum-analyze/1.0.0/template.yaml"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/pg-vacuum-analyze",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
