# Primary keys and domain checks

> Find the database-assigned constraint name, its owning table or domain and the installed expression.

---

LLMS index: [llms.txt](/llms.txt)

---

Find the database-assigned constraint name, its owning table or domain and the installed expression.

## Domain checks {#check}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="bigint-unsigned-check-on-mysql-bigint-unsigned-3a17ae5a" href="#bigint-unsigned-check-on-mysql-bigint-unsigned-3a17ae5a">`"bigint unsigned_check" on mysql."bigint unsigned"`</a> | `CHECK ((0 <= VALUE))` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/10-type.sql#L25-L25) |
| <a id="int-unsigned-check-on-mysql-int-unsigned-a0f21cb1" href="#int-unsigned-check-on-mysql-int-unsigned-a0f21cb1">`"int unsigned_check" on mysql."int unsigned"`</a> | `CHECK (((0 <= VALUE) AND (VALUE <= '4294967295'::bigint)))` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/10-type.sql#L21-L21) |
| <a id="mediumint-signed-check-on-mysql-mediumint-signed-44522800" href="#mediumint-signed-check-on-mysql-mediumint-signed-44522800">`"mediumint signed_check" on mysql."mediumint signed"`</a> | `CHECK ((('-8388608'::integer <= VALUE) AND (VALUE <= 8388607)))` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/10-type.sql#L16-L16) |
| <a id="mediumint-unsigned-check-on-mysql-mediumint-unsigned-e6eb888b" href="#mediumint-unsigned-check-on-mysql-mediumint-unsigned-e6eb888b">`"mediumint unsigned_check" on mysql."mediumint unsigned"`</a> | `CHECK (((0 <= VALUE) AND (VALUE <= 16777215)))` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/10-type.sql#L17-L17) |
| <a id="smallint-unsigned-check-on-mysql-smallint-unsigned-059f7636" href="#smallint-unsigned-check-on-mysql-smallint-unsigned-059f7636">`"smallint unsigned_check" on mysql."smallint unsigned"`</a> | `CHECK (((0 <= VALUE) AND (VALUE <= 65535)))` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/10-type.sql#L14-L14) |
| <a id="tinyint-signed-check-on-mysql-tinyint-signed-9329e651" href="#tinyint-signed-check-on-mysql-tinyint-signed-9329e651">`"tinyint signed_check" on mysql."tinyint signed"`</a> | `CHECK ((('-128'::integer <= VALUE) AND (VALUE <= 127)))` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/10-type.sql#L7-L7) |
| <a id="tinyint-unsigned-check-on-mysql-tinyint-unsigned-f809043c" href="#tinyint-unsigned-check-on-mysql-tinyint-unsigned-f809043c">`"tinyint unsigned_check" on mysql."tinyint unsigned"`</a> | `CHECK (((0 <= VALUE) AND (VALUE <= 255)))` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/10-type.sql#L8-L8) |
| <a id="tinyint1-signed-check-on-mysql-tinyint1-signed-849ae7cc" href="#tinyint1-signed-check-on-mysql-tinyint1-signed-849ae7cc">`"tinyint1 signed_check" on mysql."tinyint1 signed"`</a> | `CHECK ((('-128'::integer <= VALUE) AND (VALUE <= 127)))` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/10-type.sql#L10-L10) |
| <a id="tinyint1-unsigned-check-on-mysql-tinyint1-unsigned-0e75eee1" href="#tinyint1-unsigned-check-on-mysql-tinyint1-unsigned-0e75eee1">`"tinyint1 unsigned_check" on mysql."tinyint1 unsigned"`</a> | `CHECK (((0 <= VALUE) AND (VALUE <= 255)))` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/10-type.sql#L11-L11) |
| <a id="mediumint-check-on-mysql-mediumint-45b2dfaa" href="#mediumint-check-on-mysql-mediumint-45b2dfaa">`mediumint_check on mysql.mediumint`</a> | `CHECK ((('-8388608'::integer <= VALUE) AND (VALUE <= 8388607)))` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/10-type.sql#L15-L15) |
| <a id="tinyint1-check-on-mysql-tinyint1-ebfe206f" href="#tinyint1-check-on-mysql-tinyint1-ebfe206f">`tinyint1_check on mysql.tinyint1`</a> | `CHECK ((('-128'::integer <= VALUE) AND (VALUE <= 127)))` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/10-type.sql#L9-L9) |
| <a id="tinyint-check-on-mysql-tinyint-a3f1b4d4" href="#tinyint-check-on-mysql-tinyint-a3f1b4d4">`tinyint_check on mysql.tinyint`</a> | `CHECK ((('-128'::integer <= VALUE) AND (VALUE <= 127)))` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/10-type.sql#L6-L6) |
| <a id="year-check-on-mysql-year-28d954d6" href="#year-check-on-mysql-year-28d954d6">`year__check on mysql.year_`</a> | `CHECK (((1901 <= VALUE) AND (VALUE <= 2155)))` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/10-type.sql#L47-L47) |

