---
title: Lakebase system table reference
description: Learn about the system.lakebase system tables, which capture Lakebase Postgres observability telemetry such as session history and query plans.
canonical_url: https://docs.databricks.com/aws/en/admin/system-tables/lakebase
---

# Lakebase system table reference

> [!NOTE]
> **Beta**
>
> The Lakebase system tables are in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md).

Lakebase captures its observability telemetry into the `system.lakebase` schema. When the **Lakebase Observability in System Tables** preview is on for your workspace, Lakebase writes telemetry to these tables automatically. You don't create a configuration or choose a destination for it. Advanced Postgres telemetry is the first data to land here. The tables below list what each one holds.

Your account is billed for predictive optimization on these telemetry tables. See [how to stop these charges](https://docs.databricks.com/aws/en/oltp/projects/observability-telemetry-reference.md#costs).

For the detailed column reference for each table, see [Lakebase telemetry in system tables](https://docs.databricks.com/aws/en/oltp/projects/observability-telemetry-reference.md).

The `system.lakebase` tables don't hold audit events. Lakebase audit events, including the Postgres SQL activity that Lakebase records for HIPAA-enabled workspaces, are delivered to the [audit log system table](https://docs.databricks.com/aws/en/admin/system-tables/audit-logs.md) at `system.access.audit`. See [HIPAA audit logging](https://docs.databricks.com/aws/en/oltp/projects/hipaa-audit-logging.md).

## Requirements

* The **Lakebase Observability in System Tables** preview enabled for your workspace. A workspace admin can turn it on from the [Previews page](https://docs.databricks.com/aws/en/admin/workspace-settings/manage-previews.md).
* The **Lakeflow Connect Zerobus Ingest** and **Zerobus Ingest Default Storage** previews enabled for your workspace. Lakebase writes telemetry through [Zerobus Ingest](https://docs.databricks.com/aws/en/ingestion/zerobus-overview.md), so the **Lakebase Observability in System Tables** preview stays off while either one is off. A workspace admin can turn them on from the [Previews page](https://docs.databricks.com/aws/en/admin/workspace-settings/manage-previews.md).
* A Lakebase project on AWS or Azure.

## Available tables

The `system.lakebase` schema contains the following tables:

| Table                         | Description                                                                                                |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `active_session_history`      | Sampled snapshots of active Postgres backend state, including what each session is running and waiting on. |
| `wait_event_counters`         | Per-window counts and durations for Postgres wait events.                                                  |
| `plan_history`                | Captured query executions and their plans.                                                                 |
| `pg_stat_statements_counters` | Per-window execution statistics for normalized statements.                                                 |
| `ddl_history`                 | Captured top-level DDL and schema-change events.                                                           |
| `database_counters`           | Per-window Postgres database counter deltas.                                                               |
| `database_gauges`             | Point-in-time Postgres database values.                                                                    |
| `compute_counters`            | Per-window compute and host counter deltas.                                                                |
| `compute_gauges`              | Point-in-time compute capacity and health values.                                                          |
| `postgres_logs`               | Structured Postgres log events.                                                                            |

**Table path**: These tables are located in the `system.lakebase` schema, for example `system.lakebase.active_session_history`.

For the full column reference for each table, see [Lakebase telemetry in system tables](https://docs.databricks.com/aws/en/oltp/projects/observability-telemetry-reference.md).

## Retention

The `system.lakebase` tables retain 7 days of data.

## Access

Access to system tables is governed by Unity Catalog. Users with both the account admin and metastore admin roles can read the `system.lakebase` tables and manage access to them. See [Manage privileges in Unity Catalog](https://docs.databricks.com/aws/en/data-governance/unity-catalog/manage-privileges/index.md).

Access applies at the schema level, so a user who can read `system.lakebase` sees telemetry for every project in the account. A user with access queries the telemetry the way they would any Unity Catalog table.

## Related

* [Lakebase telemetry in system tables](https://docs.databricks.com/aws/en/oltp/projects/observability-telemetry-reference.md)
* [Observability](https://docs.databricks.com/aws/en/oltp/projects/monitor.md)
* [HIPAA audit logging](https://docs.databricks.com/aws/en/oltp/projects/hipaa-audit-logging.md)
