The INSPECTstatement runs a data consistency validation job against a table or database and records any errors it finds. To display errors recorded by an inspection job, use SHOW INSPECT ERRORS.INSPECT is the generally available replacement for the deprecated EXPERIMENTAL SCRUB command.
INSPECT is used to verify data integrity. It does not automatically repair errors.
Optional. Run the inspection against a historical read timestamp using INSPECT ... AS OF SYSTEM TIME {expr}. For an example, see INSPECT at a specific timestamp. For more information about historical reads, see AS OF SYSTEM TIME.
Run all supported INSPECT checks for the target table or database. This is the default.
INDEX ({index_name} [, ...])
Run checks only for the specified indexes. New in v26.2: On supported REGIONAL BY ROW tables, naming the primary index can also trigger a uniqueness check. Note that INDEX ALL and this option are mutually exclusive.
By default, INSPECT causes the SQL client to wait for the background job to complete and returns a NOTICE with the job ID. To return to the client as soon as the job is created (without waiting for it to finish), use the DETACHED option.
INSPECT runs with low priority under the admission control subsystem and may take time on large datasets. Plan to run it during periods of lower system load.
New in v26.2: INSPECT runs secondary-index consistency checks on supported secondary indexes. On supported REGIONAL BY ROW tables, it can also run uniqueness checks on the primary index to detect duplicate unique values across regions.
Unsupported index types are automatically skipped when using the default INDEX ALL behavior. If an unsupported index type is directly requested using INDEX {index_name}, the statement will fail before starting.
Run a uniqueness check on a REGIONAL BY ROW primary index
New in v26.2: On supported REGIONAL BY ROW tables, INSPECT will run uniqueness checks on the primary index to detect duplicate unique values across regions. This will also run any other checks supported by INSPECT:
To view errors found by an inspection job, use SHOW INSPECT ERRORS. Errors are stored in an internal system table and are subject to a 90 day retention policy.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CockroachDB","colors":{"primary":"#9059FF","light":"#9059FF","dark":"#9059FF"},"logo":{"light":"https://mintcdn.com/cockroachlabs/4WvUnbVuGZfqM4kW/images/CockroachLabs_Wordmark_Black.png?fit=max\u0026auto=format\u0026n=4WvUnbVuGZfqM4kW\u0026q=85\u0026s=54ccae625c9986bf1df8ddc7b2c571f0","dark":"https://mintcdn.com/cockroachlabs/4WvUnbVuGZfqM4kW/images/CockroachLabs_Wordmark_White.png?fit=max\u0026auto=format\u0026n=4WvUnbVuGZfqM4kW\u0026q=85\u0026s=0dd9b66973a1c7d3dd72aa67b6094efe","href":"https://www.cockroachlabs.com/"},"favicon":{"light":"https://mintcdn.com/cockroachlabs/2yihO7vMXnL0G_07/images/favicon.svg?fit=max\u0026auto=format\u0026n=2yihO7vMXnL0G_07\u0026q=85\u0026s=01f9aa59c9f275e1f35cd424a27d2551","dark":"https://mintcdn.com/cockroachlabs/2yihO7vMXnL0G_07/images/favicon.svg?fit=max\u0026auto=format\u0026n=2yihO7vMXnL0G_07\u0026q=85\u0026s=01f9aa59c9f275e1f35cd424a27d2551"},"api":{"examples":{"defaults":"required","languages":["curl"]}},"appearance":{"default":"light"},"navbar":{"primary":{"type":"button","label":"Get started free","href":"https://cockroachlabs.cloud/signup?referralId=cc_nav_global\u0026_ga=2.242886210.1147139380.1759903632-41552699.1759903632"}},"footer":{"socials":{"youtube":"https://www.youtube.com/@cockroachdb","x":"https://x.com/CockroachDB","linkedin":"https://www.linkedin.com/company/cockroach-labs/mycompany/verification","instagram":"https://www.instagram.com/cockroachdb"},"links":[{"header":"Product","items":[{"label":"CockroachDB","href":"https://www.cockroachlabs.com/product"},{"label":"CockroachDB Cloud","href":"https://www.cockroachlabs.com/product/cockroachcloud"},{"label":"Compare","href":"https://www.cockroachlabs.com/compare"},{"label":"Pricing","href":"https://www.cockroachlabs.com/pricing"},{"label":"Get CockroachDB","href":"https://www.cockroachlabs.com/get-started-cockroachdb"},{"label":"Sign In","href":"https://cockroachlabs.cloud/"}]},{"header":"Resources","items":[{"label":"Guides","href":"https://resources.cockroachlabs.com/guides"},{"label":"Webinars","href":"https://www.cockroachlabs.com/community/webinars"},{"label":"Videos","href":"https://www.cockroachlabs.com/resources/video"},{"label":"Architecture Overview","href":"https://www.cockroachlabs.com/docs/stable/architecture/overview"},{"label":"FAQ","href":"https://www.cockroachlabs.com/docs/stable/frequently-asked-questions"},{"label":"Security","href":"https://www.cockroachlabs.com/security"}]},{"header":"Learn \u0026 Support","items":[{"label":"Docs","href":"https://www.cockroachlabs.com/docs"},{"label":"University","href":"https://learn.cockroachlabs.com/"},{"label":"Developers","href":"https://www.cockroachlabs.com/developers"},{"label":"Forum","href":"https://forum.cockroachlabs.com/"},{"label":"Slack","href":"https://cockroa.ch/slack"},{"label":"Support Portal","href":"https://support.cockroachlabs.com/hc/en-us"},{"label":"Contact Us","href":"https://www.cockroachlabs.com/contact"}]},{"header":"Company","items":[{"label":"About","href":"https://www.cockroachlabs.com/about"},{"label":"Blog","href":"https://www.cockroachlabs.com/blog"},{"label":"Careers","href":"https://www.cockroachlabs.com/careers"},{"label":"Customers","href":"https://www.cockroachlabs.com/customers"},{"label":"News","href":"https://www.cockroachlabs.com/press"},{"label":"Privacy","href":"https://www.cockroachlabs.com/privacy"},{"label":"Terms of Use","href":"https://www.cockroachlabs.com/website-terms-of-use"}]}]},"fonts":{"heading":{"family":"Poppins"},"body":{"family":"Open Sans"}},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"catppuccin-mocha","dark":"catppuccin-mocha"}},"latex":true},"integrations":{"gtm":{"tagId":"GTM-NR8LC4"}},"errors":{"404":{"redirect":false,"title":"Page not found","description":"The page you're looking for doesn't exist. [Return to docs home](/index.html)."}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"interaction":{"drilldown":false},"navigation":{"global":{"anchors":[{"anchor":"University","icon":"graduation-cap","href":"https://learn.cockroachlabs.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cockroachlabs","hasAudioNarration":false,"actualSubdomain":"cockroachlabs","customDomains":["docs.cockroachlabs.com"],"gitSource":{"type":"github","owner":"cockroachlabs","repo":"docs","deployBranch":"main","contentDirectory":"cockroachlabs-preview-main","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af4bb21d7a808c67a4ac795","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"CockroachDB","count":6951},{"language":"default","tag":"Docs","count":3217},{"language":"default","tag":"SQL","count":2566},{"language":"default","tag":"Statements","count":1714},{"language":"default","tag":"Self-Hosted Deployments","count":1457},{"language":"default","tag":"Reference","count":774},{"language":"default","tag":"Cloud Deployments","count":616},{"language":"default","tag":"Endpoints","count":528},{"language":"default","tag":"Cloud API Reference","count":518},{"language":"default","tag":"Get Started","count":441}],"searchSettings":{"isFiltersEnabled":true,"showContentSnippets":true,"fullPageSearch":true}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"styles.css","content":":root{--inline-code-bg-light: rgb(var(--gray-200) / 0.92);--inline-code-bg-dark: rgb(255 255 255 / 0.08)}.prose :not(pre)>code{background-color:var(--inline-code-bg-light)!important}.dark .prose :not(pre)>code{background-color:var(--inline-code-bg-dark)!important}@media (min-width: 1536px){#navbar>.max-w-8xl,[class*=\"peer-[.is-not-custom]:peer-[.is-not-center]:max-w-8xl\"]{width:100%!important;max-width:none!important}}#navigation-items{display:flex;flex-direction:column}#navigation-items>ul:not(.sidebar-group){order:1;margin-top:1.5rem}.crdb-metrics-table table{table-layout:fixed!important;width:100%!important;min-width:0!important;max-width:100%!important;border-collapse:collapse}.crdb-metrics-table table td,.crdb-metrics-table table th{min-width:0!important;overflow-wrap:anywhere;word-break:break-word}.crdb-fixed-table table{table-layout:fixed!important;width:100%!important;min-width:0!important;max-width:100%!important;border-collapse:collapse}.crdb-fixed-table table td,.crdb-fixed-table table th{min-width:0!important;overflow-wrap:anywhere;word-break:break-word}.bg-cover{background-size:cover;background-repeat:no-repeat;background-position:center center}.bg-cover__bg-3-1{background-image:url(\"https://cockroach-labs-docs.imgix.net/bg-3-1.png?auto=format,compress\u0026w=1200\u0026q=40\")}.home-header{border-radius:0.5rem;margin-bottom:2rem!important;padding:2rem}.card{border:1px solid #e5e7eb;border-radius:0.75rem;background-color:white}.dark .card{background-color:#0d1117;border-color:rgba(255, 255, 255, 0.1)}.card-link{text-decoration:none!important;overflow:hidden}.card-link:hover{outline:1px solid rgba(105, 51, 255, 0.55);outline-offset:-1px}.card-link,.card-link:hover{transform:none!important;box-shadow:none!important}.card-link a,.card-link a:hover,.card-link h3,.card-link h3:hover,.card-link p,.card-link p:hover{border:0!important;text-decoration:none!important;transform:none!important}.card-link a{display:block;width:100%}.card-link h3{font-size:1rem!important;font-weight:600!important}.card-body{padding:1.5rem}.landing-column-title{margin-bottom:1rem}.overline{text-transform:uppercase;letter-spacing:0.05em}.btn-redirect{display:inline-flex;align-items:center;gap:0.5rem;padding:0.75rem 1.5rem;border:2px solid #e5e7eb;border-radius:0.5rem;text-decoration:none;transition:border-color 0.2s}.btn-redirect:hover{border-color:#6933ff}.btn-block{display:flex;width:100%;justify-content:center}.dark .btn-redirect{border-color:rgba(255, 255, 255, 0.1)}.article-section-title{font-size:1.25rem!important}.article-lists h3{font-size:0.875rem!important;font-weight:600!important;text-transform:uppercase;letter-spacing:0.05em;color:#6b7280!important}.dark .article-lists h3{color:#9ca3af!important}.article-lists ul{font-size:0.875rem}.shadow{box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.bg-dark-wing{background-color:#152849;border-radius:0.5rem}.text-ice-temple{color:#1bf8ec!important;display:inline-flex;align-items:center;gap:0.375rem}.text-ice-temple img{display:inline-block;margin:0}.bg-dark-wing h2{font-size:clamp(1.25rem, 1rem + 1.5vw, 1.75rem)!important}@media (max-width: 576px){.card-body.bg-dark-wing{padding:1.25rem!important}}.text-decoration-none{text-decoration:none!important}.text-muted{color:#6b7280!important}.card-link .card-desc{font-size:0.9375rem!important;font-weight:400!important;line-height:1.5!important;text-align:left!important;color:#4b5563!important;width:100%;margin-top:0.5rem}.dark .card-link .card-desc{color:#9ca3af!important}.report-tag{display:inline-block;padding:0.25rem 0.75rem;border-radius:0.25rem;background-color:rgba(84, 42, 189, 0.08);color:#542abd}.dark .report-tag{background-color:rgba(84, 42, 189, 0.3);color:#b39dff}.resilience-report-img{background-image:url(\"/images/state-resilience.png\");background-size:cover;background-position:center;min-height:150px;border-radius:0.5rem}.row{display:flex!important;flex-wrap:wrap;margin-left:-0.75rem;margin-right:-0.75rem}.display-flex{display:flex!important}.col-lg-4{flex:0 0 auto;width:100%;padding-left:0.75rem;padding-right:0.75rem}@media (min-width: 992px){.col-lg-4{width:33.333333%!important}}.col-lg-3,.col-sm-6,.col-xs-12{flex:0 0 auto;width:100%!important;padding-left:0.75rem;padding-right:0.75rem}@media (min-width: 992px){.col-lg-3{width:25%!important}}@media (min-width: 576px){.col-sm-6{width:50%!important}}.col-12{width:100%!important}.col-lg-12{width:100%;padding-left:0.75rem;padding-right:0.75rem}@media (min-width: 992px){.col-lg-12{width:100%!important}}.col-md-4,.col-md-8{flex:0 0 auto;width:100%;padding-left:0.75rem;padding-right:0.75rem}@media (min-width: 768px){.col-md-4{width:33.333333%!important}.col-md-8{width:66.666667%!important}}.h-100{height:100%}.d-flex{display:flex}.flex-column{flex-direction:column}.mb-3{margin-bottom:1rem!important}.mb-5{margin-bottom:3rem!important}.pb-5{padding-bottom:3rem!important}.mb-xl-5{margin-bottom:3rem!important}.mt-auto{margin-top:auto!important}.mt-0{margin-top:0!important}.mt-2{margin-top:0.5rem!important}.mt-3{margin-top:1rem!important}.mt-5:not(.code-block){margin-top:3rem!important}.code-block.mb-8{margin-bottom:calc(var(--spacing) * 5)}.pt-5{padding-top:3rem!important}.m-0{margin:0!important}.ml-2{margin-left:0.5rem!important}.mb-0{margin-bottom:0!important}.mb-2{margin-bottom:0.5rem!important}.mb-4{margin-bottom:1.5rem!important}.p-2{padding:0.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.ml-1{margin-left:0.25rem!important}.mr-auto{margin-right:auto!important}.justify-content-center{justify-content:center!important}.align-items-center{align-items:center!important}@media (min-width: 1200px){.p-xl-5{padding:3rem!important}}.mx-0{margin-left:0!important;margin-right:0!important}.text-center{text-align:center}.text-white{color:white!important}.text-black{color:black!important}.dark .text-black{color:white!important}.container{width:100%;max-width:1200px;margin-left:auto;margin-right:auto;padding-left:1rem;padding-right:1rem}.card-header-overlap-text{position:relative}@media (min-width: 768px){.p-md-5{padding:3rem!important}}@media (min-width: 992px){.d-lg-flex{display:flex!important}.mb-lg-0{margin-bottom:0!important}}.prose table{border-collapse:collapse!important}.prose table th,.prose table td{border:1px solid rgb(var(--gray-200))!important}.dark .prose table th,.dark .prose table td{border-color:rgb(var(--gray-700) / 0.5)!important}.prose table th{padding:0.571429em;font-weight:600;vertical-align:bottom;color:var(--tw-prose-headings);text-align:left}.prose table th.center-align{text-align:center}.prose table td{padding:0.571429em;vertical-align:baseline}[data-component-part=\"accordion-description\"]{font-size:0.875rem!important}.accordion.mb-3{margin-bottom:0.25rem!important}@media (max-width: 991.98px){[id^=\"kapa-widget-container\"] button{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;font-size:0!important}[id^=\"kapa-widget-container\"] button svg{width:18px!important;height:18px!important}[id^=\"kapa-widget-container\"] button span{display:none!important}}table.crdb-fixed-table{table-layout:fixed!important;min-width:0!important;width:100%}table.crdb-fixed-table td,table.crdb-fixed-table th{min-width:0!important;overflow-wrap:break-word;word-break:normal}.sql-grammar svg .line{fill:none;stroke:#262626}.sql-grammar svg .bold-line{stroke:#0A0A0A;shape-rendering:crispEdges;stroke-width:2}.sql-grammar svg .thin-line{stroke:#0F0F0F;shape-rendering:crispEdges}.sql-grammar svg .filled{fill:#262626;stroke:none}.sql-grammar svg text.terminal{font-family:Verdana, Sans-serif;font-size:12px;fill:#0A0A0A;font-weight:bold}.sql-grammar svg text.nonterminal{font-family:Verdana, Sans-serif;font-size:12px;fill:#0055FF}.sql-grammar svg text.regexp{font-family:Verdana, Sans-serif;font-size:12px;fill:#0F0F0F}.sql-grammar svg rect,.sql-grammar svg circle,.sql-grammar svg polygon{fill:#262626;stroke:#262626}.sql-grammar svg rect.terminal{fill:#ffffff;stroke:#262626}.sql-grammar svg rect.nonterminal{fill:#FFFFFF;stroke:#262626}.sql-grammar svg rect.text{fill:none;stroke:none}.sql-grammar svg polygon.regexp{fill:#FFFFFF;stroke:#262626}.sql-grammar svg{background-color:#ffffff}.sql-grammar a[name]::before{content:'';display:block;height:80px;margin:-80px 0 0}.sql-grammar a[name]:focus{outline:0}pre[language=\"sql\"][data-crdb-prompt-stripped] code::before{content:\"> \";color:#94e2d5;user-select:none}.mark-yes{color:#008a5e;font-weight:600}.dark .mark-yes{color:#3ddc97}"},{"filePath":"collapse-nav.css","content":"html:not(.crl-nav-off) [data-layout-item=\"sidebar\"] li[data-title]:not([data-active]):not([data-crl-keep])>button+ul,html:not(.crl-nav-off) [data-layout-item=\"mobile-nav\"] li[data-title]:not([data-active]):not([data-crl-keep])>button+ul{display:none}html:not(.crl-nav-off) [data-layout-item=\"sidebar\"] li[data-title]:not([data-active]):not([data-crl-keep])>button svg,html:not(.crl-nav-off) [data-layout-item=\"mobile-nav\"] li[data-title]:not([data-active]):not([data-crl-keep])>button svg{rotate:none!important;transform:none!important}"}],"page":{"pagePath":"docs/v26.2/inspect","slug":"/docs/v26.2/inspect","pageMetadata":{"title":"INSPECT","sidebarTitle":"INSPECT","old_description":"Use the INSPECT statement to run data consistency validation checks against tables or databases.","canonical":"https://docs.cockroachlabs.com/docs/stable/inspect","description":null,"href":"/docs/v26.2/inspect"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,OptimizedImage,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`INSPECT`}),` `,_jsx(_components.a,{href:`/docs/v26.2/sql-statements`,children:`statement`}),` runs a data consistency validation job against a table or database and records any errors it finds. To display errors recorded by an inspection job, use `,_jsx(_components.a,{href:`/docs/v26.2/show-inspect-errors`,children:_jsx(_components.code,{children:`SHOW INSPECT ERRORS`})}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`INSPECT`}),` is the generally available replacement for the deprecated `,_jsx(_components.code,{children:`EXPERIMENTAL SCRUB`}),` command.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`INSPECT`}),` is used to verify data integrity. It does not automatically repair errors.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`required-privileges`,children:`Required privileges`}),`\n`,_jsxs(_components.p,{children:[`To run `,_jsx(_components.code,{children:`INSPECT`}),` and view its results, the user must have:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`INSPECT`}),` system-level `,_jsx(_components.a,{href:`/docs/v26.2/security-reference/authorization#supported-privileges`,children:`privilege`}),`, which is required to run the `,_jsx(_components.code,{children:`INSPECT`}),` statement.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`synopsis`,children:`Synopsis`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_table.svg?fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=c4aa751dc5f91b5f58565ca483a502c7`,alt:`inspect_table syntax diagram`,style:{maxWidth:`100%`,overflowX:`auto`},\"data-og-width\":`707`,width:`707`,\"data-og-height\":`37`,height:`37`,\"data-path\":`images/sql-diagrams/common/inspect_table.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_table.svg?w=280\u0026fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=24eeb4388c9cc95a207f4f63e92d20ca 280w, https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_table.svg?w=560\u0026fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=b0570978efbd6576b327497992237d3e 560w, https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_table.svg?w=840\u0026fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=08a4cf7c41e1b201c318eef65525b5cb 840w, https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_table.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=9628ab4406e0fe02e086088495ccbbde 1100w, https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_table.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=300b6281ebeeeb8102b8cef60d82a121 1650w, https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_table.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=9623780747a0b581010660b74efd3a7f 2500w`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_database.svg?fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=6abba63935cfceb23868dd271ca0dc59`,alt:`inspect_database syntax diagram`,style:{maxWidth:`100%`,overflowX:`auto`},\"data-og-width\":`721`,width:`721`,\"data-og-height\":`37`,height:`37`,\"data-path\":`images/sql-diagrams/common/inspect_database.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_database.svg?w=280\u0026fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=ac0268fe27a47d2fa1a069fbe3a7f62d 280w, https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_database.svg?w=560\u0026fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=32ee81a3642d2e342ccc1d4b9269add3 560w, https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_database.svg?w=840\u0026fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=bcf6025e682c8155609ca0f1f8e9b27e 840w, https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_database.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=0246f8c7aba9d30c675d4450e532766b 1100w, https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_database.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=d9c2aa7f93caf28b4f396f373f682a51 1650w, https://mintcdn.com/cockroachlabs/UZNSFbmU2EwEm6G5/images/sql-diagrams/common/inspect_database.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=UZNSFbmU2EwEm6G5\u0026q=85\u0026s=62901c9cdbc59d41f12132c9b36db24b 2500w`}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`table_name`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.a,{href:`/docs/v26.2/create-table`,children:`table`}),` to inspect.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`db_name`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.a,{href:`/docs/v26.2/create-database`,children:`database`}),` to inspect.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`opt_as_of_clause`})}),_jsxs(_components.td,{children:[`Optional. Run the inspection against a historical read timestamp using `,_jsx(_components.code,{children:`INSPECT ... AS OF SYSTEM TIME {expr}`}),`. For an example, see `,_jsxs(_components.a,{href:`#inspect-at-a-specific-timestamp`,children:[_jsx(_components.code,{children:`INSPECT`}),` at a specific timestamp`]}),`. For more information about historical reads, see `,_jsx(_components.a,{href:`/docs/v26.2/as-of-system-time`,children:_jsx(_components.code,{children:`AS OF SYSTEM TIME`})}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`opt_inspect_options_clause`})}),_jsxs(_components.td,{children:[`Optional. Control which `,_jsx(_components.a,{href:`/docs/v26.2/indexes`,children:`indexes`}),` are used to plan `,_jsx(_components.code,{children:`INSPECT`}),` checks with `,_jsx(_components.code,{children:`INSPECT ... WITH OPTIONS (...)`}),`. For an example, see `,_jsxs(_components.a,{href:`#inspect-a-table-for-specific-indexes`,children:[_jsx(_components.code,{children:`INSPECT`}),` a table for specific indexes`]}),`. See `,_jsx(_components.a,{href:`#options`,children:`Options`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`options`,children:`Options`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Option`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`INDEX ALL`})}),_jsxs(_components.td,{children:[`Run all supported `,_jsx(_components.code,{children:`INSPECT`}),` checks for the target table or database. This is the default.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`INDEX ({index_name} [, ...])`})}),_jsxs(_components.td,{children:[`Run checks only for the specified indexes. New in v26.2: On supported `,_jsx(_components.a,{href:`/docs/v26.2/alter-table`,children:_jsx(_components.code,{children:`REGIONAL BY ROW`})}),` tables, naming the primary index can also trigger a uniqueness check. Note that `,_jsx(_components.code,{children:`INDEX ALL`}),` and this option are mutually exclusive.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DETACHED`})}),_jsxs(_components.td,{children:[`Run `,_jsx(_components.code,{children:`INSPECT`}),` in detached mode so the statement returns to the SQL client after the job is created (instead of waiting for the job to complete). For an example, see `,_jsxs(_components.a,{href:`#inspect-a-table-without-waiting-for-completion`,children:[_jsx(_components.code,{children:`INSPECT`}),` a table without waiting for completion`]}),`. This option allows `,_jsx(_components.code,{children:`INSPECT`}),` to run inside a `,_jsx(_components.a,{href:`/docs/v26.2/run-multi-statement-transactions`,children:`multi-statement transaction`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`considerations`,children:`Considerations`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INSPECT`}),` always runs as a `,_jsx(_components.a,{href:`/docs/v26.2/show-jobs`,children:`background job`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`By default, `,_jsx(_components.code,{children:`INSPECT`}),` causes the SQL client to wait for the background job to complete and returns a `,_jsx(_components.code,{children:`NOTICE`}),` with the job ID. To return to the client as soon as the job is created (without waiting for it to finish), use the `,_jsxs(_components.a,{href:`#options`,children:[_jsx(_components.code,{children:`DETACHED`}),` option`]}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INSPECT`}),` can be run inside a `,_jsx(_components.a,{href:`/docs/v26.2/run-multi-statement-transactions`,children:`multi-statement transaction`}),` if the `,_jsx(_components.code,{children:`DETACHED`}),` option is used. Otherwise, it needs to be run in an `,_jsx(_components.a,{href:`/docs/v26.2/transactions#individual-statements`,children:`implicit transaction`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INSPECT`}),` runs with low priority under the `,_jsx(_components.a,{href:`/docs/v26.2/admission-control`,children:`admission control`}),` subsystem and may take time on large datasets. Plan to run it during periods of lower system load.`]}),`\n`,_jsxs(_components.li,{children:[`New in v26.2: `,_jsx(_components.code,{children:`INSPECT`}),` runs secondary-index consistency checks on supported secondary indexes. On supported `,_jsx(_components.a,{href:`/docs/v26.2/alter-table`,children:_jsx(_components.code,{children:`REGIONAL BY ROW`})}),` tables, it can also run uniqueness checks on the primary index to detect duplicate unique values across regions.`]}),`\n`,_jsxs(_components.li,{children:[`The following index types are unsupported:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/docs/v26.2/vector-indexes`,children:`Vector indexes`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/docs/v26.2/partial-indexes`,children:`Partial indexes`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/docs/v26.2/expression-indexes`,children:`Expression indexes`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/docs/v26.2/hash-sharded-indexes`,children:`Hash-sharded indexes`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/docs/v26.2/inverted-indexes`,children:`Inverted indexes`})}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`Unsupported index types are automatically skipped when using the default `,_jsx(_components.code,{children:`INDEX ALL`}),` behavior. If an unsupported index type is directly requested using `,_jsx(_components.code,{children:`INDEX {index_name}`}),`, the statement will fail before starting.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsxs(Heading,{level:`3`,id:`inspect-a-table-all-supported-checks`,children:[_jsx(_components.code,{children:`INSPECT`}),` a table (all supported checks)`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes catppuccin-mocha catppuccin-mocha`,style:{backgroundColor:`#1e1e2e`,\"--shiki-dark-bg\":`#1e1e2e`,color:`#cdd6f4`,\"--shiki-dark\":`#cdd6f4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:`INSPECT `}),_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:`TABLE`}),_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:` movr.public.users;`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes catppuccin-mocha catppuccin-mocha`,style:{backgroundColor:`#1e1e2e`,\"--shiki-dark-bg\":`#1e1e2e`,color:`#cdd6f4`,\"--shiki-dark\":`#cdd6f4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`NOTICE: waiting for INSPECT job to complete: 1141477630617223169`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If the statement is canceled, the job will continue in the background.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(Heading,{level:`3`,id:`inspect-a-table-for-specific-indexes`,children:[_jsx(_components.code,{children:`INSPECT`}),` a table for specific indexes`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes catppuccin-mocha catppuccin-mocha`,style:{backgroundColor:`#1e1e2e`,\"--shiki-dark-bg\":`#1e1e2e`,color:`#cdd6f4`,\"--shiki-dark\":`#cdd6f4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:`INSPECT `}),_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:`TABLE`}),_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:` movr.public.vehicles `}),_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:`WITH`}),_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:` OPTIONS `}),_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:`INDEX`}),_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:` (vehicles_auto_index_fk_city_ref_users);`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes catppuccin-mocha catppuccin-mocha`,style:{backgroundColor:`#1e1e2e`,\"--shiki-dark-bg\":`#1e1e2e`,color:`#cdd6f4`,\"--shiki-dark\":`#cdd6f4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`NOTICE: waiting for INSPECT job to complete: 1141477560713150465`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If the statement is canceled, the job will continue in the background.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(Heading,{level:`3`,id:`run-a-uniqueness-check-on-a-regional-by-row-primary-index`,children:[`Run a uniqueness check on a `,_jsx(_components.code,{children:`REGIONAL BY ROW`}),` primary index`]}),`\n`,_jsxs(_components.p,{children:[`New in v26.2: On supported `,_jsx(_components.a,{href:`/docs/v26.2/alter-table`,children:_jsx(_components.code,{children:`REGIONAL BY ROW`})}),` tables, `,_jsx(_components.code,{children:`INSPECT`}),` will run uniqueness checks on the primary index to detect duplicate unique values across regions. This will also run any other checks supported by `,_jsx(_components.code,{children:`INSPECT`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes catppuccin-mocha catppuccin-mocha`,style:{backgroundColor:`#1e1e2e`,\"--shiki-dark-bg\":`#1e1e2e`,color:`#cdd6f4`,\"--shiki-dark\":`#cdd6f4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:`INSPECT `}),_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:`TABLE`}),_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:` movr.public.users;`})]}),`\n`]})})}),`\n`,_jsxs(Heading,{level:`3`,id:`inspect-a-table-without-waiting-for-completion`,children:[_jsx(_components.code,{children:`INSPECT`}),` a table without waiting for completion`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes catppuccin-mocha catppuccin-mocha`,style:{backgroundColor:`#1e1e2e`,\"--shiki-dark-bg\":`#1e1e2e`,color:`#cdd6f4`,\"--shiki-dark\":`#cdd6f4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:`INSPECT `}),_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:`TABLE`}),_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:` movr.public.vehicles `}),_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:`WITH`}),_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:` OPTIONS DETACHED;`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes catppuccin-mocha catppuccin-mocha`,style:{backgroundColor:`#1e1e2e`,\"--shiki-dark-bg\":`#1e1e2e`,color:`#cdd6f4`,\"--shiki-dark\":`#cdd6f4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`NOTICE: INSPECT job 1141773037670301697 running in the background`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(Heading,{level:`3`,id:`inspect-at-a-specific-timestamp`,children:[_jsx(_components.code,{children:`INSPECT`}),` at a specific timestamp`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes catppuccin-mocha catppuccin-mocha`,style:{backgroundColor:`#1e1e2e`,\"--shiki-dark-bg\":`#1e1e2e`,color:`#cdd6f4`,\"--shiki-dark\":`#cdd6f4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:`INSPECT `}),_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:`TABLE`}),_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:` movr.public.users `}),_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:`AS`}),_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:` OF `}),_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:`SYSTEM`}),_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:` TIME`}),_jsx(_components.span,{style:{color:`#A6E3A1`,\"--shiki-dark\":`#A6E3A1`},children:` '-10s'`}),_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes catppuccin-mocha catppuccin-mocha`,style:{backgroundColor:`#1e1e2e`,\"--shiki-dark-bg\":`#1e1e2e`,color:`#cdd6f4`,\"--shiki-dark\":`#cdd6f4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`NOTICE: waiting for INSPECT job to complete: 1141477013029322753`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If the statement is canceled, the job will continue in the background.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(Heading,{level:`3`,id:`checking-inspect-job-status`,children:[`Checking `,_jsx(_components.code,{children:`INSPECT`}),` job status`]}),`\n`,_jsxs(_components.p,{children:[`When you issue the `,_jsx(_components.code,{children:`INSPECT`}),` statement, a `,_jsx(_components.code,{children:`NOTICE`}),` message is returned to the client showing the job ID:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes catppuccin-mocha catppuccin-mocha`,style:{backgroundColor:`#1e1e2e`,\"--shiki-dark-bg\":`#1e1e2e`,color:`#cdd6f4`,\"--shiki-dark\":`#cdd6f4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`NOTICE: waiting for INSPECT job to complete: 1141477013029322753`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If the statement is canceled, the job will continue in the background.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`You can check the status of the `,_jsx(_components.code,{children:`INSPECT`}),` `,_jsx(_components.a,{href:`/docs/v26.2/show-jobs`,children:`job`}),` using a statement like the following:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes catppuccin-mocha catppuccin-mocha`,style:{backgroundColor:`#1e1e2e`,\"--shiki-dark-bg\":`#1e1e2e`,color:`#cdd6f4`,\"--shiki-dark\":`#cdd6f4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:`SELECT`}),_jsx(_components.span,{style:{color:`#94E2D5`,\"--shiki-dark\":`#94E2D5`},children:` *`}),_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:` FROM`}),_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:` [SHOW JOBS] `}),_jsx(_components.span,{style:{color:`#CBA6F7`,\"--shiki-dark\":`#CBA6F7`},children:`WHERE`}),_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:` job_id `}),_jsx(_components.span,{style:{color:`#94E2D5`,\"--shiki-dark\":`#94E2D5`},children:`=`}),_jsx(_components.span,{style:{color:`#FAB387`,\"--shiki-dark\":`#FAB387`},children:` 1141477013029322753`}),_jsx(_components.span,{style:{color:`#CDD6F4`,\"--shiki-dark\":`#CDD6F4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes catppuccin-mocha catppuccin-mocha`,style:{backgroundColor:`#1e1e2e`,\"--shiki-dark-bg\":`#1e1e2e`,color:`#cdd6f4`,\"--shiki-dark\":`#cdd6f4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` job_id | job_type | description | user_name | status | running_status | created | started | finished | modified | fraction_completed | error | coordinator_id`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`----------------------+----------+---------------------------------+-----------+-----------+----------------+------------------------+------------------------+------------------------+------------------------+--------------------+-------+-----------------`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 1141477013029322753 | INSPECT | INSPECT TABLE movr.public.users | node | succeeded | NULL | 2026-01-14 20:12:19+00 | 2026-01-14 20:12:19+00 | 2026-01-14 20:12:19+00 | 2026-01-14 20:12:19+00 | 1 | | 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(Heading,{level:`3`,id:`viewing-inspect-results`,children:[`Viewing `,_jsx(_components.code,{children:`INSPECT`}),` results`]}),`\n`,_jsxs(_components.p,{children:[`To view errors found by an inspection job, use `,_jsx(_components.a,{href:`/docs/v26.2/show-inspect-errors`,children:_jsx(_components.code,{children:`SHOW INSPECT ERRORS`})}),`. Errors are stored in an internal system table and are subject to a 90 day retention policy.`]}),`\n`,_jsx(Heading,{level:`2`,id:`see-also`,children:`See also`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/docs/v26.2/show-inspect-errors`,children:_jsx(_components.code,{children:`SHOW INSPECT ERRORS`})})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/docs/v26.2/show-jobs`,children:_jsx(_components.code,{children:`SHOW JOBS`})})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/docs/v26.2/ui-jobs-page`,children:`Jobs page in DB Console`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/docs/v26.2/as-of-system-time`,children:_jsx(_components.code,{children:`AS OF SYSTEM TIME`})})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/docs/v26.2/security-reference/authorization#supported-privileges`,children:`Supported privileges`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"catppuccin-mocha","dark":"catppuccin-mocha"}},"config":{},"pageMetadata":{"title":"INSPECT","sidebarTitle":"INSPECT","old_description":"Use the INSPECT statement to run data consistency validation checks against tables or databases.","canonical":"https://docs.cockroachlabs.com/docs/stable/inspect","description":null,"href":"/docs/v26.2/inspect"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Required privileges","slug":"required-privileges","depth":2,"children":[]},{"title":"Synopsis","slug":"synopsis","depth":2,"children":[]},{"title":"Parameters","slug":"parameters","depth":2,"children":[{"title":"Options","slug":"options","depth":3,"children":[]}]},{"title":"Considerations","slug":"considerations","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"INSPECT a table (all supported checks)","slug":"inspect-a-table-all-supported-checks","depth":3,"children":[]},{"title":"INSPECT a table for specific indexes","slug":"inspect-a-table-for-specific-indexes","depth":3,"children":[]},{"title":"Run a uniqueness check on a REGIONAL BY ROW primary index","slug":"run-a-uniqueness-check-on-a-regional-by-row-primary-index","depth":3,"children":[]},{"title":"INSPECT a table without waiting for completion","slug":"inspect-a-table-without-waiting-for-completion","depth":3,"children":[]},{"title":"INSPECT at a specific timestamp","slug":"inspect-at-a-specific-timestamp","depth":3,"children":[]},{"title":"Checking INSPECT job status","slug":"checking-inspect-job-status","depth":3,"children":[]},{"title":"Viewing INSPECT results","slug":"viewing-inspect-results","depth":3,"children":[]}]},{"title":"See also","slug":"see-also","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/cockroachlabs/4695317e415d4eba/kapa.js","/_mintlify/custom/cockroachlabs/40fb45a3cfe42c92/copy-code-prompt.js","/_mintlify/custom/cockroachlabs/3f343c9e8c40397a/collapse-nav.js"],"subdomain":"cockroachlabs","siteName":"CockroachDB","title":"INSPECT - CockroachDB","navMaps":{"firstHrefInVersion":{"v26.4":{"href":"/docs/stable/inspect","matchLevel":1},"v26.3":{"href":"/docs/v26.3/inspect","matchLevel":1,"canonicalOverride":true},"v26.2":{"href":"/docs/v26.2/inspect","matchLevel":0},"v26.1":{"href":"/docs/v26.1/inspect","matchLevel":1,"canonicalOverride":true},"v25.4":{"href":"/docs/v25.4","matchLevel":4},"v25.3":{"href":"/docs/v25.3","matchLevel":4},"v25.2":{"href":"/docs/v25.2","matchLevel":4},"v25.1":{"href":"/docs/v25.1","matchLevel":4},"v24.3":{"href":"/docs/v24.3","matchLevel":4},"v24.1":{"href":"/docs/v24.1","matchLevel":4},"v23.2":{"href":"/docs/v23.2","matchLevel":4},"v23.1":{"href":"/docs/v23.1","matchLevel":4}},"firstHrefInLanguage":{}},"lastModified":"2026-11-11T19:18:18.857Z","originalFileLocation":"docs/v26.2/inspect.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"CockroachDB\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cockroachlabs/c9BlkJ0WBi2Ma7w-/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cockroachlabs/c9BlkJ0WBi2Ma7w-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cockroachlabs/c9BlkJ0WBi2Ma7w-/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cockroachlabs/c9BlkJ0WBi2Ma7w-/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cockroachlabs/c9BlkJ0WBi2Ma7w-/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cockroachlabs/c9BlkJ0WBi2Ma7w-/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cockroachlabs/c9BlkJ0WBi2Ma7w-/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cockroachlabs/c9BlkJ0WBi2Ma7w-/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cockroachlabs/c9BlkJ0WBi2Ma7w-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"INSPECT - CockroachDB\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CockroachDB\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cockroachlabs.com/docs/stable/inspect\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cockroachlabs.mintlify.site/_mintlify/api/og/v2?division=Statements\u0026amp;title=INSPECT\u0026amp;theme=4aeed7318cb28bd50868adb3\u0026amp;signature=541981055bec2f00908ec504dd71582878bf1964a69d2721a0f8522e6424e50c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"INSPECT - CockroachDB\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cockroachlabs.mintlify.site/_mintlify/api/og/v2?division=Statements\u0026amp;title=INSPECT\u0026amp;theme=4aeed7318cb28bd50868adb3\u0026amp;signature=541981055bec2f00908ec504dd71582878bf1964a69d2721a0f8522e6424e50c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cockroachlabs/c9BlkJ0WBi2Ma7w-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CockroachDB\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9059FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cockroachlabs.com/docs/stable/inspect\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/v26.2/inspect.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cockroachlabs.com/#organization\",\"name\":\"CockroachDB\",\"url\":\"https://docs.cockroachlabs.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cockroachlabs/4WvUnbVuGZfqM4kW/images/CockroachLabs_Wordmark_Black.png?fit=max\u0026auto=format\u0026n=4WvUnbVuGZfqM4kW\u0026q=85\u0026s=54ccae625c9986bf1df8ddc7b2c571f0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cockroachlabs.com#website\",\"name\":\"CockroachDB\",\"url\":\"https://docs.cockroachlabs.com\",\"publisher\":{\"@id\":\"https://docs.cockroachlabs.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cockroachlabs.com/docs/stable/inspect#webpage\",\"url\":\"https://docs.cockroachlabs.com/docs/stable/inspect\",\"name\":\"INSPECT\",\"dateModified\":\"2026-11-11T19:18:18.857Z\",\"isPartOf\":{\"@id\":\"https://docs.cockroachlabs.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cockroachlabs.com/docs/stable/inspect#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cockroachlabs.com/docs/stable/inspect#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Statements\",\"item\":\"https://docs.cockroachlabs.com/docs/v26.2/sql-statements\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"INSPECT\",\"item\":\"https://docs.cockroachlabs.com/docs/stable/inspect\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.cockroachlabs.com/docs/stable/inspect#article\",\"headline\":\"INSPECT\",\"name\":\"INSPECT\",\"url\":\"https://docs.cockroachlabs.com/docs/stable/inspect\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cockroachlabs.com/docs/stable/inspect#webpage\"},\"dateModified\":\"2026-11-11T19:18:18.857Z\",\"publisher\":{\"@id\":\"https://docs.cockroachlabs.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cockroachlabs.com#website\"}}]}\u003c/script>","agentPointerHref":"/docs/v26.2/inspect.md","siteName":"CockroachDB","nav":{"global":{"anchors":[{"anchor":"University","icon":"graduation-cap","href":"https://learn.cockroachlabs.com/"}]},"products":[{"product":"Cockroach Continuum Cloud","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cockroachlabs/images/continuum/cockroachlabs-symbol.svg","description":"The agentic database cloud","pages":[{"title":"Cockroach Continuum Cloud","href":"/docs/continuum"}]},{"product":"CockroachDB","icon":"database","description":"Distributed SQL database","versions":[{"version":"v26.4","default":true,"tag":"Stable","pages":[{"title":"v26.4","href":"/docs/stable/inspect"}]},{"version":"v26.3","pages":[{"title":"v26.3","href":"/docs/v26.3/inspect"}]},{"version":"v26.2","tabs":[{"tab":"Docs","icon":"book-open","pages":[{"title":"Docs","href":"/docs/v26.2"}]},{"tab":"Migrate","icon":"arrow-right-arrow-left","pages":[{"title":"Migrate","href":"/docs/molt/migration-overview"}]},{"tab":"SQL","icon":"code","pages":[{"group":"Statements","pages":[{"title":"SQL Statements","sidebarTitle":"Overview","href":"/docs/v26.2/sql-statements"},{"title":"ALTER BACKUP","sidebarTitle":"ALTER BACKUP","href":"/docs/v26.2/alter-backup"},{"title":"ALTER BACKUP SCHEDULE","sidebarTitle":"ALTER BACKUP SCHEDULE","href":"/docs/v26.2/alter-backup-schedule"},{"title":"ALTER CHANGEFEED","sidebarTitle":"ALTER CHANGEFEED","href":"/docs/v26.2/alter-changefeed"},{"title":"ALTER DATABASE","sidebarTitle":"ALTER DATABASE","href":"/docs/v26.2/alter-database"},{"title":"ALTER DEFAULT PRIVILEGES","sidebarTitle":"ALTER DEFAULT PRIVILEGES","href":"/docs/v26.2/alter-default-privileges"},{"title":"ALTER EXTERNAL CONNECTION","sidebarTitle":"ALTER EXTERNAL CONNECTION","href":"/docs/v26.2/alter-external-connection"},{"title":"ALTER FUNCTION","sidebarTitle":"ALTER FUNCTION","href":"/docs/v26.2/alter-function"},{"title":"ALTER INDEX","sidebarTitle":"ALTER INDEX","href":"/docs/v26.2/alter-index"},{"title":"ALTER JOB","sidebarTitle":"ALTER JOB","href":"/docs/v26.2/alter-job"},{"title":"ALTER PARTITION","sidebarTitle":"ALTER PARTITION","href":"/docs/v26.2/alter-partition"},{"title":"ALTER POLICY","sidebarTitle":"ALTER POLICY","href":"/docs/v26.2/alter-policy"},{"title":"ALTER PROCEDURE","sidebarTitle":"ALTER PROCEDURE","href":"/docs/v26.2/alter-procedure"},{"title":"ALTER RANGE","sidebarTitle":"ALTER RANGE","href":"/docs/v26.2/alter-range"},{"title":"ALTER ROLE","sidebarTitle":"ALTER ROLE","href":"/docs/v26.2/alter-role"},{"title":"ALTER SCHEMA","sidebarTitle":"ALTER SCHEMA","href":"/docs/v26.2/alter-schema"},{"title":"ALTER SEQUENCE","sidebarTitle":"ALTER SEQUENCE","href":"/docs/v26.2/alter-sequence"},{"title":"ALTER TABLE","sidebarTitle":"ALTER TABLE","href":"/docs/v26.2/alter-table"},{"title":"ALTER TYPE","sidebarTitle":"ALTER TYPE","href":"/docs/v26.2/alter-type"},{"title":"ALTER USER","sidebarTitle":"ALTER USER","href":"/docs/v26.2/alter-user"},{"title":"ALTER VIEW","sidebarTitle":"ALTER VIEW","href":"/docs/v26.2/alter-view"},{"title":"ALTER VIRTUAL CLUSTER","sidebarTitle":"ALTER VIRTUAL CLUSTER","href":"/docs/v26.2/alter-virtual-cluster"},{"title":"BACKUP","sidebarTitle":"BACKUP","href":"/docs/v26.2/backup"},{"title":"BEGIN","sidebarTitle":"BEGIN","href":"/docs/v26.2/begin-transaction"},{"title":"CALL","sidebarTitle":"CALL","href":"/docs/v26.2/call"},{"title":"CANCEL JOB","sidebarTitle":"CANCEL JOB","href":"/docs/v26.2/cancel-job"},{"title":"CANCEL QUERY","sidebarTitle":"CANCEL QUERY","href":"/docs/v26.2/cancel-query"},{"title":"CANCEL SESSION","sidebarTitle":"CANCEL SESSION","href":"/docs/v26.2/cancel-session"},{"title":"CHECK EXTERNAL CONNECTION","sidebarTitle":"CHECK EXTERNAL CONNECTION","href":"/docs/v26.2/check-external-connection"},{"title":"COMMENT ON","sidebarTitle":"COMMENT ON","href":"/docs/v26.2/comment-on"},{"title":"COMMIT","sidebarTitle":"COMMIT","href":"/docs/v26.2/commit-transaction"},{"title":"COPY","sidebarTitle":"COPY","href":"/docs/v26.2/copy"},{"title":"CREATE CHANGEFEED","sidebarTitle":"CREATE CHANGEFEED","href":"/docs/v26.2/create-changefeed"},{"title":"CREATE DATABASE","sidebarTitle":"CREATE DATABASE","href":"/docs/v26.2/create-database"},{"title":"CREATE EXTERNAL CONNECTION","sidebarTitle":"CREATE EXTERNAL CONNECTION","href":"/docs/v26.2/create-external-connection"},{"title":"CREATE FUNCTION","sidebarTitle":"CREATE FUNCTION","href":"/docs/v26.2/create-function"},{"title":"CREATE INDEX","sidebarTitle":"CREATE INDEX","href":"/docs/v26.2/create-index"},{"title":"CREATE LOGICALLY REPLICATED","sidebarTitle":"CREATE LOGICALLY REPLICATED","href":"/docs/v26.2/create-logically-replicated"},{"title":"CREATE LOGICAL REPLICATION STREAM","sidebarTitle":"CREATE LOGICAL REPLICATION STREAM","href":"/docs/v26.2/create-logical-replication-stream"},{"title":"CREATE POLICY","sidebarTitle":"CREATE POLICY","href":"/docs/v26.2/create-policy"},{"title":"CREATE PROCEDURE","sidebarTitle":"CREATE PROCEDURE","href":"/docs/v26.2/create-procedure"},{"title":"CREATE ROLE","sidebarTitle":"CREATE ROLE","href":"/docs/v26.2/create-role"},{"title":"CREATE SCHEDULE FOR BACKUP","sidebarTitle":"CREATE SCHEDULE FOR BACKUP","href":"/docs/v26.2/create-schedule-for-backup"},{"title":"CREATE SCHEDULE FOR CHANGEFEED","sidebarTitle":"CREATE SCHEDULE FOR CHANGEFEED","href":"/docs/v26.2/create-schedule-for-changefeed"},{"title":"CREATE SCHEMA","sidebarTitle":"CREATE SCHEMA","href":"/docs/v26.2/create-schema"},{"title":"CREATE SEQUENCE","sidebarTitle":"CREATE SEQUENCE","href":"/docs/v26.2/create-sequence"},{"title":"CREATE STATISTICS","sidebarTitle":"CREATE STATISTICS","href":"/docs/v26.2/create-statistics"},{"title":"CREATE TABLE","sidebarTitle":"CREATE TABLE","href":"/docs/v26.2/create-table"},{"title":"CREATE TABLE AS","sidebarTitle":"CREATE TABLE AS","href":"/docs/v26.2/create-table-as"},{"title":"CREATE TRIGGER","sidebarTitle":"CREATE TRIGGER","href":"/docs/v26.2/create-trigger"},{"title":"CREATE TYPE","sidebarTitle":"CREATE TYPE","href":"/docs/v26.2/create-type"},{"title":"CREATE USER","sidebarTitle":"CREATE USER","href":"/docs/v26.2/create-user"},{"title":"CREATE VIEW","sidebarTitle":"CREATE VIEW","href":"/docs/v26.2/create-view"},{"title":"CREATE VIRTUAL CLUSTER","sidebarTitle":"CREATE VIRTUAL CLUSTER","href":"/docs/v26.2/create-virtual-cluster"},{"title":"DELETE","sidebarTitle":"DELETE","href":"/docs/v26.2/delete"},{"title":"DO","sidebarTitle":"DO","href":"/docs/v26.2/do"},{"title":"DROP DATABASE","sidebarTitle":"DROP DATABASE","href":"/docs/v26.2/drop-database"},{"title":"DROP EXTERNAL CONNECTION","sidebarTitle":"DROP EXTERNAL CONNECTION","href":"/docs/v26.2/drop-external-connection"},{"title":"DROP FUNCTION","sidebarTitle":"DROP FUNCTION","href":"/docs/v26.2/drop-function"},{"title":"DROP OWNED BY","sidebarTitle":"DROP OWNED BY","href":"/docs/v26.2/drop-owned-by"},{"title":"DROP POLICY","sidebarTitle":"DROP POLICY","href":"/docs/v26.2/drop-policy"},{"title":"DROP TRIGGER","sidebarTitle":"DROP TRIGGER","href":"/docs/v26.2/drop-trigger"},{"title":"DROP TYPE","sidebarTitle":"DROP TYPE","href":"/docs/v26.2/drop-type"},{"title":"DROP INDEX","sidebarTitle":"DROP INDEX","href":"/docs/v26.2/drop-index"},{"title":"DROP PROCEDURE","sidebarTitle":"DROP PROCEDURE","href":"/docs/v26.2/drop-procedure"},{"title":"DROP ROLE","sidebarTitle":"DROP ROLE","href":"/docs/v26.2/drop-role"},{"title":"DROP SCHEDULES","sidebarTitle":"DROP SCHEDULES","href":"/docs/v26.2/drop-schedules"},{"title":"DROP SCHEMA","sidebarTitle":"DROP SCHEMA","href":"/docs/v26.2/drop-schema"},{"title":"DROP SEQUENCE","sidebarTitle":"DROP SEQUENCE","href":"/docs/v26.2/drop-sequence"},{"title":"DROP TABLE","sidebarTitle":"DROP TABLE","href":"/docs/v26.2/drop-table"},{"title":"DROP USER","sidebarTitle":"DROP USER","href":"/docs/v26.2/drop-user"},{"title":"DROP VIEW","sidebarTitle":"DROP VIEW","href":"/docs/v26.2/drop-view"},{"title":"DROP VIRTUAL CLUSTER","sidebarTitle":"DROP VIRTUAL CLUSTER","href":"/docs/v26.2/drop-virtual-cluster"},{"title":"EXPERIMENTAL CHANGEFEED FOR","sidebarTitle":"EXPERIMENTAL CHANGEFEED FOR","href":"/docs/v26.2/changefeed-for"},{"title":"EXPLAIN","sidebarTitle":"EXPLAIN","href":"/docs/v26.2/explain"},{"title":"EXPLAIN ANALYZE","sidebarTitle":"EXPLAIN ANALYZE","href":"/docs/v26.2/explain-analyze"},{"title":"EXPORT","sidebarTitle":"EXPORT","href":"/docs/v26.2/export"},{"title":"GRANT","sidebarTitle":"GRANT","href":"/docs/v26.2/grant"},{"title":"IMPORT INTO","sidebarTitle":"IMPORT INTO","href":"/docs/v26.2/import-into"},{"title":"INSERT","sidebarTitle":"INSERT","description":null,"href":"/docs/v26.2/insert"},{"title":"INSPECT","sidebarTitle":"INSPECT","href":"/docs/v26.2/inspect"},{"title":"JOIN expressions","sidebarTitle":"JOIN","description":null,"href":"/docs/v26.2/joins"},{"title":"Limit Query Results","sidebarTitle":"LIMIT/OFFSET","href":"/docs/v26.2/limit-offset"},{"title":"ORDER BY","sidebarTitle":"ORDER BY","href":"/docs/v26.2/order-by"},{"title":"PAUSE JOB","sidebarTitle":"PAUSE JOB","href":"/docs/v26.2/pause-job"},{"title":"PAUSE SCHEDULES","sidebarTitle":"PAUSE SCHEDULES","href":"/docs/v26.2/pause-schedules"},{"title":"REASSIGN OWNED","sidebarTitle":"REASSIGN OWNED","href":"/docs/v26.2/reassign-owned"},{"title":"REFRESH","sidebarTitle":"REFRESH","href":"/docs/v26.2/refresh"},{"title":"RELEASE SAVEPOINT","sidebarTitle":"RELEASE SAVEPOINT","href":"/docs/v26.2/release-savepoint"},{"title":"RESET CLUSTER SETTING","sidebarTitle":"RESET CLUSTER SETTING","href":"/docs/v26.2/reset-cluster-setting"},{"title":"RESET {session variable}","sidebarTitle":"RESET {session variable}","href":"/docs/v26.2/reset-vars"},{"title":"RESTORE","sidebarTitle":"RESTORE","href":"/docs/v26.2/restore"},{"title":"RESUME JOB","sidebarTitle":"RESUME JOB","href":"/docs/v26.2/resume-job"},{"title":"RESUME SCHEDULES","sidebarTitle":"RESUME SCHEDULES","href":"/docs/v26.2/resume-schedules"},{"title":"REVOKE","sidebarTitle":"REVOKE","href":"/docs/v26.2/revoke"},{"title":"ROLLBACK","sidebarTitle":"ROLLBACK","href":"/docs/v26.2/rollback-transaction"},{"title":"SAVEPOINT","sidebarTitle":"SAVEPOINT","href":"/docs/v26.2/savepoint"},{"title":"Simple SELECT Clause","sidebarTitle":"SELECT","href":"/docs/v26.2/select-clause"},{"title":"FOR UPDATE and FOR SHARE","sidebarTitle":"FOR UPDATE and FOR SHARE","href":"/docs/v26.2/select-for-update"},{"title":"SET CLUSTER SETTING","sidebarTitle":"SET CLUSTER SETTING","href":"/docs/v26.2/set-cluster-setting"},{"title":"SET {session variable}","sidebarTitle":"SET {session variable}","href":"/docs/v26.2/set-vars"},{"title":"SET TRANSACTION","sidebarTitle":"SET TRANSACTION","href":"/docs/v26.2/set-transaction"},{"title":"SHOW BACKUP","sidebarTitle":"SHOW BACKUP","href":"/docs/v26.2/show-backup"},{"title":"SHOW CLUSTER SETTING","sidebarTitle":"SHOW CLUSTER SETTING","href":"/docs/v26.2/show-cluster-setting"},{"title":"SHOW COLUMNS","sidebarTitle":"SHOW COLUMNS","href":"/docs/v26.2/show-columns"},{"title":"SHOW CONSTRAINTS","sidebarTitle":"SHOW CONSTRAINTS","href":"/docs/v26.2/show-constraints"},{"title":"SHOW CREATE","sidebarTitle":"SHOW CREATE","href":"/docs/v26.2/show-create"},{"title":"SHOW CREATE EXTERNAL CONNECTION","sidebarTitle":"SHOW CREATE EXTERNAL CONNECTION","href":"/docs/v26.2/show-create-external-connection"},{"title":"SHOW CREATE SCHEDULE","sidebarTitle":"SHOW CREATE SCHEDULE","href":"/docs/v26.2/show-create-schedule"},{"title":"SHOW DATABASES","sidebarTitle":"SHOW DATABASES","href":"/docs/v26.2/show-databases"},{"title":"SHOW DEFAULT PRIVILEGES","sidebarTitle":"SHOW DEFAULT PRIVILEGES","href":"/docs/v26.2/show-default-privileges"},{"title":"SHOW DEFAULT SESSION VARIABLES FOR ROLE","sidebarTitle":"SHOW DEFAULT SESSION VARIABLES FOR ROLE","href":"/docs/v26.2/show-default-session-variables-for-role"},{"title":"SHOW ENUMS","sidebarTitle":"SHOW ENUMS","href":"/docs/v26.2/show-enums"},{"title":"SHOW EXTERNAL CONNECTION","sidebarTitle":"SHOW EXTERNAL CONNECTION","href":"/docs/v26.2/show-external-connection"},{"title":"SHOW FULL TABLE SCANS","sidebarTitle":"SHOW FULL TABLE SCANS","href":"/docs/v26.2/show-full-table-scans"},{"title":"SHOW GRANTS","sidebarTitle":"SHOW GRANTS","href":"/docs/v26.2/show-grants"},{"title":"SHOW INDEX","sidebarTitle":"SHOW INDEX","href":"/docs/v26.2/show-index"},{"title":"SHOW INSPECT ERRORS","sidebarTitle":"SHOW INSPECT ERRORS","href":"/docs/v26.2/show-inspect-errors"},{"title":"SHOW JOBS","sidebarTitle":"SHOW JOBS","href":"/docs/v26.2/show-jobs"},{"title":"SHOW LOCALITY","sidebarTitle":"SHOW LOCALITY","href":"/docs/v26.2/show-locality"},{"title":"SHOW LOGICAL REPLICATION JOBS","sidebarTitle":"SHOW LOGICAL REPLICATION JOBS","href":"/docs/v26.2/show-logical-replication-jobs"},{"title":"SHOW PARTITIONS","sidebarTitle":"SHOW PARTITIONS","href":"/docs/v26.2/show-partitions"},{"title":"SHOW POLICIES","sidebarTitle":"SHOW POLICIES","href":"/docs/v26.2/show-policies"},{"title":"SHOW RANGES","sidebarTitle":"SHOW RANGES","href":"/docs/v26.2/show-ranges"},{"title":"SHOW RANGE FOR ROW","sidebarTitle":"SHOW RANGE FOR ROW","href":"/docs/v26.2/show-range-for-row"},{"title":"SHOW REGIONS","sidebarTitle":"SHOW REGIONS","href":"/docs/v26.2/show-regions"},{"title":"SHOW {session variable}","sidebarTitle":"SHOW {session variable}","href":"/docs/v26.2/show-vars"},{"title":"SHOW SUPER REGIONS","sidebarTitle":"SHOW SUPER REGIONS","href":"/docs/v26.2/show-super-regions"},{"title":"SHOW SYSTEM GRANTS","sidebarTitle":"SHOW SYSTEM GRANTS","href":"/docs/v26.2/show-system-grants"},{"title":"SHOW ROLES","sidebarTitle":"SHOW ROLES","href":"/docs/v26.2/show-roles"},{"title":"SHOW SCHEDULES","sidebarTitle":"SHOW SCHEDULES","href":"/docs/v26.2/show-schedules"},{"title":"SHOW SCHEMAS","sidebarTitle":"SHOW SCHEMAS","href":"/docs/v26.2/show-schemas"},{"title":"SHOW SEQUENCES","sidebarTitle":"SHOW SEQUENCES","href":"/docs/v26.2/show-sequences"},{"title":"SHOW SESSIONS","sidebarTitle":"SHOW SESSIONS","href":"/docs/v26.2/show-sessions"},{"title":"SHOW STATEMENT HINTS","sidebarTitle":"SHOW STATEMENT HINTS","href":"/docs/v26.2/show-statement-hints"},{"title":"SHOW STATEMENTS","sidebarTitle":"SHOW STATEMENTS","href":"/docs/v26.2/show-statements"},{"title":"SHOW STATISTICS","sidebarTitle":"SHOW STATISTICS","href":"/docs/v26.2/show-statistics"},{"title":"SHOW SAVEPOINT STATUS","sidebarTitle":"SHOW SAVEPOINT STATUS","href":"/docs/v26.2/show-savepoint-status"},{"title":"SHOW TABLES","sidebarTitle":"SHOW TABLES","href":"/docs/v26.2/show-tables"},{"title":"SHOW TRACE FOR SESSION","sidebarTitle":"SHOW TRACE FOR SESSION","href":"/docs/v26.2/show-trace"},{"title":"SHOW TRANSACTIONS","sidebarTitle":"SHOW TRANSACTIONS","href":"/docs/v26.2/show-transactions"},{"title":"SHOW TRIGGERS","sidebarTitle":"SHOW TRIGGERS","href":"/docs/v26.2/show-triggers"},{"title":"SHOW TYPES","sidebarTitle":"SHOW TYPES","href":"/docs/v26.2/show-types"},{"title":"SHOW USERS","sidebarTitle":"SHOW USERS","href":"/docs/v26.2/show-users"},{"title":"SHOW VIRTUAL CLUSTER","sidebarTitle":"SHOW VIRTUAL CLUSTER","href":"/docs/v26.2/show-virtual-cluster"},{"title":"SHOW ZONE CONFIGURATIONS","sidebarTitle":"SHOW ZONE CONFIGURATIONS","href":"/docs/v26.2/show-zone-configurations"},{"title":"TRUNCATE","sidebarTitle":"TRUNCATE","href":"/docs/v26.2/truncate"},{"title":"UPDATE","sidebarTitle":"UPDATE","href":"/docs/v26.2/update"},{"title":"UPSERT","sidebarTitle":"UPSERT","href":"/docs/v26.2/upsert"},{"title":"WITH (storage parameter)","sidebarTitle":"WITH {storage parameter}","href":"/docs/v26.2/with-storage-parameter"}]},{"group":"Syntax","pages":[{"title":"Keywords \u0026 Identifiers","href":"/docs/v26.2/keywords-and-identifiers"},{"title":"Constants","href":"/docs/v26.2/sql-constants"},{"title":"Selection Queries","href":"/docs/v26.2/selection-queries"},{"title":"Cursors","href":"/docs/v26.2/cursors"},{"title":"Table Expressions","href":"/docs/v26.2/table-expressions"},{"title":"Common Table Expressions (WITH Queries)","sidebarTitle":"Common Table Expressions","href":"/docs/v26.2/common-table-expressions"},{"title":"JSONPath Queries","href":"/docs/v26.2/jsonpath"},{"title":"Name Resolution","href":"/docs/v26.2/sql-name-resolution"},{"title":"NULL Handling","sidebarTitle":"NULL Handling","href":"/docs/v26.2/null-handling"},{"title":"Scalar Expressions","href":"/docs/v26.2/scalar-expressions"},{"title":"User-Defined Functions","href":"/docs/v26.2/user-defined-functions"},{"title":"Stored Procedures","href":"/docs/v26.2/stored-procedures"},{"title":"Triggers","href":"/docs/v26.2/triggers"},{"title":"Window Functions","href":"/docs/v26.2/window-functions"},{"title":"SQL Grammar","sidebarTitle":"Full SQL Grammar","href":"/docs/v26.2/sql-grammar"}]},{"group":"Data Types","pages":[{"title":"Data Types","sidebarTitle":"Overview","href":"/docs/v26.2/data-types"},{"title":"ARRAY","sidebarTitle":"ARRAY","href":"/docs/v26.2/array"},{"title":"BIT","sidebarTitle":"BIT","href":"/docs/v26.2/bit"},{"title":"BOOL","sidebarTitle":"BOOL","href":"/docs/v26.2/bool"},{"title":"BYTES","sidebarTitle":"BYTES","href":"/docs/v26.2/bytes"},{"title":"CITEXT","sidebarTitle":"CITEXT","href":"/docs/v26.2/citext"},{"title":"COLLATE","sidebarTitle":"COLLATE","href":"/docs/v26.2/collate"},{"title":"DATE","sidebarTitle":"DATE","href":"/docs/v26.2/date"},{"title":"DECIMAL","sidebarTitle":"DECIMAL","href":"/docs/v26.2/decimal"},{"title":"ENUM","sidebarTitle":"ENUM","href":"/docs/v26.2/enum"},{"title":"FLOAT","sidebarTitle":"FLOAT","href":"/docs/v26.2/float"},{"title":"INET","sidebarTitle":"INET","href":"/docs/v26.2/inet"},{"title":"INT","sidebarTitle":"INT","href":"/docs/v26.2/int"},{"title":"INTERVAL","sidebarTitle":"INTERVAL","href":"/docs/v26.2/interval"},{"title":"JSONB","sidebarTitle":"JSONB","href":"/docs/v26.2/jsonb"},{"title":"LTREE","sidebarTitle":"LTREE","href":"/docs/v26.2/ltree"},{"title":"OID","sidebarTitle":"OID","href":"/docs/v26.2/oid"},{"title":"SERIAL","sidebarTitle":"SERIAL","href":"/docs/v26.2/serial"},{"title":"STRING","sidebarTitle":"STRING","href":"/docs/v26.2/string"},{"title":"TIME / TIMETZ","sidebarTitle":"TIME","href":"/docs/v26.2/time"},{"title":"TIMESTAMP / TIMESTAMPTZ","sidebarTitle":"TIMESTAMP","href":"/docs/v26.2/timestamp"},{"title":"TSQUERY","sidebarTitle":"TSQUERY","href":"/docs/v26.2/tsquery"},{"title":"TSVECTOR","sidebarTitle":"TSVECTOR","href":"/docs/v26.2/tsvector"},{"title":"UUID","sidebarTitle":"UUID","href":"/docs/v26.2/uuid"},{"title":"VECTOR","sidebarTitle":"VECTOR","href":"/docs/v26.2/vector"}]},{"group":"Spatial Data","pages":[{"title":"Spatial Data Overview","sidebarTitle":"Overview","href":"/docs/v26.2/spatial-data-overview"},{"title":"POINT","sidebarTitle":"POINT","href":"/docs/v26.2/point"},{"title":"LINESTRING","sidebarTitle":"LINESTRING","href":"/docs/v26.2/linestring"},{"title":"POLYGON","sidebarTitle":"POLYGON","href":"/docs/v26.2/polygon"},{"title":"MULTIPOINT","sidebarTitle":"MULTIPOINT","href":"/docs/v26.2/multipoint"},{"title":"MULTILINESTRING","sidebarTitle":"MULTILINESTRING","href":"/docs/v26.2/multilinestring"},{"title":"MULTIPOLYGON","sidebarTitle":"MULTIPOLYGON","href":"/docs/v26.2/multipolygon"},{"title":"GEOMETRYCOLLECTION","sidebarTitle":"GEOMETRYCOLLECTION","href":"/docs/v26.2/geometrycollection"},{"title":"Well Known Text","sidebarTitle":"Well Known Text (WKT)","href":"/docs/v26.2/well-known-text"},{"title":"Well Known Binary","sidebarTitle":"Well Known Binary (WKB)","href":"/docs/v26.2/well-known-binary"},{"title":"GeoJSON","href":"/docs/v26.2/geojson"},{"title":"SRID 4326 - longitude and latitude","href":"/docs/v26.2/srid-4326"},{"title":"ST_Contains","sidebarTitle":"ST_Contains","href":"/docs/v26.2/st_contains"},{"title":"ST_Within","sidebarTitle":"ST_Within","href":"/docs/v26.2/st_within"},{"title":"ST_Intersects","sidebarTitle":"ST_Intersects","href":"/docs/v26.2/st_intersects"},{"title":"ST_CoveredBy","sidebarTitle":"ST_CoveredBy","href":"/docs/v26.2/st_coveredby"},{"title":"ST_Covers","sidebarTitle":"ST_Covers","href":"/docs/v26.2/st_covers"},{"title":"ST_Disjoint","sidebarTitle":"ST_Disjoint","href":"/docs/v26.2/st_disjoint"},{"title":"ST_Equals","sidebarTitle":"ST_Equals","href":"/docs/v26.2/st_equals"},{"title":"ST_Overlaps","sidebarTitle":"ST_Overlaps","href":"/docs/v26.2/st_overlaps"},{"title":"ST_Touches","sidebarTitle":"ST_Touches","href":"/docs/v26.2/st_touches"},{"title":"ST_ConvexHull","sidebarTitle":"ST_ConvexHull","href":"/docs/v26.2/st_convexhull"},{"title":"ST_Union","sidebarTitle":"ST_Union","href":"/docs/v26.2/st_union"}]},{"group":"Constraints","pages":[{"title":"Constraints","sidebarTitle":"Overview","href":"/docs/v26.2/constraints"},{"title":"CHECK Constraint","sidebarTitle":"Check","href":"/docs/v26.2/check"},{"title":"Default Value Constraint","sidebarTitle":"Default Value","href":"/docs/v26.2/default-value"},{"title":"Foreign Key Constraint","sidebarTitle":"Foreign Key","href":"/docs/v26.2/foreign-key"},{"title":"NOT NULL constraint","sidebarTitle":"Not Null","href":"/docs/v26.2/not-null"},{"title":"Primary Key Constraint","sidebarTitle":"Primary Key","href":"/docs/v26.2/primary-key"},{"title":"Unique Constraint","sidebarTitle":"Unique","href":"/docs/v26.2/unique"}]},{"title":"Functions and Operators","sidebarTitle":"Functions \u0026 Operators","href":"/docs/v26.2/functions-and-operators"},{"title":"Session Variables","href":"/docs/v26.2/session-variables"},{"title":"PL/pgSQL","href":"/docs/v26.2/plpgsql"}]},{"tab":"Reference","icon":"book","pages":[{"title":"Reference","href":"/docs/v26.2/architecture/glossary"}]},{"tab":"Cluster API","icon":"rocket","pages":[{"title":"Cluster API","href":"/docs/api/cluster"}]},{"tab":"Troubleshoot","icon":"bug","pages":[{"title":"Troubleshoot","href":"/docs/v26.2/troubleshooting-overview"}]}]},{"version":"v26.1","pages":[{"title":"v26.1","href":"/docs/v26.1/inspect"}]},{"version":"v25.4","tag":"LTS","pages":[{"title":"v25.4","href":"/docs/v25.4"}]},{"version":"v25.3","tag":"Unsupported","pages":[{"title":"v25.3","href":"/docs/v25.3"}]},{"version":"v25.2","tag":"LTS","pages":[{"title":"v25.2","href":"/docs/v25.2"}]},{"version":"v25.1","tag":"Unsupported","pages":[{"title":"v25.1","href":"/docs/v25.1"}]},{"version":"v24.3","tag":"LTS","pages":[{"title":"v24.3","href":"/docs/v24.3"}]},{"version":"v24.1","tag":"LTS","pages":[{"title":"v24.1","href":"/docs/v24.1"}]},{"version":"v23.2","tag":"LTS","pages":[{"title":"v23.2","href":"/docs/v23.2"}]},{"version":"v23.1","tag":"Unsupported","pages":[{"title":"v23.1","href":"/docs/v23.1"}]}]},{"product":"Cloud Deployments","icon":"cloud","description":"Fully managed CockroachDB","pages":[{"title":"Cloud Deployments","href":"/docs/cockroachcloud"}]},{"product":"Releases","icon":"list","description":"Version history, support policy \u0026 advisories","pages":[{"title":"Releases","href":"/docs/releases"}]}]},"basePath":"","title":"INSPECT - CockroachDB","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-DTFzvaXJ.js","lightbox-handle-r17bVUz3.js"]}