Skip to main content
This feature is in and subject to change. To share feedback and/or issues, contact Support.
Logical data replication is only supported in CockroachDB self-hosted clusters. The SHOW LOGICAL REPLICATION JOBS statement shows details of jobs on a cluster. This page is a reference for the SHOW LOGICAL REPLICATION JOBS SQL statement, which includes information on its parameters and possible options. For more details on monitoring LDR, refer to the page.

Required privileges

You must have one of the following to run SHOW LOGICAL REPLICATION JOBS:
  • The .
  • The , which can view all jobs (including admin -owned jobs).
Use the statement:

Synopsis

xml version=“1.0” encoding=“UTF-8”? SQL syntax diagram

Parameters

ParameterDescription
show\_logical\_replication\_jobs\_optionsOption to modify the output.

Options

OptionDescription
detailsIncludes the additional columns: replication\_start\_time, conflict\_resolution\_type, description.

Responses

FieldResponse
job\_idThe job’s ID. Use with , , , .
statusThe job’s current state. Possible values: pending, paused, pause-requested, failed, succeeded, canceled, cancel-requested, running, retry-running, retry-reverting, reverting, revert-failed. Refer to for a description of each status.
tablesThe fully qualified name of the table(s) that are part of the LDR job.
replicated\_timeThe latest at which the destination cluster has consistent data. This time advances automatically as long as the LDR job proceeds without error. replicated\_time is updated periodically (every 30s).
replication\_start\_timeThe start time of the LDR job.
conflict\_resolution\_typeThe type of : LWW last write wins.
commandDescription of the job including the replicating table(s) and the cluster connections.

Example

In the destination cluster’s SQL shell, you can query SHOW LOGICAL REPLICATION JOBS to view the LDR jobs running on the cluster:
For additional detail on each LDR job, use the WITH details option:

See also