[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-cockroachdb-molt-fetch":3,"mdc--u9zk5w-key":39,"related-repo-cockroachdb-molt-fetch":1574,"related-org-cockroachdb-molt-fetch":1672},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":25,"repoUrl":26,"updatedAt":27,"license":28,"forks":29,"topics":30,"repo":34,"sourceUrl":37,"mdContent":38},"molt-fetch","migrate data to CockroachDB with molt","Guide for using molt fetch to migrate data from PostgreSQL, MySQL, Oracle, or MSSQL to CockroachDB. Use when running molt fetch commands, configuring storage backends, handling fetch failures\u002Fresumption, or chaining fetch with verify.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"cockroachdb","CockroachDB","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fcockroachdb.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"MySQL","mysql","tag",{"name":17,"slug":18,"type":15},"Database","database",{"name":20,"slug":21,"type":15},"Migration","migration",{"name":23,"slug":24,"type":15},"PostgreSQL","postgresql",3,"https:\u002F\u002Fgithub.com\u002Fcockroachdb\u002Fclaude-plugin","2026-07-25T05:31:20.311697",null,2,[31,32,8,33],"claude","cockroach-cloud","developer-tools",{"repoUrl":26,"stars":25,"forks":29,"topics":35,"description":36},[31,32,8,33],"CockroachDB development plugin for Claude","https:\u002F\u002Fgithub.com\u002Fcockroachdb\u002Fclaude-plugin\u002Ftree\u002FHEAD\u002Fskills\u002Fcockroachdb-onboarding-and-migrations\u002Fmolt-fetch","---\nname: molt-fetch\ndescription: Guide for using molt fetch to migrate data from PostgreSQL, MySQL, Oracle, or MSSQL to CockroachDB. Use when running molt fetch commands, configuring storage backends, handling fetch failures\u002Fresumption, or chaining fetch with verify.\ncompatibility: Requires molt binary. Source DB must be accessible. For Oracle, CGO and Oracle Instant Client required.\nmetadata:\n  author: cockroachdb\n  version: \"1.0\"\n---\n\n# molt fetch\n\nBulk data migration from source databases (PostgreSQL, MySQL, Oracle, MSSQL) to CockroachDB.\n\n## Basic Structure\n\n```bash\nmolt fetch \\\n  --source \"\u003Csource-conn>\" \\\n  --target \"\u003Ccrdb-conn>\" \\\n  --bucket-path \"s3:\u002F\u002Fbucket\u002Fprefix\"   # or --direct-copy or --local-path\n  [options]\n```\n\n## Storage Backends (pick one)\n\n| Option | When to use |\n|--------|-------------|\n| `--bucket-path \"s3:\u002F\u002F...\"` | AWS S3 (also `gs:\u002F\u002F` for GCS, `azure:\u002F\u002F` for Azure) |\n| `--direct-copy` | No intermediate storage; fastest for accessible networks |\n| `--local-path \"\u002Ftmp\u002Fmolt\"` + `--local-path-listen-addr \"0.0.0.0:9005\"` | CRDB must reach the listen addr |\n\nCloud auth: pass `--use-implicit-auth` for IAM\u002FADC\u002Fmanaged identity, or set `AWS_ACCESS_KEY_ID`\u002F`GOOGLE_APPLICATION_CREDENTIALS` env vars.\n\n## Table Handling (`--table-handling`)\n\n| Value | Behavior |\n|-------|----------|\n| `none` (default) | Append to existing tables |\n| `drop-on-target-and-recreate` | Drop + recreate from source schema; enables auto schema creation. Destroys existing target tables and their data, so use only on fresh or empty targets |\n| `truncate-if-exists` | Truncate before loading; errors if table missing |\n\n## Import Mode\n\n**IMPORT INTO** (default): Table goes OFFLINE during load. Highest throughput.\n\n**COPY FROM** (`--use-copy`): Table stays ONLINE. Use with `--direct-copy`. Cannot use compression.\n\n```bash\n# Zero-downtime load\nmolt fetch --source \"...\" --target \"...\" --direct-copy --use-copy\n```\n\n## Key Flags\n\n```bash\n# Filtering\n--table-filter \"customers|orders\"      # POSIX regex for tables to include\n--table-exclusion-filter \"temp_.*\"     # exclude pattern\n--schema-filter \"public\"               # PostgreSQL only\n\n# Performance\n--table-concurrency 4                  # parallel tables (default: 4)\n--export-concurrency 4                 # export threads (default: 4)\n--row-batch-size 100000                # rows per SELECT (default: 100k)\n\n# Schema\n--type-map-file \"types.json\"           # custom type mappings\n--transformations-file \"transforms.json\"  # column exclusions, table aliases\n\n# Logging\n--log-file \"migration.log\"             # or \"stdout\"\n--logging debug                        # info (default), debug, trace\n--metrics-listen-addr \"0.0.0.0:3030\"  # Prometheus scrape endpoint\n```\n\n## Source-Specific Prerequisites\n\n**MySQL**: GTID mode required (`gtid_mode=ON`, `enforce_gtid_consistency=ON`). `ONLY_FULL_GROUP_BY` must be off. Or use `--ignore-replication-check`.\n\n**Oracle**: Binary must be built with `CGO_ENABLED=1 -tags=\"cgo source_all\"`. Oracle Instant Client in `LD_LIBRARY_PATH`.\n\n**PostgreSQL**: Replication privileges needed, or `--ignore-replication-check`.\n\n## Common Workflows\n\n### 1. Full migration with schema creation\n\n`drop-on-target-and-recreate` drops any existing target tables first; run this only against a fresh or empty target.\n\n```bash\nmolt fetch \\\n  --source \"postgresql:\u002F\u002F\u003Cuser>:\u003Cpassword>@pg:5432\u002Fdb\" \\\n  --target \"postgresql:\u002F\u002Froot@crdb:26257\u002Fdb\" \\\n  --bucket-path \"s3:\u002F\u002Fmybucket\u002Fmigration\" \\\n  --table-handling drop-on-target-and-recreate \\\n  --table-filter \"customers|orders|payments\" \\\n  --log-file migration.log\n```\n\n### 2. Resume after failure\n```bash\n# List available continuation tokens\nmolt fetch tokens --fetch-id \"abc-123\" --target \"postgresql:\u002F\u002Froot@crdb:26257\u002Fdb\"\n\n# Resume all failed tables\nmolt fetch \\\n  --source \"...\" --target \"...\" \\\n  --bucket-path \"s3:\u002F\u002Fmybucket\u002Fmigration\" \\\n  --fetch-id \"abc-123\" \\\n  --non-interactive\n```\n\n## Error Recovery\n\n| Error | Cause | Fix |\n|-------|-------|-----|\n| \"GTID-based replication not enabled\" | MySQL missing GTID | Enable `gtid_mode=ON` or add `--ignore-replication-check` |\n| \"Column mismatch\" | Schema diverged | Fix target schema manually or use `--type-map-file` |\n| Silent IMPORT INTO | CockroachDB import running | `SHOW JOBS` on CRDB to check progress |\n| \"timestamp in the future\" | Docker\u002FMac clock drift | Sync clocks between hosts |\n\n## Gotchas\n\n- COPY mode: cannot use `--compression gzip`; must use `--compression none` (or omit, default is none with copy)\n- Table is **offline** during IMPORT INTO — use `--use-copy` for zero downtime\n- Schema changes between runs require starting from scratch\n- `--fetch-id` continuation tokens live in the target's exceptions table\n- For MySQL, `--ignore-replication-check` skips GTID validation but replication-dependent features won't work\n- After fetch, run `molt verify` to confirm data integrity\n\nSee [flags reference](references\u002Fflags.md) for the full flag list.\n",{"data":40,"body":44},{"name":4,"description":6,"compatibility":41,"metadata":42},"Requires molt binary. Source DB must be accessible. For Oracle, CGO and Oracle Instant Client required.",{"author":8,"version":43},"1.0",{"type":45,"children":46},"root",[47,55,61,68,204,210,313,342,356,431,437,448,473,544,550,879,885,926,951,966,972,979,989,1138,1144,1334,1340,1462,1468,1554,1568],{"type":48,"tag":49,"props":50,"children":51},"element","h1",{"id":4},[52],{"type":53,"value":54},"text","molt fetch",{"type":48,"tag":56,"props":57,"children":58},"p",{},[59],{"type":53,"value":60},"Bulk data migration from source databases (PostgreSQL, MySQL, Oracle, MSSQL) to CockroachDB.",{"type":48,"tag":62,"props":63,"children":65},"h2",{"id":64},"basic-structure",[66],{"type":53,"value":67},"Basic Structure",{"type":48,"tag":69,"props":70,"children":75},"pre",{"className":71,"code":72,"language":73,"meta":74,"style":74},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","molt fetch \\\n  --source \"\u003Csource-conn>\" \\\n  --target \"\u003Ccrdb-conn>\" \\\n  --bucket-path \"s3:\u002F\u002Fbucket\u002Fprefix\"   # or --direct-copy or --local-path\n  [options]\n","bash","",[76],{"type":48,"tag":77,"props":78,"children":79},"code",{"__ignoreMap":74},[80,104,132,157,185],{"type":48,"tag":81,"props":82,"children":85},"span",{"class":83,"line":84},"line",1,[86,92,98],{"type":48,"tag":81,"props":87,"children":89},{"style":88},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[90],{"type":53,"value":91},"molt",{"type":48,"tag":81,"props":93,"children":95},{"style":94},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[96],{"type":53,"value":97}," fetch",{"type":48,"tag":81,"props":99,"children":101},{"style":100},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[102],{"type":53,"value":103}," \\\n",{"type":48,"tag":81,"props":105,"children":106},{"class":83,"line":29},[107,112,118,123,128],{"type":48,"tag":81,"props":108,"children":109},{"style":94},[110],{"type":53,"value":111},"  --source",{"type":48,"tag":81,"props":113,"children":115},{"style":114},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[116],{"type":53,"value":117}," \"",{"type":48,"tag":81,"props":119,"children":120},{"style":94},[121],{"type":53,"value":122},"\u003Csource-conn>",{"type":48,"tag":81,"props":124,"children":125},{"style":114},[126],{"type":53,"value":127},"\"",{"type":48,"tag":81,"props":129,"children":130},{"style":100},[131],{"type":53,"value":103},{"type":48,"tag":81,"props":133,"children":134},{"class":83,"line":25},[135,140,144,149,153],{"type":48,"tag":81,"props":136,"children":137},{"style":94},[138],{"type":53,"value":139},"  --target",{"type":48,"tag":81,"props":141,"children":142},{"style":114},[143],{"type":53,"value":117},{"type":48,"tag":81,"props":145,"children":146},{"style":94},[147],{"type":53,"value":148},"\u003Ccrdb-conn>",{"type":48,"tag":81,"props":150,"children":151},{"style":114},[152],{"type":53,"value":127},{"type":48,"tag":81,"props":154,"children":155},{"style":100},[156],{"type":53,"value":103},{"type":48,"tag":81,"props":158,"children":160},{"class":83,"line":159},4,[161,166,170,175,179],{"type":48,"tag":81,"props":162,"children":163},{"style":94},[164],{"type":53,"value":165},"  --bucket-path",{"type":48,"tag":81,"props":167,"children":168},{"style":114},[169],{"type":53,"value":117},{"type":48,"tag":81,"props":171,"children":172},{"style":94},[173],{"type":53,"value":174},"s3:\u002F\u002Fbucket\u002Fprefix",{"type":48,"tag":81,"props":176,"children":177},{"style":114},[178],{"type":53,"value":127},{"type":48,"tag":81,"props":180,"children":182},{"style":181},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[183],{"type":53,"value":184},"   # or --direct-copy or --local-path\n",{"type":48,"tag":81,"props":186,"children":188},{"class":83,"line":187},5,[189,194,199],{"type":48,"tag":81,"props":190,"children":191},{"style":114},[192],{"type":53,"value":193},"  [",{"type":48,"tag":81,"props":195,"children":196},{"style":100},[197],{"type":53,"value":198},"options",{"type":48,"tag":81,"props":200,"children":201},{"style":114},[202],{"type":53,"value":203},"]\n",{"type":48,"tag":62,"props":205,"children":207},{"id":206},"storage-backends-pick-one",[208],{"type":53,"value":209},"Storage Backends (pick one)",{"type":48,"tag":211,"props":212,"children":213},"table",{},[214,233],{"type":48,"tag":215,"props":216,"children":217},"thead",{},[218],{"type":48,"tag":219,"props":220,"children":221},"tr",{},[222,228],{"type":48,"tag":223,"props":224,"children":225},"th",{},[226],{"type":53,"value":227},"Option",{"type":48,"tag":223,"props":229,"children":230},{},[231],{"type":53,"value":232},"When to use",{"type":48,"tag":234,"props":235,"children":236},"tbody",{},[237,271,288],{"type":48,"tag":219,"props":238,"children":239},{},[240,250],{"type":48,"tag":241,"props":242,"children":243},"td",{},[244],{"type":48,"tag":77,"props":245,"children":247},{"className":246},[],[248],{"type":53,"value":249},"--bucket-path \"s3:\u002F\u002F...\"",{"type":48,"tag":241,"props":251,"children":252},{},[253,255,261,263,269],{"type":53,"value":254},"AWS S3 (also ",{"type":48,"tag":77,"props":256,"children":258},{"className":257},[],[259],{"type":53,"value":260},"gs:\u002F\u002F",{"type":53,"value":262}," for GCS, ",{"type":48,"tag":77,"props":264,"children":266},{"className":265},[],[267],{"type":53,"value":268},"azure:\u002F\u002F",{"type":53,"value":270}," for Azure)",{"type":48,"tag":219,"props":272,"children":273},{},[274,283],{"type":48,"tag":241,"props":275,"children":276},{},[277],{"type":48,"tag":77,"props":278,"children":280},{"className":279},[],[281],{"type":53,"value":282},"--direct-copy",{"type":48,"tag":241,"props":284,"children":285},{},[286],{"type":53,"value":287},"No intermediate storage; fastest for accessible networks",{"type":48,"tag":219,"props":289,"children":290},{},[291,308],{"type":48,"tag":241,"props":292,"children":293},{},[294,300,302],{"type":48,"tag":77,"props":295,"children":297},{"className":296},[],[298],{"type":53,"value":299},"--local-path \"\u002Ftmp\u002Fmolt\"",{"type":53,"value":301}," + ",{"type":48,"tag":77,"props":303,"children":305},{"className":304},[],[306],{"type":53,"value":307},"--local-path-listen-addr \"0.0.0.0:9005\"",{"type":48,"tag":241,"props":309,"children":310},{},[311],{"type":53,"value":312},"CRDB must reach the listen addr",{"type":48,"tag":56,"props":314,"children":315},{},[316,318,324,326,332,334,340],{"type":53,"value":317},"Cloud auth: pass ",{"type":48,"tag":77,"props":319,"children":321},{"className":320},[],[322],{"type":53,"value":323},"--use-implicit-auth",{"type":53,"value":325}," for IAM\u002FADC\u002Fmanaged identity, or set ",{"type":48,"tag":77,"props":327,"children":329},{"className":328},[],[330],{"type":53,"value":331},"AWS_ACCESS_KEY_ID",{"type":53,"value":333},"\u002F",{"type":48,"tag":77,"props":335,"children":337},{"className":336},[],[338],{"type":53,"value":339},"GOOGLE_APPLICATION_CREDENTIALS",{"type":53,"value":341}," env vars.",{"type":48,"tag":62,"props":343,"children":345},{"id":344},"table-handling-table-handling",[346,348,354],{"type":53,"value":347},"Table Handling (",{"type":48,"tag":77,"props":349,"children":351},{"className":350},[],[352],{"type":53,"value":353},"--table-handling",{"type":53,"value":355},")",{"type":48,"tag":211,"props":357,"children":358},{},[359,375],{"type":48,"tag":215,"props":360,"children":361},{},[362],{"type":48,"tag":219,"props":363,"children":364},{},[365,370],{"type":48,"tag":223,"props":366,"children":367},{},[368],{"type":53,"value":369},"Value",{"type":48,"tag":223,"props":371,"children":372},{},[373],{"type":53,"value":374},"Behavior",{"type":48,"tag":234,"props":376,"children":377},{},[378,397,414],{"type":48,"tag":219,"props":379,"children":380},{},[381,392],{"type":48,"tag":241,"props":382,"children":383},{},[384,390],{"type":48,"tag":77,"props":385,"children":387},{"className":386},[],[388],{"type":53,"value":389},"none",{"type":53,"value":391}," (default)",{"type":48,"tag":241,"props":393,"children":394},{},[395],{"type":53,"value":396},"Append to existing tables",{"type":48,"tag":219,"props":398,"children":399},{},[400,409],{"type":48,"tag":241,"props":401,"children":402},{},[403],{"type":48,"tag":77,"props":404,"children":406},{"className":405},[],[407],{"type":53,"value":408},"drop-on-target-and-recreate",{"type":48,"tag":241,"props":410,"children":411},{},[412],{"type":53,"value":413},"Drop + recreate from source schema; enables auto schema creation. Destroys existing target tables and their data, so use only on fresh or empty targets",{"type":48,"tag":219,"props":415,"children":416},{},[417,426],{"type":48,"tag":241,"props":418,"children":419},{},[420],{"type":48,"tag":77,"props":421,"children":423},{"className":422},[],[424],{"type":53,"value":425},"truncate-if-exists",{"type":48,"tag":241,"props":427,"children":428},{},[429],{"type":53,"value":430},"Truncate before loading; errors if table missing",{"type":48,"tag":62,"props":432,"children":434},{"id":433},"import-mode",[435],{"type":53,"value":436},"Import Mode",{"type":48,"tag":56,"props":438,"children":439},{},[440,446],{"type":48,"tag":441,"props":442,"children":443},"strong",{},[444],{"type":53,"value":445},"IMPORT INTO",{"type":53,"value":447}," (default): Table goes OFFLINE during load. Highest throughput.",{"type":48,"tag":56,"props":449,"children":450},{},[451,456,458,464,466,471],{"type":48,"tag":441,"props":452,"children":453},{},[454],{"type":53,"value":455},"COPY FROM",{"type":53,"value":457}," (",{"type":48,"tag":77,"props":459,"children":461},{"className":460},[],[462],{"type":53,"value":463},"--use-copy",{"type":53,"value":465},"): Table stays ONLINE. Use with ",{"type":48,"tag":77,"props":467,"children":469},{"className":468},[],[470],{"type":53,"value":282},{"type":53,"value":472},". Cannot use compression.",{"type":48,"tag":69,"props":474,"children":476},{"className":71,"code":475,"language":73,"meta":74,"style":74},"# Zero-downtime load\nmolt fetch --source \"...\" --target \"...\" --direct-copy --use-copy\n",[477],{"type":48,"tag":77,"props":478,"children":479},{"__ignoreMap":74},[480,488],{"type":48,"tag":81,"props":481,"children":482},{"class":83,"line":84},[483],{"type":48,"tag":81,"props":484,"children":485},{"style":181},[486],{"type":53,"value":487},"# Zero-downtime load\n",{"type":48,"tag":81,"props":489,"children":490},{"class":83,"line":29},[491,495,499,504,508,513,517,522,526,530,534,539],{"type":48,"tag":81,"props":492,"children":493},{"style":88},[494],{"type":53,"value":91},{"type":48,"tag":81,"props":496,"children":497},{"style":94},[498],{"type":53,"value":97},{"type":48,"tag":81,"props":500,"children":501},{"style":94},[502],{"type":53,"value":503}," --source",{"type":48,"tag":81,"props":505,"children":506},{"style":114},[507],{"type":53,"value":117},{"type":48,"tag":81,"props":509,"children":510},{"style":94},[511],{"type":53,"value":512},"...",{"type":48,"tag":81,"props":514,"children":515},{"style":114},[516],{"type":53,"value":127},{"type":48,"tag":81,"props":518,"children":519},{"style":94},[520],{"type":53,"value":521}," --target",{"type":48,"tag":81,"props":523,"children":524},{"style":114},[525],{"type":53,"value":117},{"type":48,"tag":81,"props":527,"children":528},{"style":94},[529],{"type":53,"value":512},{"type":48,"tag":81,"props":531,"children":532},{"style":114},[533],{"type":53,"value":127},{"type":48,"tag":81,"props":535,"children":536},{"style":94},[537],{"type":53,"value":538}," --direct-copy",{"type":48,"tag":81,"props":540,"children":541},{"style":94},[542],{"type":53,"value":543}," --use-copy\n",{"type":48,"tag":62,"props":545,"children":547},{"id":546},"key-flags",[548],{"type":53,"value":549},"Key Flags",{"type":48,"tag":69,"props":551,"children":553},{"className":71,"code":552,"language":73,"meta":74,"style":74},"# Filtering\n--table-filter \"customers|orders\"      # POSIX regex for tables to include\n--table-exclusion-filter \"temp_.*\"     # exclude pattern\n--schema-filter \"public\"               # PostgreSQL only\n\n# Performance\n--table-concurrency 4                  # parallel tables (default: 4)\n--export-concurrency 4                 # export threads (default: 4)\n--row-batch-size 100000                # rows per SELECT (default: 100k)\n\n# Schema\n--type-map-file \"types.json\"           # custom type mappings\n--transformations-file \"transforms.json\"  # column exclusions, table aliases\n\n# Logging\n--log-file \"migration.log\"             # or \"stdout\"\n--logging debug                        # info (default), debug, trace\n--metrics-listen-addr \"0.0.0.0:3030\"  # Prometheus scrape endpoint\n",[554],{"type":48,"tag":77,"props":555,"children":556},{"__ignoreMap":74},[557,565,591,617,643,652,661,681,699,718,726,735,762,789,797,806,833,852],{"type":48,"tag":81,"props":558,"children":559},{"class":83,"line":84},[560],{"type":48,"tag":81,"props":561,"children":562},{"style":181},[563],{"type":53,"value":564},"# Filtering\n",{"type":48,"tag":81,"props":566,"children":567},{"class":83,"line":29},[568,573,577,582,586],{"type":48,"tag":81,"props":569,"children":570},{"style":88},[571],{"type":53,"value":572},"--table-filter",{"type":48,"tag":81,"props":574,"children":575},{"style":114},[576],{"type":53,"value":117},{"type":48,"tag":81,"props":578,"children":579},{"style":94},[580],{"type":53,"value":581},"customers|orders",{"type":48,"tag":81,"props":583,"children":584},{"style":114},[585],{"type":53,"value":127},{"type":48,"tag":81,"props":587,"children":588},{"style":181},[589],{"type":53,"value":590},"      # POSIX regex for tables to include\n",{"type":48,"tag":81,"props":592,"children":593},{"class":83,"line":25},[594,599,603,608,612],{"type":48,"tag":81,"props":595,"children":596},{"style":88},[597],{"type":53,"value":598},"--table-exclusion-filter",{"type":48,"tag":81,"props":600,"children":601},{"style":114},[602],{"type":53,"value":117},{"type":48,"tag":81,"props":604,"children":605},{"style":94},[606],{"type":53,"value":607},"temp_.*",{"type":48,"tag":81,"props":609,"children":610},{"style":114},[611],{"type":53,"value":127},{"type":48,"tag":81,"props":613,"children":614},{"style":181},[615],{"type":53,"value":616},"     # exclude pattern\n",{"type":48,"tag":81,"props":618,"children":619},{"class":83,"line":159},[620,625,629,634,638],{"type":48,"tag":81,"props":621,"children":622},{"style":88},[623],{"type":53,"value":624},"--schema-filter",{"type":48,"tag":81,"props":626,"children":627},{"style":114},[628],{"type":53,"value":117},{"type":48,"tag":81,"props":630,"children":631},{"style":94},[632],{"type":53,"value":633},"public",{"type":48,"tag":81,"props":635,"children":636},{"style":114},[637],{"type":53,"value":127},{"type":48,"tag":81,"props":639,"children":640},{"style":181},[641],{"type":53,"value":642},"               # PostgreSQL only\n",{"type":48,"tag":81,"props":644,"children":645},{"class":83,"line":187},[646],{"type":48,"tag":81,"props":647,"children":649},{"emptyLinePlaceholder":648},true,[650],{"type":53,"value":651},"\n",{"type":48,"tag":81,"props":653,"children":655},{"class":83,"line":654},6,[656],{"type":48,"tag":81,"props":657,"children":658},{"style":181},[659],{"type":53,"value":660},"# Performance\n",{"type":48,"tag":81,"props":662,"children":664},{"class":83,"line":663},7,[665,670,676],{"type":48,"tag":81,"props":666,"children":667},{"style":88},[668],{"type":53,"value":669},"--table-concurrency",{"type":48,"tag":81,"props":671,"children":673},{"style":672},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[674],{"type":53,"value":675}," 4",{"type":48,"tag":81,"props":677,"children":678},{"style":181},[679],{"type":53,"value":680},"                  # parallel tables (default: 4)\n",{"type":48,"tag":81,"props":682,"children":684},{"class":83,"line":683},8,[685,690,694],{"type":48,"tag":81,"props":686,"children":687},{"style":88},[688],{"type":53,"value":689},"--export-concurrency",{"type":48,"tag":81,"props":691,"children":692},{"style":672},[693],{"type":53,"value":675},{"type":48,"tag":81,"props":695,"children":696},{"style":181},[697],{"type":53,"value":698},"                 # export threads (default: 4)\n",{"type":48,"tag":81,"props":700,"children":702},{"class":83,"line":701},9,[703,708,713],{"type":48,"tag":81,"props":704,"children":705},{"style":88},[706],{"type":53,"value":707},"--row-batch-size",{"type":48,"tag":81,"props":709,"children":710},{"style":672},[711],{"type":53,"value":712}," 100000",{"type":48,"tag":81,"props":714,"children":715},{"style":181},[716],{"type":53,"value":717},"                # rows per SELECT (default: 100k)\n",{"type":48,"tag":81,"props":719,"children":721},{"class":83,"line":720},10,[722],{"type":48,"tag":81,"props":723,"children":724},{"emptyLinePlaceholder":648},[725],{"type":53,"value":651},{"type":48,"tag":81,"props":727,"children":729},{"class":83,"line":728},11,[730],{"type":48,"tag":81,"props":731,"children":732},{"style":181},[733],{"type":53,"value":734},"# Schema\n",{"type":48,"tag":81,"props":736,"children":738},{"class":83,"line":737},12,[739,744,748,753,757],{"type":48,"tag":81,"props":740,"children":741},{"style":88},[742],{"type":53,"value":743},"--type-map-file",{"type":48,"tag":81,"props":745,"children":746},{"style":114},[747],{"type":53,"value":117},{"type":48,"tag":81,"props":749,"children":750},{"style":94},[751],{"type":53,"value":752},"types.json",{"type":48,"tag":81,"props":754,"children":755},{"style":114},[756],{"type":53,"value":127},{"type":48,"tag":81,"props":758,"children":759},{"style":181},[760],{"type":53,"value":761},"           # custom type mappings\n",{"type":48,"tag":81,"props":763,"children":765},{"class":83,"line":764},13,[766,771,775,780,784],{"type":48,"tag":81,"props":767,"children":768},{"style":88},[769],{"type":53,"value":770},"--transformations-file",{"type":48,"tag":81,"props":772,"children":773},{"style":114},[774],{"type":53,"value":117},{"type":48,"tag":81,"props":776,"children":777},{"style":94},[778],{"type":53,"value":779},"transforms.json",{"type":48,"tag":81,"props":781,"children":782},{"style":114},[783],{"type":53,"value":127},{"type":48,"tag":81,"props":785,"children":786},{"style":181},[787],{"type":53,"value":788},"  # column exclusions, table aliases\n",{"type":48,"tag":81,"props":790,"children":792},{"class":83,"line":791},14,[793],{"type":48,"tag":81,"props":794,"children":795},{"emptyLinePlaceholder":648},[796],{"type":53,"value":651},{"type":48,"tag":81,"props":798,"children":800},{"class":83,"line":799},15,[801],{"type":48,"tag":81,"props":802,"children":803},{"style":181},[804],{"type":53,"value":805},"# Logging\n",{"type":48,"tag":81,"props":807,"children":809},{"class":83,"line":808},16,[810,815,819,824,828],{"type":48,"tag":81,"props":811,"children":812},{"style":88},[813],{"type":53,"value":814},"--log-file",{"type":48,"tag":81,"props":816,"children":817},{"style":114},[818],{"type":53,"value":117},{"type":48,"tag":81,"props":820,"children":821},{"style":94},[822],{"type":53,"value":823},"migration.log",{"type":48,"tag":81,"props":825,"children":826},{"style":114},[827],{"type":53,"value":127},{"type":48,"tag":81,"props":829,"children":830},{"style":181},[831],{"type":53,"value":832},"             # or \"stdout\"\n",{"type":48,"tag":81,"props":834,"children":836},{"class":83,"line":835},17,[837,842,847],{"type":48,"tag":81,"props":838,"children":839},{"style":88},[840],{"type":53,"value":841},"--logging",{"type":48,"tag":81,"props":843,"children":844},{"style":94},[845],{"type":53,"value":846}," debug",{"type":48,"tag":81,"props":848,"children":849},{"style":181},[850],{"type":53,"value":851},"                        # info (default), debug, trace\n",{"type":48,"tag":81,"props":853,"children":855},{"class":83,"line":854},18,[856,861,865,870,874],{"type":48,"tag":81,"props":857,"children":858},{"style":88},[859],{"type":53,"value":860},"--metrics-listen-addr",{"type":48,"tag":81,"props":862,"children":863},{"style":114},[864],{"type":53,"value":117},{"type":48,"tag":81,"props":866,"children":867},{"style":94},[868],{"type":53,"value":869},"0.0.0.0:3030",{"type":48,"tag":81,"props":871,"children":872},{"style":114},[873],{"type":53,"value":127},{"type":48,"tag":81,"props":875,"children":876},{"style":181},[877],{"type":53,"value":878},"  # Prometheus scrape endpoint\n",{"type":48,"tag":62,"props":880,"children":882},{"id":881},"source-specific-prerequisites",[883],{"type":53,"value":884},"Source-Specific Prerequisites",{"type":48,"tag":56,"props":886,"children":887},{},[888,892,894,900,902,908,910,916,918,924],{"type":48,"tag":441,"props":889,"children":890},{},[891],{"type":53,"value":13},{"type":53,"value":893},": GTID mode required (",{"type":48,"tag":77,"props":895,"children":897},{"className":896},[],[898],{"type":53,"value":899},"gtid_mode=ON",{"type":53,"value":901},", ",{"type":48,"tag":77,"props":903,"children":905},{"className":904},[],[906],{"type":53,"value":907},"enforce_gtid_consistency=ON",{"type":53,"value":909},"). ",{"type":48,"tag":77,"props":911,"children":913},{"className":912},[],[914],{"type":53,"value":915},"ONLY_FULL_GROUP_BY",{"type":53,"value":917}," must be off. Or use ",{"type":48,"tag":77,"props":919,"children":921},{"className":920},[],[922],{"type":53,"value":923},"--ignore-replication-check",{"type":53,"value":925},".",{"type":48,"tag":56,"props":927,"children":928},{},[929,934,936,942,944,950],{"type":48,"tag":441,"props":930,"children":931},{},[932],{"type":53,"value":933},"Oracle",{"type":53,"value":935},": Binary must be built with ",{"type":48,"tag":77,"props":937,"children":939},{"className":938},[],[940],{"type":53,"value":941},"CGO_ENABLED=1 -tags=\"cgo source_all\"",{"type":53,"value":943},". Oracle Instant Client in ",{"type":48,"tag":77,"props":945,"children":947},{"className":946},[],[948],{"type":53,"value":949},"LD_LIBRARY_PATH",{"type":53,"value":925},{"type":48,"tag":56,"props":952,"children":953},{},[954,958,960,965],{"type":48,"tag":441,"props":955,"children":956},{},[957],{"type":53,"value":23},{"type":53,"value":959},": Replication privileges needed, or ",{"type":48,"tag":77,"props":961,"children":963},{"className":962},[],[964],{"type":53,"value":923},{"type":53,"value":925},{"type":48,"tag":62,"props":967,"children":969},{"id":968},"common-workflows",[970],{"type":53,"value":971},"Common Workflows",{"type":48,"tag":973,"props":974,"children":976},"h3",{"id":975},"_1-full-migration-with-schema-creation",[977],{"type":53,"value":978},"1. Full migration with schema creation",{"type":48,"tag":56,"props":980,"children":981},{},[982,987],{"type":48,"tag":77,"props":983,"children":985},{"className":984},[],[986],{"type":53,"value":408},{"type":53,"value":988}," drops any existing target tables first; run this only against a fresh or empty target.",{"type":48,"tag":69,"props":990,"children":992},{"className":71,"code":991,"language":73,"meta":74,"style":74},"molt fetch \\\n  --source \"postgresql:\u002F\u002F\u003Cuser>:\u003Cpassword>@pg:5432\u002Fdb\" \\\n  --target \"postgresql:\u002F\u002Froot@crdb:26257\u002Fdb\" \\\n  --bucket-path \"s3:\u002F\u002Fmybucket\u002Fmigration\" \\\n  --table-handling drop-on-target-and-recreate \\\n  --table-filter \"customers|orders|payments\" \\\n  --log-file migration.log\n",[993],{"type":48,"tag":77,"props":994,"children":995},{"__ignoreMap":74},[996,1011,1035,1059,1083,1100,1125],{"type":48,"tag":81,"props":997,"children":998},{"class":83,"line":84},[999,1003,1007],{"type":48,"tag":81,"props":1000,"children":1001},{"style":88},[1002],{"type":53,"value":91},{"type":48,"tag":81,"props":1004,"children":1005},{"style":94},[1006],{"type":53,"value":97},{"type":48,"tag":81,"props":1008,"children":1009},{"style":100},[1010],{"type":53,"value":103},{"type":48,"tag":81,"props":1012,"children":1013},{"class":83,"line":29},[1014,1018,1022,1027,1031],{"type":48,"tag":81,"props":1015,"children":1016},{"style":94},[1017],{"type":53,"value":111},{"type":48,"tag":81,"props":1019,"children":1020},{"style":114},[1021],{"type":53,"value":117},{"type":48,"tag":81,"props":1023,"children":1024},{"style":94},[1025],{"type":53,"value":1026},"postgresql:\u002F\u002F\u003Cuser>:\u003Cpassword>@pg:5432\u002Fdb",{"type":48,"tag":81,"props":1028,"children":1029},{"style":114},[1030],{"type":53,"value":127},{"type":48,"tag":81,"props":1032,"children":1033},{"style":100},[1034],{"type":53,"value":103},{"type":48,"tag":81,"props":1036,"children":1037},{"class":83,"line":25},[1038,1042,1046,1051,1055],{"type":48,"tag":81,"props":1039,"children":1040},{"style":94},[1041],{"type":53,"value":139},{"type":48,"tag":81,"props":1043,"children":1044},{"style":114},[1045],{"type":53,"value":117},{"type":48,"tag":81,"props":1047,"children":1048},{"style":94},[1049],{"type":53,"value":1050},"postgresql:\u002F\u002Froot@crdb:26257\u002Fdb",{"type":48,"tag":81,"props":1052,"children":1053},{"style":114},[1054],{"type":53,"value":127},{"type":48,"tag":81,"props":1056,"children":1057},{"style":100},[1058],{"type":53,"value":103},{"type":48,"tag":81,"props":1060,"children":1061},{"class":83,"line":159},[1062,1066,1070,1075,1079],{"type":48,"tag":81,"props":1063,"children":1064},{"style":94},[1065],{"type":53,"value":165},{"type":48,"tag":81,"props":1067,"children":1068},{"style":114},[1069],{"type":53,"value":117},{"type":48,"tag":81,"props":1071,"children":1072},{"style":94},[1073],{"type":53,"value":1074},"s3:\u002F\u002Fmybucket\u002Fmigration",{"type":48,"tag":81,"props":1076,"children":1077},{"style":114},[1078],{"type":53,"value":127},{"type":48,"tag":81,"props":1080,"children":1081},{"style":100},[1082],{"type":53,"value":103},{"type":48,"tag":81,"props":1084,"children":1085},{"class":83,"line":187},[1086,1091,1096],{"type":48,"tag":81,"props":1087,"children":1088},{"style":94},[1089],{"type":53,"value":1090},"  --table-handling",{"type":48,"tag":81,"props":1092,"children":1093},{"style":94},[1094],{"type":53,"value":1095}," drop-on-target-and-recreate",{"type":48,"tag":81,"props":1097,"children":1098},{"style":100},[1099],{"type":53,"value":103},{"type":48,"tag":81,"props":1101,"children":1102},{"class":83,"line":654},[1103,1108,1112,1117,1121],{"type":48,"tag":81,"props":1104,"children":1105},{"style":94},[1106],{"type":53,"value":1107},"  --table-filter",{"type":48,"tag":81,"props":1109,"children":1110},{"style":114},[1111],{"type":53,"value":117},{"type":48,"tag":81,"props":1113,"children":1114},{"style":94},[1115],{"type":53,"value":1116},"customers|orders|payments",{"type":48,"tag":81,"props":1118,"children":1119},{"style":114},[1120],{"type":53,"value":127},{"type":48,"tag":81,"props":1122,"children":1123},{"style":100},[1124],{"type":53,"value":103},{"type":48,"tag":81,"props":1126,"children":1127},{"class":83,"line":663},[1128,1133],{"type":48,"tag":81,"props":1129,"children":1130},{"style":94},[1131],{"type":53,"value":1132},"  --log-file",{"type":48,"tag":81,"props":1134,"children":1135},{"style":94},[1136],{"type":53,"value":1137}," migration.log\n",{"type":48,"tag":973,"props":1139,"children":1141},{"id":1140},"_2-resume-after-failure",[1142],{"type":53,"value":1143},"2. Resume after failure",{"type":48,"tag":69,"props":1145,"children":1147},{"className":71,"code":1146,"language":73,"meta":74,"style":74},"# List available continuation tokens\nmolt fetch tokens --fetch-id \"abc-123\" --target \"postgresql:\u002F\u002Froot@crdb:26257\u002Fdb\"\n\n# Resume all failed tables\nmolt fetch \\\n  --source \"...\" --target \"...\" \\\n  --bucket-path \"s3:\u002F\u002Fmybucket\u002Fmigration\" \\\n  --fetch-id \"abc-123\" \\\n  --non-interactive\n",[1148],{"type":48,"tag":77,"props":1149,"children":1150},{"__ignoreMap":74},[1151,1159,1210,1217,1225,1240,1279,1302,1326],{"type":48,"tag":81,"props":1152,"children":1153},{"class":83,"line":84},[1154],{"type":48,"tag":81,"props":1155,"children":1156},{"style":181},[1157],{"type":53,"value":1158},"# List available continuation tokens\n",{"type":48,"tag":81,"props":1160,"children":1161},{"class":83,"line":29},[1162,1166,1170,1175,1180,1184,1189,1193,1197,1201,1205],{"type":48,"tag":81,"props":1163,"children":1164},{"style":88},[1165],{"type":53,"value":91},{"type":48,"tag":81,"props":1167,"children":1168},{"style":94},[1169],{"type":53,"value":97},{"type":48,"tag":81,"props":1171,"children":1172},{"style":94},[1173],{"type":53,"value":1174}," tokens",{"type":48,"tag":81,"props":1176,"children":1177},{"style":94},[1178],{"type":53,"value":1179}," --fetch-id",{"type":48,"tag":81,"props":1181,"children":1182},{"style":114},[1183],{"type":53,"value":117},{"type":48,"tag":81,"props":1185,"children":1186},{"style":94},[1187],{"type":53,"value":1188},"abc-123",{"type":48,"tag":81,"props":1190,"children":1191},{"style":114},[1192],{"type":53,"value":127},{"type":48,"tag":81,"props":1194,"children":1195},{"style":94},[1196],{"type":53,"value":521},{"type":48,"tag":81,"props":1198,"children":1199},{"style":114},[1200],{"type":53,"value":117},{"type":48,"tag":81,"props":1202,"children":1203},{"style":94},[1204],{"type":53,"value":1050},{"type":48,"tag":81,"props":1206,"children":1207},{"style":114},[1208],{"type":53,"value":1209},"\"\n",{"type":48,"tag":81,"props":1211,"children":1212},{"class":83,"line":25},[1213],{"type":48,"tag":81,"props":1214,"children":1215},{"emptyLinePlaceholder":648},[1216],{"type":53,"value":651},{"type":48,"tag":81,"props":1218,"children":1219},{"class":83,"line":159},[1220],{"type":48,"tag":81,"props":1221,"children":1222},{"style":181},[1223],{"type":53,"value":1224},"# Resume all failed tables\n",{"type":48,"tag":81,"props":1226,"children":1227},{"class":83,"line":187},[1228,1232,1236],{"type":48,"tag":81,"props":1229,"children":1230},{"style":88},[1231],{"type":53,"value":91},{"type":48,"tag":81,"props":1233,"children":1234},{"style":94},[1235],{"type":53,"value":97},{"type":48,"tag":81,"props":1237,"children":1238},{"style":100},[1239],{"type":53,"value":103},{"type":48,"tag":81,"props":1241,"children":1242},{"class":83,"line":654},[1243,1247,1251,1255,1259,1263,1267,1271,1275],{"type":48,"tag":81,"props":1244,"children":1245},{"style":94},[1246],{"type":53,"value":111},{"type":48,"tag":81,"props":1248,"children":1249},{"style":114},[1250],{"type":53,"value":117},{"type":48,"tag":81,"props":1252,"children":1253},{"style":94},[1254],{"type":53,"value":512},{"type":48,"tag":81,"props":1256,"children":1257},{"style":114},[1258],{"type":53,"value":127},{"type":48,"tag":81,"props":1260,"children":1261},{"style":94},[1262],{"type":53,"value":521},{"type":48,"tag":81,"props":1264,"children":1265},{"style":114},[1266],{"type":53,"value":117},{"type":48,"tag":81,"props":1268,"children":1269},{"style":94},[1270],{"type":53,"value":512},{"type":48,"tag":81,"props":1272,"children":1273},{"style":114},[1274],{"type":53,"value":127},{"type":48,"tag":81,"props":1276,"children":1277},{"style":100},[1278],{"type":53,"value":103},{"type":48,"tag":81,"props":1280,"children":1281},{"class":83,"line":663},[1282,1286,1290,1294,1298],{"type":48,"tag":81,"props":1283,"children":1284},{"style":94},[1285],{"type":53,"value":165},{"type":48,"tag":81,"props":1287,"children":1288},{"style":114},[1289],{"type":53,"value":117},{"type":48,"tag":81,"props":1291,"children":1292},{"style":94},[1293],{"type":53,"value":1074},{"type":48,"tag":81,"props":1295,"children":1296},{"style":114},[1297],{"type":53,"value":127},{"type":48,"tag":81,"props":1299,"children":1300},{"style":100},[1301],{"type":53,"value":103},{"type":48,"tag":81,"props":1303,"children":1304},{"class":83,"line":683},[1305,1310,1314,1318,1322],{"type":48,"tag":81,"props":1306,"children":1307},{"style":94},[1308],{"type":53,"value":1309},"  --fetch-id",{"type":48,"tag":81,"props":1311,"children":1312},{"style":114},[1313],{"type":53,"value":117},{"type":48,"tag":81,"props":1315,"children":1316},{"style":94},[1317],{"type":53,"value":1188},{"type":48,"tag":81,"props":1319,"children":1320},{"style":114},[1321],{"type":53,"value":127},{"type":48,"tag":81,"props":1323,"children":1324},{"style":100},[1325],{"type":53,"value":103},{"type":48,"tag":81,"props":1327,"children":1328},{"class":83,"line":701},[1329],{"type":48,"tag":81,"props":1330,"children":1331},{"style":94},[1332],{"type":53,"value":1333},"  --non-interactive\n",{"type":48,"tag":62,"props":1335,"children":1337},{"id":1336},"error-recovery",[1338],{"type":53,"value":1339},"Error Recovery",{"type":48,"tag":211,"props":1341,"children":1342},{},[1343,1364],{"type":48,"tag":215,"props":1344,"children":1345},{},[1346],{"type":48,"tag":219,"props":1347,"children":1348},{},[1349,1354,1359],{"type":48,"tag":223,"props":1350,"children":1351},{},[1352],{"type":53,"value":1353},"Error",{"type":48,"tag":223,"props":1355,"children":1356},{},[1357],{"type":53,"value":1358},"Cause",{"type":48,"tag":223,"props":1360,"children":1361},{},[1362],{"type":53,"value":1363},"Fix",{"type":48,"tag":234,"props":1365,"children":1366},{},[1367,1397,1420,1444],{"type":48,"tag":219,"props":1368,"children":1369},{},[1370,1375,1380],{"type":48,"tag":241,"props":1371,"children":1372},{},[1373],{"type":53,"value":1374},"\"GTID-based replication not enabled\"",{"type":48,"tag":241,"props":1376,"children":1377},{},[1378],{"type":53,"value":1379},"MySQL missing GTID",{"type":48,"tag":241,"props":1381,"children":1382},{},[1383,1385,1390,1392],{"type":53,"value":1384},"Enable ",{"type":48,"tag":77,"props":1386,"children":1388},{"className":1387},[],[1389],{"type":53,"value":899},{"type":53,"value":1391}," or add ",{"type":48,"tag":77,"props":1393,"children":1395},{"className":1394},[],[1396],{"type":53,"value":923},{"type":48,"tag":219,"props":1398,"children":1399},{},[1400,1405,1410],{"type":48,"tag":241,"props":1401,"children":1402},{},[1403],{"type":53,"value":1404},"\"Column mismatch\"",{"type":48,"tag":241,"props":1406,"children":1407},{},[1408],{"type":53,"value":1409},"Schema diverged",{"type":48,"tag":241,"props":1411,"children":1412},{},[1413,1415],{"type":53,"value":1414},"Fix target schema manually or use ",{"type":48,"tag":77,"props":1416,"children":1418},{"className":1417},[],[1419],{"type":53,"value":743},{"type":48,"tag":219,"props":1421,"children":1422},{},[1423,1428,1433],{"type":48,"tag":241,"props":1424,"children":1425},{},[1426],{"type":53,"value":1427},"Silent IMPORT INTO",{"type":48,"tag":241,"props":1429,"children":1430},{},[1431],{"type":53,"value":1432},"CockroachDB import running",{"type":48,"tag":241,"props":1434,"children":1435},{},[1436,1442],{"type":48,"tag":77,"props":1437,"children":1439},{"className":1438},[],[1440],{"type":53,"value":1441},"SHOW JOBS",{"type":53,"value":1443}," on CRDB to check progress",{"type":48,"tag":219,"props":1445,"children":1446},{},[1447,1452,1457],{"type":48,"tag":241,"props":1448,"children":1449},{},[1450],{"type":53,"value":1451},"\"timestamp in the future\"",{"type":48,"tag":241,"props":1453,"children":1454},{},[1455],{"type":53,"value":1456},"Docker\u002FMac clock drift",{"type":48,"tag":241,"props":1458,"children":1459},{},[1460],{"type":53,"value":1461},"Sync clocks between hosts",{"type":48,"tag":62,"props":1463,"children":1465},{"id":1464},"gotchas",[1466],{"type":53,"value":1467},"Gotchas",{"type":48,"tag":1469,"props":1470,"children":1471},"ul",{},[1472,1494,1513,1518,1529,1541],{"type":48,"tag":1473,"props":1474,"children":1475},"li",{},[1476,1478,1484,1486,1492],{"type":53,"value":1477},"COPY mode: cannot use ",{"type":48,"tag":77,"props":1479,"children":1481},{"className":1480},[],[1482],{"type":53,"value":1483},"--compression gzip",{"type":53,"value":1485},"; must use ",{"type":48,"tag":77,"props":1487,"children":1489},{"className":1488},[],[1490],{"type":53,"value":1491},"--compression none",{"type":53,"value":1493}," (or omit, default is none with copy)",{"type":48,"tag":1473,"props":1495,"children":1496},{},[1497,1499,1504,1506,1511],{"type":53,"value":1498},"Table is ",{"type":48,"tag":441,"props":1500,"children":1501},{},[1502],{"type":53,"value":1503},"offline",{"type":53,"value":1505}," during IMPORT INTO — use ",{"type":48,"tag":77,"props":1507,"children":1509},{"className":1508},[],[1510],{"type":53,"value":463},{"type":53,"value":1512}," for zero downtime",{"type":48,"tag":1473,"props":1514,"children":1515},{},[1516],{"type":53,"value":1517},"Schema changes between runs require starting from scratch",{"type":48,"tag":1473,"props":1519,"children":1520},{},[1521,1527],{"type":48,"tag":77,"props":1522,"children":1524},{"className":1523},[],[1525],{"type":53,"value":1526},"--fetch-id",{"type":53,"value":1528}," continuation tokens live in the target's exceptions table",{"type":48,"tag":1473,"props":1530,"children":1531},{},[1532,1534,1539],{"type":53,"value":1533},"For MySQL, ",{"type":48,"tag":77,"props":1535,"children":1537},{"className":1536},[],[1538],{"type":53,"value":923},{"type":53,"value":1540}," skips GTID validation but replication-dependent features won't work",{"type":48,"tag":1473,"props":1542,"children":1543},{},[1544,1546,1552],{"type":53,"value":1545},"After fetch, run ",{"type":48,"tag":77,"props":1547,"children":1549},{"className":1548},[],[1550],{"type":53,"value":1551},"molt verify",{"type":53,"value":1553}," to confirm data integrity",{"type":48,"tag":56,"props":1555,"children":1556},{},[1557,1559,1566],{"type":53,"value":1558},"See ",{"type":48,"tag":1560,"props":1561,"children":1563},"a",{"href":1562},"references\u002Fflags.md",[1564],{"type":53,"value":1565},"flags reference",{"type":53,"value":1567}," for the full flag list.",{"type":48,"tag":1569,"props":1570,"children":1571},"style",{},[1572],{"type":53,"value":1573},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1575,"total":1671},[1576,1590,1605,1622,1635,1648,1661],{"slug":1577,"name":1577,"fn":1578,"description":1579,"org":1580,"tags":1581,"stars":25,"repoUrl":26,"updatedAt":1589},"analyzing-range-distribution","analyze CockroachDB range distribution and health","Analyzes CockroachDB range distribution across tables and indexes using SHOW RANGES to identify range count, size patterns, leaseholder placement, and replication health. Use when investigating hotspots, uneven data distribution, range fragmentation, or validating zone configuration effects without DB Console access.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1582,1583,1586],{"name":17,"slug":18,"type":15},{"name":1584,"slug":1585,"type":15},"Monitoring","monitoring",{"name":1587,"slug":1588,"type":15},"Performance","performance","2026-07-12T07:57:18.753533",{"slug":1591,"name":1591,"fn":1592,"description":1593,"org":1594,"tags":1595,"stars":25,"repoUrl":26,"updatedAt":1604},"analyzing-schema-change-storage-risk","analyze schema change storage requirements","Estimates storage requirements for CockroachDB online schema change backfills using SHOW RANGES WITH DETAILS, KEYS, INDEXES. Use before CREATE INDEX, ADD COLUMN with INDEX\u002FUNIQUE, ALTER PRIMARY KEY, CREATE MATERIALIZED VIEW, CREATE TABLE AS, REFRESH, or SET LOCALITY on tables with large per-index footprints, to avoid mid-backfill disk exhaustion.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1596,1599,1600,1601],{"name":1597,"slug":1598,"type":15},"Data Modeling","data-modeling",{"name":17,"slug":18,"type":15},{"name":1587,"slug":1588,"type":15},{"name":1602,"slug":1603,"type":15},"SQL","sql","2026-07-12T07:57:22.763788",{"slug":1606,"name":1606,"fn":1607,"description":1608,"org":1609,"tags":1610,"stars":25,"repoUrl":26,"updatedAt":1621},"auditing-cis-benchmark","audit CockroachDB clusters against CIS benchmarks","Audits a self-hosted CockroachDB cluster against the CIS CockroachDB Benchmark v1.0.0 Level 1 controls. Supports two audit depths — quick automated scans and full CIS audit procedures. Produces a structured PASS\u002FFAIL\u002FMANUAL report covering installation, system hardening, logging, user access, data protection, and CockroachDB settings. Use when preparing for CIS compliance assessments, hardening self-hosted deployments, or validating security posture against industry benchmarks.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1611,1614,1617,1618],{"name":1612,"slug":1613,"type":15},"Audit","audit",{"name":1615,"slug":1616,"type":15},"Compliance","compliance",{"name":17,"slug":18,"type":15},{"name":1619,"slug":1620,"type":15},"Security","security","2026-07-18T05:48:00.862384",{"slug":1623,"name":1623,"fn":1624,"description":1625,"org":1626,"tags":1627,"stars":25,"repoUrl":26,"updatedAt":1634},"auditing-cloud-cluster-security","audit CockroachDB cluster security posture","Audits the security posture of a CockroachDB cluster (Cloud or self-hosted) across network, authentication, authorization, encryption, audit logging, and backup dimensions. Use when assessing cluster security readiness, preparing for compliance reviews, or investigating security configuration gaps.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1628,1629,1630,1633],{"name":1612,"slug":1613,"type":15},{"name":17,"slug":18,"type":15},{"name":1631,"slug":1632,"type":15},"Operations","operations",{"name":1619,"slug":1620,"type":15},"2026-07-12T07:57:01.506735",{"slug":1636,"name":1636,"fn":1637,"description":1638,"org":1639,"tags":1640,"stars":25,"repoUrl":26,"updatedAt":1647},"auditing-table-statistics","audit optimizer table statistics","Audits optimizer table statistics for staleness, missing coverage, and data quality issues using SHOW STATISTICS. Use when diagnosing poor query performance, unexpected plan changes, or after bulk data changes to identify stale statistics requiring refresh via CREATE STATISTICS.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1641,1642,1645,1646],{"name":1612,"slug":1613,"type":15},{"name":1643,"slug":1644,"type":15},"Data Analysis","data-analysis",{"name":17,"slug":18,"type":15},{"name":1587,"slug":1588,"type":15},"2026-07-12T07:57:16.190081",{"slug":1649,"name":1649,"fn":1650,"description":1651,"org":1652,"tags":1653,"stars":25,"repoUrl":26,"updatedAt":1660},"benchmarking-transaction-patterns","benchmark CockroachDB transaction patterns","Guides benchmarking and comparing explicit multi-statement transactions versus single-statement CTE transactions in CockroachDB, with fair test methodology, contention analysis, and performance interpretation. Use when comparing transaction formulations, benchmarking CockroachDB workloads under contention, investigating retry pressure, or deciding whether to rewrite multi-step application flows into single SQL statements.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1654,1655,1658,1659],{"name":17,"slug":18,"type":15},{"name":1656,"slug":1657,"type":15},"Engineering","engineering",{"name":1587,"slug":1588,"type":15},{"name":1602,"slug":1603,"type":15},"2026-07-12T07:57:26.543278",{"slug":1662,"name":1662,"fn":1663,"description":1664,"org":1665,"tags":1666,"stars":25,"repoUrl":26,"updatedAt":1670},"cockroachdb-sql","write and optimize CockroachDB SQL","Use when writing, generating, or optimizing SQL for CockroachDB, designing CockroachDB schemas, or when the user asks about CockroachDB-specific SQL patterns, type mappings, and distributed database best practices. Also use when encountering CockroachDB anti-patterns like missing primary keys, sequential ID hotspots, or incorrect type usage.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1667,1668,1669],{"name":17,"slug":18,"type":15},{"name":1587,"slug":1588,"type":15},{"name":1602,"slug":1603,"type":15},"2026-07-25T05:31:22.562808",34,{"items":1673,"total":1791},[1674,1691,1705,1718,1729,1739,1750,1756,1763,1770,1777,1784],{"slug":1675,"name":1675,"fn":1676,"description":1677,"org":1678,"tags":1679,"stars":1688,"repoUrl":1689,"updatedAt":1690},"collecting-cockroachdb-operator-escalation-packet","collect CockroachDB operator escalation packets","Collects a complete CockroachDB Operator escalation packet for TSC\u002FTSE or operator-team handoff, including Helm state, Kubernetes resources, logs, operation-specific evidence, pprof goroutine dumps, metrics, and a customer action timeline. Use when general diagnosis cannot resolve an operator-managed CockroachDB Helm issue or before restarting a stuck operator.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1680,1681,1684,1687],{"name":17,"slug":18,"type":15},{"name":1682,"slug":1683,"type":15},"Incident Response","incident-response",{"name":1685,"slug":1686,"type":15},"Kubernetes","kubernetes",{"name":1584,"slug":1585,"type":15},105,"https:\u002F\u002Fgithub.com\u002Fcockroachdb\u002Fhelm-charts","2026-07-12T07:57:25.288146",{"slug":1692,"name":1692,"fn":1693,"description":1694,"org":1695,"tags":1696,"stars":1688,"repoUrl":1689,"updatedAt":1704},"configuring-cockroachdb-helm-tls","configure TLS for CockroachDB Helm charts","Selects and validates TLS settings for CockroachDB Helm chart deployments, including self-signer, cert-manager, and external certificate modes. Use when a customer needs secure CockroachDB Helm values, certificate secret mapping, cert-manager integration, or TLS install troubleshooting before deploying the chart.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1697,1700,1703],{"name":1698,"slug":1699,"type":15},"Deployment","deployment",{"name":1701,"slug":1702,"type":15},"Encryption","encryption",{"name":1619,"slug":1620,"type":15},"2026-07-12T07:56:37.675396",{"slug":1706,"name":1706,"fn":1707,"description":1708,"org":1709,"tags":1710,"stars":1688,"repoUrl":1689,"updatedAt":1717},"debugging-cockroachdb-operator-migrations","debug CockroachDB Operator migration scenarios","Debugs CockroachDB Operator migration scenarios, including Helm StatefulSet to v1beta1 CrdbNode migration and public operator v1alpha1 to v1beta1 migration. Use when migration labels, migration phases, source StatefulSet ownership, converted CRDs, PVC ownership, or post-migration reconciliation are unclear or stuck.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1711,1712,1715,1716],{"name":17,"slug":18,"type":15},{"name":1713,"slug":1714,"type":15},"Debugging","debugging",{"name":1685,"slug":1686,"type":15},{"name":20,"slug":21,"type":15},"2026-07-12T07:56:48.360871",{"slug":1719,"name":1719,"fn":1720,"description":1721,"org":1722,"tags":1723,"stars":1688,"repoUrl":1689,"updatedAt":1728},"diagnosing-cockroachdb-helm-deployments","diagnose CockroachDB Helm chart deployments","Diagnoses failed or unhealthy CockroachDB Helm chart deployments by checking Helm release state, operator health, CrdbCluster and CrdbNode status, pod readiness, RBAC, webhooks, TLS, upgrades, scaling, PVCs, DNS, and multi-region assumptions. Use when Helm install or upgrade fails, pods are not Ready, or the operator is not reconciling.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1724,1725,1726,1727],{"name":17,"slug":18,"type":15},{"name":1713,"slug":1714,"type":15},{"name":1698,"slug":1699,"type":15},{"name":1685,"slug":1686,"type":15},"2026-07-12T07:57:24.018818",{"slug":1730,"name":1730,"fn":1731,"description":1732,"org":1733,"tags":1734,"stars":1688,"repoUrl":1689,"updatedAt":1738},"installing-cockroachdb-with-helm","install CockroachDB using Helm","Guides customer-facing installation of CockroachDB on Kubernetes using the CockroachDB split Helm charts and operator-managed v1beta1 resources. Use when installing CockroachDB with Helm, choosing between published and local split charts, verifying a new install, or helping an agent complete first-time Kubernetes onboarding.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1735,1736,1737],{"name":17,"slug":18,"type":15},{"name":1698,"slug":1699,"type":15},{"name":1685,"slug":1686,"type":15},"2026-07-12T07:56:45.777567",{"slug":1740,"name":1740,"fn":1741,"description":1742,"org":1743,"tags":1744,"stars":1688,"repoUrl":1689,"updatedAt":1749},"validating-cockroachdb-helm-multiregion","validate CockroachDB multi-region Helm deployments","Validates CockroachDB Helm chart values and Kubernetes prerequisites for operator-managed multi-region deployments. Use before adding a region, deploying CockroachDB across multiple Kubernetes clusters, checking region DNS domains, or confirming that all regions share certificate and networking assumptions.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1745,1746,1747,1748],{"name":17,"slug":18,"type":15},{"name":1698,"slug":1699,"type":15},{"name":1685,"slug":1686,"type":15},{"name":1631,"slug":1632,"type":15},"2026-07-12T07:56:47.082609",{"slug":1577,"name":1577,"fn":1578,"description":1579,"org":1751,"tags":1752,"stars":25,"repoUrl":26,"updatedAt":1589},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1753,1754,1755],{"name":17,"slug":18,"type":15},{"name":1584,"slug":1585,"type":15},{"name":1587,"slug":1588,"type":15},{"slug":1591,"name":1591,"fn":1592,"description":1593,"org":1757,"tags":1758,"stars":25,"repoUrl":26,"updatedAt":1604},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1759,1760,1761,1762],{"name":1597,"slug":1598,"type":15},{"name":17,"slug":18,"type":15},{"name":1587,"slug":1588,"type":15},{"name":1602,"slug":1603,"type":15},{"slug":1606,"name":1606,"fn":1607,"description":1608,"org":1764,"tags":1765,"stars":25,"repoUrl":26,"updatedAt":1621},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1766,1767,1768,1769],{"name":1612,"slug":1613,"type":15},{"name":1615,"slug":1616,"type":15},{"name":17,"slug":18,"type":15},{"name":1619,"slug":1620,"type":15},{"slug":1623,"name":1623,"fn":1624,"description":1625,"org":1771,"tags":1772,"stars":25,"repoUrl":26,"updatedAt":1634},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1773,1774,1775,1776],{"name":1612,"slug":1613,"type":15},{"name":17,"slug":18,"type":15},{"name":1631,"slug":1632,"type":15},{"name":1619,"slug":1620,"type":15},{"slug":1636,"name":1636,"fn":1637,"description":1638,"org":1778,"tags":1779,"stars":25,"repoUrl":26,"updatedAt":1647},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1780,1781,1782,1783],{"name":1612,"slug":1613,"type":15},{"name":1643,"slug":1644,"type":15},{"name":17,"slug":18,"type":15},{"name":1587,"slug":1588,"type":15},{"slug":1649,"name":1649,"fn":1650,"description":1651,"org":1785,"tags":1786,"stars":25,"repoUrl":26,"updatedAt":1660},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1787,1788,1789,1790],{"name":17,"slug":18,"type":15},{"name":1656,"slug":1657,"type":15},{"name":1587,"slug":1588,"type":15},{"name":1602,"slug":1603,"type":15},40]