List Postgres blocking queries
Changed onThis endpoint is in beta. API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns which queries waited on locks held by other queries on a Postgres service during the given time window. Each item groups one waiting query with one direct blocker, most-sampled first. Groups come only from periods when blocking query collection was on for the service; turn it on in the console. Results are paginated with limit/offset and include totalCount. The time range must not exceed 31 days, and to_date must be after from_date.
Request
- Base URLhttps://api.clickhouse.cloud
- AuthHTTP basic
Path parameters
ID of the organization that owns the Postgres service.
ID of the requested Postgres service.
Query parameters
Inclusive start of the time window (RFC 3339 date-time).
Inclusive end of the time window (RFC 3339 date-time).
Filter to groups whose waiting sessions used this database.
Filter to groups whose waiting sessions ran as this database user.
Filter to groups whose waiting sessions had this application_name. An empty value matches sessions with no application name.
Maximum number of results to return.
Number of results to skip before returning.
Response
Successful response
HTTP status code.
Unique id assigned to every request. UUIDv4
List of results.
Example response
{
"status": 200,
"result": [
{
"lockType": "transactionid",
"blockedMode": "ShareLock",
"latestBlockingState": "idle in transaction",
"latestBlockingBackendType": "client backend",
"lastSeen": "2026-04-22T14:06:00Z"
}
]
}Changes
- info
endpoint added
- info