## Primary keys {#primary}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="base-variables-pkey-on-mys-informa-schema-base-variables-20d4cd1e" href="#base-variables-pkey-on-mys-informa-schema-base-variables-20d4cd1e">`base_variables_pkey on mys_informa_schema.base_variables`</a> | `PRIMARY KEY (variable_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/70-info.sql#L824-L824) |
| <a id="cond-instances-pkey-on-performance-schema-cond-instances-dd744caa" href="#cond-instances-pkey-on-performance-schema-cond-instances-dd744caa">`cond_instances_pkey on performance_schema.cond_instances`</a> | `PRIMARY KEY (object_instance_begin)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L37-L37) |
| <a id="data-locks-pkey-on-performance-schema-data-locks-0e331b62" href="#data-locks-pkey-on-performance-schema-data-locks-0e331b62">`data_locks_pkey on performance_schema.data_locks`</a> | `PRIMARY KEY (engine_lock_id, engine)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L77-L77) |
| <a id="error-log-pkey-on-performance-schema-error-log-ad81169a" href="#error-log-pkey-on-performance-schema-error-log-ad81169a">`error_log_pkey on performance_schema.error_log`</a> | `PRIMARY KEY (logged)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L93-L93) |
| <a id="events-stages-current-pkey-on-performance-schema-events-stages-current-896fefc5" href="#events-stages-current-pkey-on-performance-schema-events-stages-current-896fefc5">`events_stages_current_pkey on performance_schema.events_stages_current`</a> | `PRIMARY KEY (thread_id, event_id)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L176-L176) |
| <a id="events-stages-history-pkey-on-performance-schema-events-stages-history-4fccc484" href="#events-stages-history-pkey-on-performance-schema-events-stages-history-4fccc484">`events_stages_history_pkey on performance_schema.events_stages_history`</a> | `PRIMARY KEY (thread_id, event_id)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L195-L195) |
| <a id="events-stages-summary-by-thread-by-event-name-pkey-on-performance-schema-events-stage-45336c10" href="#events-stages-summary-by-thread-by-event-name-pkey-on-performance-schema-events-stage-45336c10">`events_stages_summary_by_thread_by_event_name_pkey on performance_schema.events_stages_summary_by_thread_by_event_name`</a> | `PRIMARY KEY (thread_id, event_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L247-L247) |
| <a id="events-stages-summary-global-by-event-name-pkey-on-performance-schema-events-stages-s-9a279c94" href="#events-stages-summary-global-by-event-name-pkey-on-performance-schema-events-stages-s-9a279c94">`events_stages_summary_global_by_event_name_pkey on performance_schema.events_stages_summary_global_by_event_name`</a> | `PRIMARY KEY (event_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L268-L268) |
| <a id="events-statements-current-pkey-on-performance-schema-events-statements-current-5ee0dae1" href="#events-statements-current-pkey-on-performance-schema-events-statements-current-5ee0dae1">`events_statements_current_pkey on performance_schema.events_statements_current`</a> | `PRIMARY KEY (thread_id, event_id)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L321-L321) |
| <a id="events-statements-histogram-global-pkey-on-performance-schema-events-statements-histo-1a99302f" href="#events-statements-histogram-global-pkey-on-performance-schema-events-statements-histo-1a99302f">`events_statements_histogram_global_pkey on performance_schema.events_statements_histogram_global`</a> | `PRIMARY KEY (bucket_number)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L343-L343) |
| <a id="events-statements-history-pkey-on-performance-schema-events-statements-history-f4bf7c82" href="#events-statements-history-pkey-on-performance-schema-events-statements-history-f4bf7c82">`events_statements_history_pkey on performance_schema.events_statements_history`</a> | `PRIMARY KEY (thread_id, event_id)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L396-L396) |
| <a id="events-statements-summary-by-program-pkey-on-performance-schema-events-statements-sum-2e6f0df0" href="#events-statements-summary-by-program-pkey-on-performance-schema-events-statements-sum-2e6f0df0">`events_statements_summary_by_program_pkey on performance_schema.events_statements_summary_by_program`</a> | `PRIMARY KEY (object_type, object_schema, object_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L595-L595) |
| <a id="events-statements-summary-by-thread-by-event-name-pkey-on-performance-schema-events-s-6ea6bd5d" href="#events-statements-summary-by-thread-by-event-name-pkey-on-performance-schema-events-s-6ea6bd5d">`events_statements_summary_by_thread_by_event_name_pkey on performance_schema.events_statements_summary_by_thread_by_event_name`</a> | `PRIMARY KEY (thread_id, event_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L627-L627) |
| <a id="events-statements-summary-global-by-event-name-pkey-on-performance-schema-events-stat-b041d428" href="#events-statements-summary-global-by-event-name-pkey-on-performance-schema-events-stat-b041d428">`events_statements_summary_global_by_event_name_pkey on performance_schema.events_statements_summary_global_by_event_name`</a> | `PRIMARY KEY (event_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L690-L690) |
| <a id="events-transactions-current-pkey-on-performance-schema-events-transactions-current-66275c21" href="#events-transactions-current-pkey-on-performance-schema-events-transactions-current-66275c21">`events_transactions_current_pkey on performance_schema.events_transactions_current`</a> | `PRIMARY KEY (thread_id, event_id)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L727-L727) |
| <a id="events-transactions-history-pkey-on-performance-schema-events-transactions-history-72ff886b" href="#events-transactions-history-pkey-on-performance-schema-events-transactions-history-72ff886b">`events_transactions_history_pkey on performance_schema.events_transactions_history`</a> | `PRIMARY KEY (thread_id, event_id)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L764-L764) |
| <a id="events-transactions-summary-by-thread-by-event-name-pkey-on-performance-schema-events-f2f4503b" href="#events-transactions-summary-by-thread-by-event-name-pkey-on-performance-schema-events-f2f4503b">`events_transactions_summary_by_thread_by_event_name_pkey on performance_schema.events_transactions_summary_by_thread_by_event_name`</a> | `PRIMARY KEY (thread_id, event_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L864-L864) |
| <a id="events-transactions-summary-global-by-event-name-pkey-on-performance-schema-events-tr-9dd414bc" href="#events-transactions-summary-global-by-event-name-pkey-on-performance-schema-events-tr-9dd414bc">`events_transactions_summary_global_by_event_name_pkey on performance_schema.events_transactions_summary_global_by_event_name`</a> | `PRIMARY KEY (event_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L905-L905) |
| <a id="events-waits-current-pkey-on-performance-schema-events-waits-current-3bf73a2b" href="#events-waits-current-pkey-on-performance-schema-events-waits-current-3bf73a2b">`events_waits_current_pkey on performance_schema.events_waits_current`</a> | `PRIMARY KEY (thread_id, event_id)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L931-L931) |
| <a id="events-waits-history-pkey-on-performance-schema-events-waits-history-db3e96a1" href="#events-waits-history-pkey-on-performance-schema-events-waits-history-db3e96a1">`events_waits_history_pkey on performance_schema.events_waits_history`</a> | `PRIMARY KEY (thread_id, event_id)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L957-L957) |
| <a id="events-waits-summary-by-instance-pkey-on-performance-schema-events-waits-summary-by-i-8ddb0d21" href="#events-waits-summary-by-instance-pkey-on-performance-schema-events-waits-summary-by-i-8ddb0d21">`events_waits_summary_by_instance_pkey on performance_schema.events_waits_summary_by_instance`</a> | `PRIMARY KEY (object_instance_begin)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1016-L1016) |
| <a id="events-waits-summary-by-thread-by-event-name-pkey-on-performance-schema-events-waits--1f19749f" href="#events-waits-summary-by-thread-by-event-name-pkey-on-performance-schema-events-waits--1f19749f">`events_waits_summary_by_thread_by_event_name_pkey on performance_schema.events_waits_summary_by_thread_by_event_name`</a> | `PRIMARY KEY (thread_id, event_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1028-L1028) |
| <a id="events-waits-summary-global-by-event-name-pkey-on-performance-schema-events-waits-sum-cc19e650" href="#events-waits-summary-global-by-event-name-pkey-on-performance-schema-events-waits-sum-cc19e650">`events_waits_summary_global_by_event_name_pkey on performance_schema.events_waits_summary_global_by_event_name`</a> | `PRIMARY KEY (event_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1049-L1049) |
| <a id="file-instances-pkey-on-performance-schema-file-instances-33c2aaba" href="#file-instances-pkey-on-performance-schema-file-instances-33c2aaba">`file_instances_pkey on performance_schema.file_instances`</a> | `PRIMARY KEY (file_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1056-L1056) |
| <a id="file-summary-by-event-name-pkey-on-performance-schema-file-summary-by-event-name-a855e149" href="#file-summary-by-event-name-pkey-on-performance-schema-file-summary-by-event-name-a855e149">`file_summary_by_event_name_pkey on performance_schema.file_summary_by_event_name`</a> | `PRIMARY KEY (event_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1084-L1084) |
| <a id="file-summary-by-instance-pkey-on-performance-schema-file-summary-by-instance-431a2fc9" href="#file-summary-by-instance-pkey-on-performance-schema-file-summary-by-instance-431a2fc9">`file_summary_by_instance_pkey on performance_schema.file_summary_by_instance`</a> | `PRIMARY KEY (object_instance_begin)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1113-L1113) |
| <a id="global-status-pkey-on-performance-schema-global-status-e219f4d5" href="#global-status-pkey-on-performance-schema-global-status-e219f4d5">`global_status_pkey on performance_schema.global_status`</a> | `PRIMARY KEY (variable_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1121-L1121) |
| <a id="global-variables-pkey-on-performance-schema-global-variables-b9e2079f" href="#global-variables-pkey-on-performance-schema-global-variables-b9e2079f">`global_variables_pkey on performance_schema.global_variables`</a> | `PRIMARY KEY (variable_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1127-L1127) |
| <a id="host-cache-pkey-on-performance-schema-host-cache-e0f1a4a4" href="#host-cache-pkey-on-performance-schema-host-cache-e0f1a4a4">`host_cache_pkey on performance_schema.host_cache`</a> | `PRIMARY KEY (ip)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1163-L1163) |
| <a id="memory-summary-by-thread-by-event-name-pkey-on-performance-schema-memory-summary-by-t-8149c441" href="#memory-summary-by-thread-by-event-name-pkey-on-performance-schema-memory-summary-by-t-8149c441">`memory_summary_by_thread_by_event_name_pkey on performance_schema.memory_summary_by_thread_by_event_name`</a> | `PRIMARY KEY (thread_id, event_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1248-L1248) |
| <a id="memory-summary-global-by-event-name-pkey-on-performance-schema-memory-summary-global--4fe071b2" href="#memory-summary-global-by-event-name-pkey-on-performance-schema-memory-summary-global--4fe071b2">`memory_summary_global_by_event_name_pkey on performance_schema.memory_summary_global_by_event_name`</a> | `PRIMARY KEY (event_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1279-L1279) |
| <a id="metadata-locks-pkey-on-performance-schema-metadata-locks-44500c77" href="#metadata-locks-pkey-on-performance-schema-metadata-locks-44500c77">`metadata_locks_pkey on performance_schema.metadata_locks`</a> | `PRIMARY KEY (object_instance_begin)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1294-L1294) |
| <a id="mutex-instances-pkey-on-performance-schema-mutex-instances-b0d4cf90" href="#mutex-instances-pkey-on-performance-schema-mutex-instances-b0d4cf90">`mutex_instances_pkey on performance_schema.mutex_instances`</a> | `PRIMARY KEY (object_instance_begin)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1303-L1303) |
| <a id="persisted-variables-pkey-on-performance-schema-persisted-variables-7424f8c3" href="#persisted-variables-pkey-on-performance-schema-persisted-variables-7424f8c3">`persisted_variables_pkey on performance_schema.persisted_variables`</a> | `PRIMARY KEY (variable_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1333-L1333) |
| <a id="prepared-statements-instances-pkey-on-performance-schema-prepared-statements-instance-c7aa8d5f" href="#prepared-statements-instances-pkey-on-performance-schema-prepared-statements-instance-c7aa8d5f">`prepared_statements_instances_pkey on performance_schema.prepared_statements_instances`</a> | `PRIMARY KEY (object_instance_begin)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1380-L1380) |
| <a id="processlist-pkey-on-performance-schema-processlist-c552d07e" href="#processlist-pkey-on-performance-schema-processlist-c552d07e">`processlist_pkey on performance_schema.processlist`</a> | `PRIMARY KEY (id)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1400-L1400) |
| <a id="replication-applier-configuration-pkey-on-performance-schema-replication-applier-conf-ae0f77b7" href="#replication-applier-configuration-pkey-on-performance-schema-replication-applier-conf-ae0f77b7">`replication_applier_configuration_pkey on performance_schema.replication_applier_configuration`</a> | `PRIMARY KEY (channel_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1418-L1418) |
| <a id="replication-applier-status-by-coordinator-pkey-on-performance-schema-replication-appl-b83d79c3" href="#replication-applier-status-by-coordinator-pkey-on-performance-schema-replication-appl-b83d79c3">`replication_applier_status_by_coordinator_pkey on performance_schema.replication_applier_status_by_coordinator`</a> | `PRIMARY KEY (channel_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1473-L1473) |
| <a id="replication-applier-status-by-worker-pkey-on-performance-schema-replication-applier-s-62fbf3bf" href="#replication-applier-status-by-worker-pkey-on-performance-schema-replication-applier-s-62fbf3bf">`replication_applier_status_by_worker_pkey on performance_schema.replication_applier_status_by_worker`</a> | `PRIMARY KEY (channel_name, worker_id)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1505-L1505) |
| <a id="replication-applier-status-pkey-on-performance-schema-replication-applier-status-f1ef27fe" href="#replication-applier-status-pkey-on-performance-schema-replication-applier-status-f1ef27fe">`replication_applier_status_pkey on performance_schema.replication_applier_status`</a> | `PRIMARY KEY (channel_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1451-L1451) |
| <a id="replication-connection-configuration-pkey-on-performance-schema-replication-connectio-c5e5fe03" href="#replication-connection-configuration-pkey-on-performance-schema-replication-connectio-c5e5fe03">`replication_connection_configuration_pkey on performance_schema.replication_connection_configuration`</a> | `PRIMARY KEY (channel_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1567-L1567) |
| <a id="replication-connection-status-pkey-on-performance-schema-replication-connection-statu-6bbca5de" href="#replication-connection-status-pkey-on-performance-schema-replication-connection-statu-6bbca5de">`replication_connection_status_pkey on performance_schema.replication_connection_status`</a> | `PRIMARY KEY (channel_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1594-L1594) |
| <a id="rwlock-instances-pkey-on-performance-schema-rwlock-instances-944bcb1c" href="#rwlock-instances-pkey-on-performance-schema-rwlock-instances-944bcb1c">`rwlock_instances_pkey on performance_schema.rwlock_instances`</a> | `PRIMARY KEY (object_instance_begin)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1630-L1630) |
| <a id="session-account-connect-attrs-pkey-on-performance-schema-session-account-connect-attr-f7f24061" href="#session-account-connect-attrs-pkey-on-performance-schema-session-account-connect-attr-f7f24061">`session_account_connect_attrs_pkey on performance_schema.session_account_connect_attrs`</a> | `PRIMARY KEY (processlist_id, attr_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1640-L1640) |
| <a id="session-connect-attrs-pkey-on-performance-schema-session-connect-attrs-462a8be3" href="#session-connect-attrs-pkey-on-performance-schema-session-connect-attrs-462a8be3">`session_connect_attrs_pkey on performance_schema.session_connect_attrs`</a> | `PRIMARY KEY (processlist_id, attr_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1648-L1648) |
| <a id="session-status-pkey-on-performance-schema-session-status-9a600bad" href="#session-status-pkey-on-performance-schema-session-status-9a600bad">`session_status_pkey on performance_schema.session_status`</a> | `PRIMARY KEY (variable_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1654-L1654) |
| <a id="session-variables-pkey-on-performance-schema-session-variables-d6fc9aa0" href="#session-variables-pkey-on-performance-schema-session-variables-d6fc9aa0">`session_variables_pkey on performance_schema.session_variables`</a> | `PRIMARY KEY (variable_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1660-L1660) |
| <a id="setup-consumers-pkey-on-performance-schema-setup-consumers-52103d47" href="#setup-consumers-pkey-on-performance-schema-setup-consumers-52103d47">`setup_consumers_pkey on performance_schema.setup_consumers`</a> | `PRIMARY KEY (name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1683-L1683) |
| <a id="setup-instruments-pkey-on-performance-schema-setup-instruments-3fdabece" href="#setup-instruments-pkey-on-performance-schema-setup-instruments-3fdabece">`setup_instruments_pkey on performance_schema.setup_instruments`</a> | `PRIMARY KEY (name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1699-L1699) |
| <a id="setup-threads-pkey-on-performance-schema-setup-threads-cfd90feb" href="#setup-threads-pkey-on-performance-schema-setup-threads-cfd90feb">`setup_threads_pkey on performance_schema.setup_threads`</a> | `PRIMARY KEY (name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1731-L1731) |
| <a id="socket-instances-pkey-on-performance-schema-socket-instances-be702c34" href="#socket-instances-pkey-on-performance-schema-socket-instances-be702c34">`socket_instances_pkey on performance_schema.socket_instances`</a> | `PRIMARY KEY (object_instance_begin)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1745-L1745) |
| <a id="socket-summary-by-event-name-pkey-on-performance-schema-socket-summary-by-event-name-7d8c2b85" href="#socket-summary-by-event-name-pkey-on-performance-schema-socket-summary-by-event-name-7d8c2b85">`socket_summary_by_event_name_pkey on performance_schema.socket_summary_by_event_name`</a> | `PRIMARY KEY (event_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1775-L1775) |
| <a id="socket-summary-by-instance-pkey-on-performance-schema-socket-summary-by-instance-af7b15a9" href="#socket-summary-by-instance-pkey-on-performance-schema-socket-summary-by-instance-af7b15a9">`socket_summary_by_instance_pkey on performance_schema.socket_summary_by_instance`</a> | `PRIMARY KEY (object_instance_begin)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1803-L1803) |
| <a id="status-by-thread-pkey-on-performance-schema-status-by-thread-488e51c9" href="#status-by-thread-pkey-on-performance-schema-status-by-thread-488e51c9">`status_by_thread_pkey on performance_schema.status_by_thread`</a> | `PRIMARY KEY (thread_id, variable_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1826-L1826) |
| <a id="table-handles-pkey-on-performance-schema-table-handles-aa0eb9f8" href="#table-handles-pkey-on-performance-schema-table-handles-aa0eb9f8">`table_handles_pkey on performance_schema.table_handles`</a> | `PRIMARY KEY (object_instance_begin)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L1845-L1845) |
| <a id="threads-pkey-on-performance-schema-threads-ebdefc1d" href="#threads-pkey-on-performance-schema-threads-ebdefc1d">`threads_pkey on performance_schema.threads`</a> | `PRIMARY KEY (thread_id)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L2034-L2034) |
| <a id="user-defined-functions-pkey-on-performance-schema-user-defined-functions-b7bfebf7" href="#user-defined-functions-pkey-on-performance-schema-user-defined-functions-b7bfebf7">`user_defined_functions_pkey on performance_schema.user_defined_functions`</a> | `PRIMARY KEY (udf_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L2055-L2055) |
| <a id="variables-by-thread-pkey-on-performance-schema-variables-by-thread-fc4d3744" href="#variables-by-thread-pkey-on-performance-schema-variables-by-thread-fc4d3744">`variables_by_thread_pkey on performance_schema.variables_by_thread`</a> | `PRIMARY KEY (thread_id, variable_name)` | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/71-perf.sql#L2069-L2069) |

---

Backlinks:

- [pg_mysql object index](/docs/mysql/reference/objects/)
