> ## Documentation Index
> Fetch the complete documentation index at: https://cockroachlabs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SHOW TRIGGERS

export const InternalLink = ({version, path = "", children, ...props}) => {
  let detectedVersion = version || "stable";
  if (typeof window !== 'undefined' && !version) {
    const match = window.location.pathname.match(/\/docs\/([^/]+)/);
    if (match) {
      detectedVersion = match[1];
    }
  }
  const normalizedPath = path.startsWith("/") ? path.slice(1) : path;
  return <a href={`/docs/${detectedVersion}/${normalizedPath}`} {...props}>
      {children}
    </a>;
};

The `SHOW TRIGGERS` <InternalLink path="sql-statements">statement</InternalLink> lists the <InternalLink path="triggers">triggers</InternalLink> defined on a table.

## Required privileges

The user must have any <InternalLink path="security-reference/authorization#managing-privileges">privilege</InternalLink> on the target table.

## Synopsis

<img src="https://mintcdn.com/cockroachlabs/8savutSe7Roc6oQ0/images/sql-diagrams/v26.2/show_triggers.svg?fit=max&auto=format&n=8savutSe7Roc6oQ0&q=85&s=688b7ae6d67a33f6c0695d13f9ebe262" alt="show_triggers syntax diagram" style={{maxWidth: "100%", overflowX: "auto"}} width="429" height="37" data-path="images/sql-diagrams/v26.2/show_triggers.svg" />

## Parameters

| Parameter    | Description                                       |
| ------------ | ------------------------------------------------- |
| `table_name` | The name of the table for which to list triggers. |

## Response

| Field          | Description                     |
| -------------- | ------------------------------- |
| `trigger_name` | The name of the trigger.        |
| `enabled`      | Whether the trigger is enabled. |

## Example

Create a sample table and trigger:

```sql theme={"theme":{"light":"catppuccin-mocha","dark":"catppuccin-mocha"}}
CREATE TABLE users (id INT PRIMARY KEY, name STRING);
```

```sql theme={"theme":{"light":"catppuccin-mocha","dark":"catppuccin-mocha"}}
CREATE FUNCTION update_timestamp()
RETURNS TRIGGER AS $$
BEGIN
  RAISE NOTICE 'Current timestamp: %', now();
  RETURN NEW;
END;
$$ LANGUAGE PLpgSQL;
```

```sql theme={"theme":{"light":"catppuccin-mocha","dark":"catppuccin-mocha"}}
CREATE TRIGGER log_update_timestamp
AFTER UPDATE ON users
FOR EACH ROW
EXECUTE FUNCTION update_timestamp();
```

List the triggers on the table:

```sql theme={"theme":{"light":"catppuccin-mocha","dark":"catppuccin-mocha"}}
SHOW TRIGGERS FROM users;
```

```
      trigger_name     | enabled
-----------------------+----------
  log_update_timestamp |    t
(1 row)
```

## See also

* <InternalLink path="triggers">Triggers</InternalLink>
* <InternalLink path="create-trigger">`CREATE TRIGGER`</InternalLink>
* <InternalLink path="drop-trigger">`DROP TRIGGER`</InternalLink>
* <InternalLink path="show-create">`SHOW CREATE`</InternalLink>
* <InternalLink path="sql-statements">SQL Statements</InternalLink>
