How to maintain CDC pipelines during source database version upgrades
Upgrading your source database version (e.g., PostgreSQL 14 to 16, MySQL 5.7 to 8.0) requires careful planning to maintain CDC pipeline continuity. This guide covers pre-upgrade preparation, upgrade procedures, and post-upgrade verification for each supported database type.
We recommend notifying Streamkap support about your database upgrade ahead of time. Some steps may require assistance from the Streamkap team, particularly around offset management and connector restarts.
General Pre-Upgrade Checklist
Before upgrading any source database, complete the following preparation steps:
Verify your pipeline is healthy — no errors, low consumer lag, and the connector shows a RUNNING status
Note the current pipeline position (snapshot status, consumer lag metrics)
Consider pausing the pipeline during the upgrade window to avoid partial captures
Ensure a database backup is available and tested
Review the database-specific CDC requirements for your target version (see tabs below)
Test the upgrade in a non-production environment first, including verifying that CDC resumes correctly
Streamkap handles brief network interruptions well. If a monitored database stops, the connector attempts to resume from the last recorded position once communication is restored. However, database version upgrades can invalidate replication positions and require additional steps beyond a simple reconnection.
Database-Specific Upgrade Guides
PostgreSQL
MySQL
Oracle
SQL Server
MongoDB
Minor Version Upgrades (e.g., 14.8 to 14.12)
Minor version upgrades are generally safe for CDC pipelines:
Replication slots are preserved across minor upgrades
The pipeline reconnects automatically after the database restarts
No snapshot is typically required
Verify that wal_level = logical remains set after the upgrade, as minor upgrades should not change this.
Major Version Upgrades (e.g., 14 to 16)
Major PostgreSQL upgrades (using pg_upgrade or equivalent) drop logical replication slots. The pipeline will need to be reconfigured after the upgrade. Failing to follow the correct procedure can result in silent data loss.
PostgreSQL removes replication slots during major upgrades and does not restore them. When the connector restarts, it requests the last known offset, but PostgreSQL cannot return it from the new slot. A new replication slot only tracks changes from its creation point, so the connector would skip older change events and resume from the latest log position.Procedure:
1
Stop writes to the database
Using your database’s upgrade procedure, ensure writes to the database have stopped.
2
Allow the connector to drain all events
Allow the connector to capture all remaining change events before starting the upgrade. Ask Streamkap to confirm all events have been captured.
3
Stop the Source in Streamkap
Stop the Source in the Streamkap app. This flushes the last records and saves the last offset.
4
Upgrade the database
Stop the database and upgrade it using your standard upgrade procedure (e.g., pg_upgrade).
5
Verify wal_level
Confirm that wal_level = logical is set in the upgraded PostgreSQL configuration. Major upgrades may reset this parameter.
SQL
SHOW wal_level;
6
Recreate the replication slot
The replication slot must be recreated after the upgrade:
Confirm the publication for Streamkap still exists. Recreate it if necessary with the same tables:
SQL
-- Check if publication existsSELECT * FROM pg_publication WHERE pubname = 'streamkap_pub';-- Recreate if needed (all tables)CREATE PUBLICATION streamkap_pub FOR ALL TABLES;-- Or recreate with specific tablesCREATE PUBLICATION streamkap_pub FOR TABLE table1, table2, table3;
8
Restore write access and resume the Source
Restore write access to the database, then resume or restart the Source in the Streamkap app.
9
Trigger a snapshot if needed
If any events were not captured before the upgrade, trigger a snapshot for the affected tables to ensure no data was missed.
If you choose different names for the replication slot or publication during the upgrade, update them in the Streamkap setup page for the relevant PostgreSQL Source. Contact Streamkap, as they may need to reset your connector’s offsets.
RDS / Aurora PostgreSQL Specifics
The same general procedure applies for Amazon RDS and Aurora PostgreSQL managed upgrades. Key considerations:
Use the RDS console or CLI to perform the version upgrade
After the upgrade, verify rds.logical_replication is still set to 1 in your parameter group
Recreate the replication slot and verify the publication as described above
For Aurora, ensure you are upgrading the primary instance (Aurora read replicas only support physical replication)
Exact behavior during RDS managed upgrades may vary depending on the upgrade type (in-place vs. blue/green deployment). Refer to your PostgreSQL platform setup guide for platform-specific configuration details.
For full PostgreSQL source setup and troubleshooting details, see:
Minor version upgrades are generally seamless for MySQL CDC pipelines:
If GTID is enabled, the pipeline resumes from the GTID position automatically
Binary log positions are typically preserved
No snapshot is required in most cases
Major Version Upgrades (e.g., 5.7 to 8.0)
Major MySQL upgrades require verifying that all CDC-related configuration remains intact.Pre-upgrade verification:Confirm these settings are properly configured in your target version:
Setting
Required Value
Verification Query
binlog_format
ROW
SHOW VARIABLES LIKE 'binlog_format';
binlog_row_image
FULL
SHOW VARIABLES LIKE 'binlog_row_image';
log_bin
ON
SHOW VARIABLES LIKE 'log_bin';
gtid_mode (recommended)
ON
SHOW VARIABLES LIKE 'gtid_mode';
Upgrade behavior depends on GTID configuration:
GTID enabled (recommended)
If GTID mode is enabled, the upgrade is significantly simpler:
Stop writes to the database
Allow the connector to capture all remaining events
Perform the upgrade using your standard procedure
Verify all CDC-related settings (see table above)
Resume the Source in Streamkap — the connector resumes from the GTID position
GTID provides a global transaction identifier that survives the upgrade, allowing the connector to resume from exactly where it left off.
GTID not enabled
Without GTID, MySQL uses binlog file and position tracking. Major upgrades can change binlog filenames and positions, which means:
Stop writes to the database
Allow the connector to capture all remaining events and confirm with Streamkap
Stop the Source in Streamkap
Perform the upgrade
Verify all CDC-related settings (see table above)
Resume the Source in Streamkap
Trigger a snapshot for all affected tables, as the binlog position from before the upgrade may no longer be valid
Without GTID, there is a higher risk of data gaps during the upgrade. We strongly recommend enabling GTID before upgrading if possible. See Enable GTID for instructions.
MySQL 5.7 to 8.0 specific notes:
MySQL 8.0 changes the default authentication plugin to caching_sha2_password. If your Streamkap user was created with mysql_native_password, verify it still authenticates correctly after the upgrade
Review binlog retention settings after upgrade: CALL mysql.rds_show_configuration; (RDS) or SHOW VARIABLES LIKE 'binlog_expire_logs_seconds'; (self-hosted)
Streamkap’s Oracle connector uses LogMiner to read redo and archive logs for CDC. After upgrading your Oracle database, verify the following:Post-upgrade verification checklist:
Supplemental logging is enabled — Oracle upgrades may reset supplemental logging settings
SQL
-- Verify database-level supplemental loggingSELECT NAME, SUPPLEMENTAL_LOG_DATA_MIN FROM V$DATABASE;-- SUPPLEMENTAL_LOG_DATA_MIN should be YES
Table-level supplemental logging is intact — Verify for each captured table
SQL
-- Check table-level supplemental loggingSELECT * FROM ALL_LOG_GROUPS WHERE TABLE_NAME = '{TABLE_NAME}';
ARCHIVELOG mode is still enabled
SQL
archive log list;-- Database log mode should be: Archive Mode
Redo log configuration is unchanged — Verify redo log sizes and groups
SQL
SELECT GROUP#, BYTES/1024/1024 SIZE_MB, STATUS FROM V$LOG ORDER BY 1;
Streamkap user privileges are intact — Verify the STREAMKAP_USER (or C##STREAMKAP_USER for CDB) retains all necessary grants, including LOGMINING, FLASHBACK ANY TABLE, and access to V$ views
Upgrade procedure:
Stop writes to the database
Allow the connector to capture all remaining events
Stop the Source in Streamkap
Perform the Oracle upgrade using your standard procedure
SQL Server CDC relies on change tracking tables and the SQL Server Agent service. Upgrades can disrupt both of these.Post-upgrade verification checklist:
CDC is still enabled on the database
SQL
SELECT name, is_cdc_enabled FROM sys.databases WHERE name = '{database}';-- is_cdc_enabled should be 1
CDC capture jobs are running — SQL Server CDC depends on capture and cleanup jobs
SQL
EXEC sys.sp_cdc_help_jobs;
SQL Server Agent is running — The Agent must be active for CDC capture jobs to execute. If it is not running, start it through SQL Server Management Studio or via service management
CDC is enabled on all captured tables — Verify each table still has CDC tracking enabled
SQL
EXEC sys.sp_cdc_help_change_data_capture;
Streamkap user permissions are intact — Verify the streamkap_user retains SELECT privileges on the cdc schema and source tables
Upgrade procedure:
Stop writes to the database
Allow the connector to capture all remaining events
Stop the Source in Streamkap
Perform the SQL Server upgrade
Verify all items in the checklist above
Re-enable CDC on the database and tables if needed
Ensure SQL Server Agent is running
Resume the Source in Streamkap
Trigger a snapshot if you suspect any events were missed
If CDC is disabled during the upgrade process (either intentionally or by the upgrade procedure), you must re-enable it on both the database and each individual table. Change events that occur while CDC is disabled will not be captured.
Streamkap’s MongoDB connector uses change streams (backed by the oplog) for CDC. MongoDB upgrade behavior depends on your deployment type and the version jump.Replica set rolling upgrades are CDC-friendly:
Rolling upgrades (upgrading secondary nodes first, then stepping down the primary) allow the connector to continue reading change streams with minimal interruption
The connector automatically reconnects to the new primary after a stepdown
Key risks during major version upgrades:
Change stream resume tokens may not survive major version upgrades if the oplog format changes
If the resume token is invalidated, the connector cannot resume from its last position
Post-upgrade verification checklist:
Oplog size is sufficient — Verify the oplog window is large enough to cover the upgrade duration plus a buffer
Replica set is healthy — All members should be in a healthy state
rs.status()
Streamkap user privileges are intact — Verify the streamkap_user retains readAnyDatabase and read on the local database
Change streams are functional — Verify the connector can open a change stream on the target collections
Upgrade procedure:
Verify your oplog window is large enough to cover the expected upgrade duration
If performing a rolling upgrade, allow the connector to continue running during secondary node upgrades
Before stepping down the primary, allow the connector to capture all pending events
Stop the Source in Streamkap if the resume token may be invalidated (major version upgrade)
Complete the upgrade
Verify all items in the checklist above
Resume the Source in Streamkap
Trigger a snapshot if the resume token was invalidated or you suspect data gaps
Compare row counts between source and destination for key tables to identify any gaps
Monitor the pipeline for 24-48 hours for any delayed issues
When to Snapshot
A full snapshot is required in specific situations. Trigger a snapshot if any of the following apply:
Scenario
Database
Reason
Replication slot was dropped
PostgreSQL
Major upgrades drop logical replication slots; new slots only track changes from creation
Binlog position was lost
MySQL (without GTID)
Binlog file names and positions can change during major upgrades
Resume token was invalidated
MongoDB
Major version upgrades may change oplog format, invalidating existing resume tokens
CDC was disabled during upgrade
SQL Server
Change events are not captured while CDC is disabled
Supplemental logging was reset
Oracle
Events during the period without supplemental logging are not captured
Data gaps are suspected
Any
If you cannot confirm all events were captured before the upgrade
If all change events were not captured before stopping the Source and upgrading the database, you can perform a snapshot after the upgrade is completed to ensure no change events were missed. See Snapshots & Backfilling for detailed snapshot procedures.
Cloud-Managed Database Considerations
Cloud-managed database upgrades (Amazon RDS, Aurora, Google Cloud SQL, Azure) vary depending on the provider’s upgrade mechanism (in-place, blue/green deployment, read replica promotion, etc.). The general procedures in this guide apply, but consult your cloud provider’s documentation for specific upgrade behavior.
Key points for managed database upgrades:
Amazon RDS / Aurora: Managed upgrades may handle some infrastructure steps automatically, but replication slots (PostgreSQL) and CDC configuration (SQL Server) still need manual verification
Google Cloud SQL: Similar to RDS — verify CDC-related parameters in your database flags after the upgrade
Azure Database: Check that server parameters and CDC settings are preserved through the upgrade process
MongoDB Atlas: Atlas manages rolling upgrades automatically for replica sets, but verify your connector resumes correctly after the upgrade completes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Streamkap Docs","colors":{"primary":"#01313c","light":"#6DE796","dark":"#01313c"},"logo":{"light":"https://mintcdn.com/streamkap/IToSzJnfJcTNxve_/logo/logo-streamkap.svg?fit=max\u0026auto=format\u0026n=IToSzJnfJcTNxve_\u0026q=85\u0026s=f5d4d5beaec46cd1cb335ca6c786d512","dark":"https://mintcdn.com/streamkap/IToSzJnfJcTNxve_/logo/logo-streamkap-dark.svg?fit=max\u0026auto=format\u0026n=IToSzJnfJcTNxve_\u0026q=85\u0026s=384b263fa111a6b6d4414afdef16caab"},"favicon":"https://mintcdn.com/streamkap/3Pxl2KMoNOFpQbcD/b867534-small-icon-dark-bg.png?fit=max\u0026auto=format\u0026n=3Pxl2KMoNOFpQbcD\u0026q=85\u0026s=c4212157ac62273b386ee021a1d08587","background":{"decoration":"windows","color":{"dark":"#00313c"}},"navbar":{"links":[{"href":"https://docs.streamkap.com/login?redirect_uri=/api-reference","label":"Log In"}],"primary":{"type":"button","label":"Free Trial","href":"https://app.streamkap.com/?__hstc=157095033.ab3f92cd8f148386d7ab078bc558511c.1755622930359.1755881354597.1755883908073.4\u0026__hssc=157095033.1.1755883908073\u0026__hsfp=1551620669\u0026_gl=1*1a71a69*_gcl_au*ODAwODYxMTU0LjE3NTU2MjIxMjY.*_ga*NjYxMDkzMDMwLjE3NTU2MjIxMjY.*_ga_R90C8XW3LS*czE3NTU4ODEzNTIkbzMkZzEkdDE3NTU4ODQwNDQkajYwJGwwJGgw"}},"footer":{"socials":{"x":"https://x.com/Streamkap","linkedin":"https://www.linkedin.com/company/streamkap","website":"https://streamkap.com/"}},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"integrations":{"gtm":{"tagId":"GTM-W9SN5LK"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Free Trial","icon":"flask","href":"https://app.streamkap.com/?__hstc=157095033.ab3f92cd8f148386d7ab078bc558511c.1755622930359.1755881354597.1755883908073.4\u0026__hssc=157095033.1.1755883908073\u0026__hsfp=1551620669\u0026_gl=1*1842m2l*_gcl_au*ODAwODYxMTU0LjE3NTU2MjIxMjY.*_ga*NjYxMDkzMDMwLjE3NTU2MjIxMjY.*_ga_R90C8XW3LS*czE3NTU4ODEzNTIkbzMkZzEkdDE3NTU4ODQwNDQkajYwJGwwJGgw"},{"anchor":"Blog","icon":"rss","href":"https://streamkap.com/blog"},{"anchor":"Subscribe","icon":"file-signature","href":"https://streamkap.substack.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"streamkap","hasAudioNarration":false,"actualSubdomain":"streamkap","customDomains":["docs.streamkap.com"],"gitSource":{"type":"github","owner":"streamkap-com","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aa25fa42b27e727a02512c0","clientVersion":"0.0.4416","searchFilterCounts":[{"language":"default","tag":"API Reference","count":266},{"language":"default","tag":"Guides","count":178},{"language":"default","tag":"Sources","count":100},{"language":"default","tag":"Destinations","count":61},{"language":"default","tag":"Agents","count":41},{"language":"default","tag":"Transforms","count":38},{"language":"default","tag":"App","count":23},{"language":"default","tag":"Topics","count":22},{"language":"default","tag":"Security","count":14},{"language":"default","tag":"Pipelines","count":14}],"searchSettings":{"maxResults":10}},"assistantConfig":{"enableStarterQuestions":false,"deflection":{"enabled":true,"email":"support@streamkap.com","showHelpButton":true}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"ol ol{list-style-type:lower-roman!important}.dark .prose :where(a):not(:where([class~=\"not-prose\"],[class~=\"not-prose\"] *)){border-bottom:1px solid #6de796}.dark .prose :where(a:hover):not(:where([class~=\"not-prose\"],[class~=\"not-prose\"] *)){border-bottom-width:2px}"}]}
{"page":{"pagePath":"database-upgrade-guide","slug":"/database-upgrade-guide","pageMetadata":{"title":"Database Upgrade Guide","description":"How to maintain CDC pipelines during source database version upgrades","href":"/database-upgrade-guide"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"How to maintain CDC pipelines during source database version upgrades\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"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`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,Heading,Info,Note,Step,Steps,Tab,Table,Tabs,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Upgrading your source database version (e.g., PostgreSQL 14 to 16, MySQL 5.7 to 8.0) requires careful planning to maintain CDC pipeline continuity. This guide covers pre-upgrade preparation, upgrade procedures, and post-upgrade verification for each supported database type.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`We recommend notifying `,_jsx(_components.a,{href:`mailto:support@streamkap.com`,children:`Streamkap support`}),` about your database upgrade ahead of time. Some steps may require assistance from the Streamkap team, particularly around offset management and connector restarts.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`general-pre-upgrade-checklist`,children:`General Pre-Upgrade Checklist`}),`\n`,_jsx(_components.p,{children:`Before upgrading any source database, complete the following preparation steps:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Verify your pipeline is healthy — no errors, low consumer lag, and the connector shows a `,_jsx(_components.strong,{children:`RUNNING`}),` status`]}),`\n`,_jsx(_components.li,{children:`Note the current pipeline position (snapshot status, consumer lag metrics)`}),`\n`,_jsx(_components.li,{children:`Consider pausing the pipeline during the upgrade window to avoid partial captures`}),`\n`,_jsx(_components.li,{children:`Ensure a database backup is available and tested`}),`\n`,_jsx(_components.li,{children:`Review the database-specific CDC requirements for your target version (see tabs below)`}),`\n`,_jsx(_components.li,{children:`Test the upgrade in a non-production environment first, including verifying that CDC resumes correctly`}),`\n`]}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`Streamkap handles brief network interruptions well. If a monitored database stops, the connector attempts to resume from the last recorded position once communication is restored. However, database version upgrades can invalidate replication positions and require additional steps beyond a simple reconnection.`})}),`\n`,_jsx(Heading,{level:`2`,id:`database-specific-upgrade-guides`,children:`Database-Specific Upgrade Guides`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`PostgreSQL`,id:`postgresql`,\"data-child-heading-ids\":`[\"minor-version-upgrades-e-g-%2C-14-8-to-14-12\",\"major-version-upgrades-e-g-%2C-14-to-16\",\"rds-%2F-aurora-postgresql-specifics\"]`,children:[_jsx(Heading,{level:`3`,id:`minor-version-upgrades-e-g--14-8-to-14-12`,children:`Minor Version Upgrades (e.g., 14.8 to 14.12)`}),_jsx(_components.p,{children:`Minor version upgrades are generally safe for CDC pipelines:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Replication slots are preserved across minor upgrades`}),`\n`,_jsx(_components.li,{children:`The pipeline reconnects automatically after the database restarts`}),`\n`,_jsx(_components.li,{children:`No snapshot is typically required`}),`\n`]}),_jsxs(_components.p,{children:[`Verify that `,_jsx(_components.code,{children:`wal_level = logical`}),` remains set after the upgrade, as minor upgrades should not change this.`]}),_jsx(Heading,{level:`3`,id:`major-version-upgrades-e-g--14-to-16`,children:`Major Version Upgrades (e.g., 14 to 16)`}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`Major PostgreSQL upgrades (using `,_jsx(_components.code,{children:`pg_upgrade`}),` or equivalent) `,_jsx(_components.strong,{children:`drop logical replication slots`}),`. The pipeline will need to be reconfigured after the upgrade. Failing to follow the correct procedure can result in silent data loss.`]})}),_jsx(_components.p,{children:`PostgreSQL removes replication slots during major upgrades and does not restore them. When the connector restarts, it requests the last known offset, but PostgreSQL cannot return it from the new slot. A new replication slot only tracks changes from its creation point, so the connector would skip older change events and resume from the latest log position.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Procedure:`})}),_jsxs(Steps,{children:[_jsx(Step,{title:`Stop writes to the database`,children:_jsx(_components.p,{children:`Using your database’s upgrade procedure, ensure writes to the database have stopped.`})}),_jsx(Step,{title:`Allow the connector to drain all events`,children:_jsx(_components.p,{children:`Allow the connector to capture all remaining change events before starting the upgrade. Ask Streamkap to confirm all events have been captured.`})}),_jsx(Step,{title:`Stop the Source in Streamkap`,children:_jsxs(_components.p,{children:[`Stop the Source in the `,_jsx(_components.a,{href:`https://app.streamkap.com/connectors?tab=Sources`,children:`Streamkap app`}),`. This flushes the last records and saves the last offset.`]})}),_jsx(Step,{title:`Upgrade the database`,children:_jsxs(_components.p,{children:[`Stop the database and upgrade it using your standard upgrade procedure (e.g., `,_jsx(_components.code,{children:`pg_upgrade`}),`).`]})}),_jsxs(Step,{title:`Verify wal_level`,children:[_jsxs(_components.p,{children:[`Confirm that `,_jsx(_components.code,{children:`wal_level = logical`}),` is set in the upgraded PostgreSQL configuration. Major upgrades may reset this parameter.`]}),_jsx(CodeBlock,{filename:`SQL`,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`SHOW wal_level;`})}),`\n`]})})})]}),_jsxs(Step,{title:`Recreate the replication slot`,children:[_jsx(_components.p,{children:`The replication slot must be recreated after the upgrade:`}),_jsx(CodeBlock,{filename:`SQL`,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`SELECT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pg_create_logical_replication_slot(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'streamkap_pgoutput_slot'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'pgoutput'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),_jsxs(Step,{title:`Verify or recreate the publication`,children:[_jsx(_components.p,{children:`Confirm the publication for Streamkap still exists. Recreate it if necessary with the same tables:`}),_jsx(CodeBlock,{filename:`SQL`,numberOfLines:`8`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`-- Check if publication exists`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`SELECT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` FROM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pg_publication `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`WHERE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pubname `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'streamkap_pub'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`-- Recreate if needed (all tables)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`CREATE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` PUBLICATION streamkap_pub `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`FOR`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ALL TABLES;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`-- Or recreate with specific tables`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`CREATE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` PUBLICATION streamkap_pub `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`FOR`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` TABLE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` table1, table2, table3;`})]}),`\n`]})})})]}),_jsx(Step,{title:`Restore write access and resume the Source`,children:_jsx(_components.p,{children:`Restore write access to the database, then resume or restart the Source in the Streamkap app.`})}),_jsx(Step,{title:`Trigger a snapshot if needed`,children:_jsxs(_components.p,{children:[`If any events were not captured before the upgrade, trigger a `,_jsx(_components.a,{href:`/snapshots`,children:`snapshot`}),` for the affected tables to ensure no data was missed.`]})})]}),_jsx(Note,{children:_jsx(_components.p,{children:`If you choose different names for the replication slot or publication during the upgrade, update them in the Streamkap setup page for the relevant PostgreSQL Source. Contact Streamkap, as they may need to reset your connector’s offsets.`})}),_jsx(Heading,{level:`3`,id:`rds-/-aurora-postgresql-specifics`,children:`RDS / Aurora PostgreSQL Specifics`}),_jsx(_components.p,{children:`The same general procedure applies for Amazon RDS and Aurora PostgreSQL managed upgrades. Key considerations:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Use the RDS console or CLI to perform the version upgrade`}),`\n`,_jsxs(_components.li,{children:[`After the upgrade, verify `,_jsx(_components.code,{children:`rds.logical_replication`}),` is still set to `,_jsx(_components.code,{children:`1`}),` in your parameter group`]}),`\n`,_jsx(_components.li,{children:`Recreate the replication slot and verify the publication as described above`}),`\n`,_jsxs(_components.li,{children:[`For Aurora, ensure you are upgrading the `,_jsx(_components.strong,{children:`primary`}),` instance (Aurora read replicas only support physical replication)`]}),`\n`]}),_jsx(Info,{children:_jsxs(_components.p,{children:[`Exact behavior during RDS managed upgrades may vary depending on the upgrade type (in-place vs. blue/green deployment). Refer to your `,_jsx(_components.a,{href:`/postgresql`,children:`PostgreSQL platform setup guide`}),` for platform-specific configuration details.`]})}),_jsx(_components.p,{children:`For full PostgreSQL source setup and troubleshooting details, see:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/postgresql-self-hosted`,children:`PostgreSQL (self-hosted)`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/postgresql-on-amazon-rds`,children:`Amazon RDS PostgreSQL`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/amazon-rds-aurora-postgresql`,children:`Amazon RDS Aurora PostgreSQL`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/postgresql-source-faq`,children:`PostgreSQL Source FAQ`})}),`\n`]})]}),_jsxs(Tab,{title:`MySQL`,id:`mysql`,\"data-child-heading-ids\":`[\"minor-version-upgrades-e-g-%2C-8-0-30-to-8-0-35\",\"major-version-upgrades-e-g-%2C-5-7-to-8-0\"]`,children:[_jsx(Heading,{level:`3`,id:`minor-version-upgrades-e-g--8-0-30-to-8-0-35`,children:`Minor Version Upgrades (e.g., 8.0.30 to 8.0.35)`}),_jsx(_components.p,{children:`Minor version upgrades are generally seamless for MySQL CDC pipelines:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`If GTID is enabled, the pipeline resumes from the GTID position automatically`}),`\n`,_jsx(_components.li,{children:`Binary log positions are typically preserved`}),`\n`,_jsx(_components.li,{children:`No snapshot is required in most cases`}),`\n`]}),_jsx(Heading,{level:`3`,id:`major-version-upgrades-e-g--5-7-to-8-0`,children:`Major Version Upgrades (e.g., 5.7 to 8.0)`}),_jsx(_components.p,{children:`Major MySQL upgrades require verifying that all CDC-related configuration remains intact.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Pre-upgrade verification:`})}),_jsx(_components.p,{children:`Confirm these settings are properly configured in your target version:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setting`}),_jsx(_components.th,{children:`Required Value`}),_jsx(_components.th,{children:`Verification Query`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`binlog_format`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ROW`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SHOW VARIABLES LIKE 'binlog_format';`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`binlog_row_image`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`FULL`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SHOW VARIABLES LIKE 'binlog_row_image';`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`log_bin`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ON`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SHOW VARIABLES LIKE 'log_bin';`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`gtid_mode`}),` (recommended)`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ON`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SHOW VARIABLES LIKE 'gtid_mode';`})})]})]})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Upgrade behavior depends on GTID configuration:`})}),_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`GTID enabled (recommended)`,id:`gtid-enabled-recommended`,children:[_jsx(_components.p,{children:`If GTID mode is enabled, the upgrade is significantly simpler:`}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Stop writes to the database`}),`\n`,_jsx(_components.li,{children:`Allow the connector to capture all remaining events`}),`\n`,_jsx(_components.li,{children:`Perform the upgrade using your standard procedure`}),`\n`,_jsx(_components.li,{children:`Verify all CDC-related settings (see table above)`}),`\n`,_jsx(_components.li,{children:`Resume the Source in Streamkap — the connector resumes from the GTID position`}),`\n`]}),_jsx(_components.p,{children:`GTID provides a global transaction identifier that survives the upgrade, allowing the connector to resume from exactly where it left off.`})]}),_jsxs(Accordion,{title:`GTID not enabled`,id:`gtid-not-enabled`,children:[_jsx(_components.p,{children:`Without GTID, MySQL uses binlog file and position tracking. Major upgrades can change binlog filenames and positions, which means:`}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Stop writes to the database`}),`\n`,_jsx(_components.li,{children:`Allow the connector to capture all remaining events and confirm with Streamkap`}),`\n`,_jsx(_components.li,{children:`Stop the Source in Streamkap`}),`\n`,_jsx(_components.li,{children:`Perform the upgrade`}),`\n`,_jsx(_components.li,{children:`Verify all CDC-related settings (see table above)`}),`\n`,_jsx(_components.li,{children:`Resume the Source in Streamkap`}),`\n`,_jsxs(_components.li,{children:[`Trigger a `,_jsx(_components.a,{href:`/snapshots`,children:`snapshot`}),` for all affected tables, as the binlog position from before the upgrade may no longer be valid`]}),`\n`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`Without GTID, there is a higher risk of data gaps during the upgrade. We strongly recommend enabling GTID before upgrading if possible. See `,_jsx(_components.a,{href:`/amazon-rds-mysql#method-1-enable-gtid-recommended`,children:`Enable GTID`}),` for instructions.`]})})]})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`MySQL 5.7 to 8.0 specific notes:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`MySQL 8.0 changes the default authentication plugin to `,_jsx(_components.code,{children:`caching_sha2_password`}),`. If your Streamkap user was created with `,_jsx(_components.code,{children:`mysql_native_password`}),`, verify it still authenticates correctly after the upgrade`]}),`\n`,_jsxs(_components.li,{children:[`Review binlog retention settings after upgrade: `,_jsx(_components.code,{children:`CALL mysql.rds_show_configuration;`}),` (RDS) or `,_jsx(_components.code,{children:`SHOW VARIABLES LIKE 'binlog_expire_logs_seconds';`}),` (self-hosted)`]}),`\n`]}),_jsx(_components.p,{children:`For full MySQL source setup details, see:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/amazon-rds-mysql`,children:`Amazon RDS MySQL`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/mysql-generic`,children:`MySQL (Generic)`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/mysql-source-faq`,children:`MySQL Source FAQ`})}),`\n`]})]}),_jsxs(Tab,{title:`Oracle`,id:`oracle`,\"data-child-heading-ids\":`[\"general-upgrade-considerations\"]`,children:[_jsx(Heading,{level:`3`,id:`general-upgrade-considerations`,children:`General Upgrade Considerations`}),_jsx(_components.p,{children:`Streamkap’s Oracle connector uses LogMiner to read redo and archive logs for CDC. After upgrading your Oracle database, verify the following:`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Post-upgrade verification checklist:`})}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Supplemental logging is enabled`}),` — Oracle upgrades may reset supplemental logging settings`]}),`\n`,_jsx(CodeBlock,{filename:`SQL`,numberOfLines:`3`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`-- Verify database-level supplemental logging`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`SELECT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` NAME`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, SUPPLEMENTAL_LOG_DATA_MIN `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`FROM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` V$`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`DATABASE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`-- SUPPLEMENTAL_LOG_DATA_MIN should be YES`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Table-level supplemental logging is intact`}),` — Verify for each captured table`]}),`\n`,_jsx(CodeBlock,{filename:`SQL`,numberOfLines:`2`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`-- Check table-level supplemental logging`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`SELECT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` FROM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ALL_LOG_GROUPS `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`WHERE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` TABLE_NAME `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{TABLE_NAME}'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`ARCHIVELOG mode is still enabled`})}),`\n`,_jsx(CodeBlock,{filename:`SQL`,numberOfLines:`2`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`archive `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` list;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`-- Database log mode should be: Archive Mode`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Redo log configuration is unchanged`}),` — Verify redo log sizes and groups`]}),`\n`,_jsx(CodeBlock,{filename:`SQL`,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`SELECT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` GROUP#, BYTES`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1024`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1024`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` SIZE_MB, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`STATUS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` FROM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` V$`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`LOG`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` ORDER BY`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Streamkap user privileges are intact`}),` — Verify the `,_jsx(_components.code,{children:`STREAMKAP_USER`}),` (or `,_jsx(_components.code,{children:`C##STREAMKAP_USER`}),` for CDB) retains all necessary grants, including `,_jsx(_components.code,{children:`LOGMINING`}),`, `,_jsx(_components.code,{children:`FLASHBACK ANY TABLE`}),`, and access to `,_jsx(_components.code,{children:`V$`}),` views`]}),`\n`]}),`\n`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Upgrade procedure:`})}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Stop writes to the database`}),`\n`,_jsx(_components.li,{children:`Allow the connector to capture all remaining events`}),`\n`,_jsx(_components.li,{children:`Stop the Source in Streamkap`}),`\n`,_jsx(_components.li,{children:`Perform the Oracle upgrade using your standard procedure`}),`\n`,_jsx(_components.li,{children:`Verify all items in the checklist above`}),`\n`,_jsxs(_components.li,{children:[`Re-enable supplemental logging if needed (`,_jsx(_components.code,{children:`ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;`}),`)`]}),`\n`,_jsx(_components.li,{children:`Resume the Source in Streamkap`}),`\n`,_jsxs(_components.li,{children:[`Trigger a `,_jsx(_components.a,{href:`/snapshots`,children:`snapshot`}),` if you suspect any events were missed`]}),`\n`]}),_jsx(_components.p,{children:`For full Oracle source setup details, see:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/oracle-generic`,children:`Oracle (Generic)`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/amazon-rds-oracle`,children:`Oracle on Amazon RDS`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/oracle-source-faq`,children:`Oracle Source FAQ`})}),`\n`]})]}),_jsxs(Tab,{title:`SQL Server`,id:`sql-server`,\"data-child-heading-ids\":`[\"general-upgrade-considerations-2\"]`,children:[_jsx(Heading,{level:`3`,id:`general-upgrade-considerations-2`,children:`General Upgrade Considerations`}),_jsx(_components.p,{children:`SQL Server CDC relies on change tracking tables and the SQL Server Agent service. Upgrades can disrupt both of these.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Post-upgrade verification checklist:`})}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`CDC is still enabled on the database`})}),`\n`,_jsx(CodeBlock,{filename:`SQL`,numberOfLines:`2`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`SELECT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, is_cdc_enabled `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`FROM`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` sys`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`databases`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` WHERE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{database}'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`-- is_cdc_enabled should be 1`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`CDC capture jobs are running`}),` — SQL Server CDC depends on capture and cleanup jobs`]}),`\n`,_jsx(CodeBlock,{filename:`SQL`,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`EXEC`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` sys`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`sp_cdc_help_jobs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`SQL Server Agent is running`}),` — The Agent must be active for CDC capture jobs to execute. If it is not running, start it through SQL Server Management Studio or via service management`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`CDC is enabled on all captured tables`}),` — Verify each table still has CDC tracking enabled`]}),`\n`,_jsx(CodeBlock,{filename:`SQL`,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`EXEC`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` sys`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`sp_cdc_help_change_data_capture`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Streamkap user permissions are intact`}),` — Verify the `,_jsx(_components.code,{children:`streamkap_user`}),` retains `,_jsx(_components.code,{children:`SELECT`}),` privileges on the `,_jsx(_components.code,{children:`cdc`}),` schema and source tables`]}),`\n`]}),`\n`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Upgrade procedure:`})}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Stop writes to the database`}),`\n`,_jsx(_components.li,{children:`Allow the connector to capture all remaining events`}),`\n`,_jsx(_components.li,{children:`Stop the Source in Streamkap`}),`\n`,_jsx(_components.li,{children:`Perform the SQL Server upgrade`}),`\n`,_jsx(_components.li,{children:`Verify all items in the checklist above`}),`\n`,_jsx(_components.li,{children:`Re-enable CDC on the database and tables if needed`}),`\n`,_jsx(_components.li,{children:`Ensure SQL Server Agent is running`}),`\n`,_jsx(_components.li,{children:`Resume the Source in Streamkap`}),`\n`,_jsxs(_components.li,{children:[`Trigger a `,_jsx(_components.a,{href:`/snapshots`,children:`snapshot`}),` if you suspect any events were missed`]}),`\n`]}),_jsx(Warning,{children:_jsx(_components.p,{children:`If CDC is disabled during the upgrade process (either intentionally or by the upgrade procedure), you must re-enable it on both the database and each individual table. Change events that occur while CDC is disabled will not be captured.`})}),_jsx(_components.p,{children:`For full SQL Server source setup details, see:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sql-server-generic`,children:`SQL Server (Generic)`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/amazon-rds-sql-server`,children:`SQL Server on Amazon RDS`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sql-server-on-google-cloud-sql`,children:`SQL Server on Google Cloud SQL`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sql-server-on-azure-sql-database`,children:`Azure SQL Database`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sql-server-source-faq`,children:`SQL Server Source FAQ`})}),`\n`]})]}),_jsxs(Tab,{title:`MongoDB`,id:`mongodb`,\"data-child-heading-ids\":`[\"general-upgrade-considerations-3\"]`,children:[_jsx(Heading,{level:`3`,id:`general-upgrade-considerations-3`,children:`General Upgrade Considerations`}),_jsx(_components.p,{children:`Streamkap’s MongoDB connector uses change streams (backed by the oplog) for CDC. MongoDB upgrade behavior depends on your deployment type and the version jump.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Replica set rolling upgrades`}),` are CDC-friendly:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Rolling upgrades (upgrading secondary nodes first, then stepping down the primary) allow the connector to continue reading change streams with minimal interruption`}),`\n`,_jsx(_components.li,{children:`The connector automatically reconnects to the new primary after a stepdown`}),`\n`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Key risks during major version upgrades:`})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Change stream resume tokens may not survive major version upgrades if the oplog format changes`}),`\n`,_jsx(_components.li,{children:`If the resume token is invalidated, the connector cannot resume from its last position`}),`\n`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Post-upgrade verification checklist:`})}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Oplog size is sufficient`}),` — Verify the oplog window is large enough to cover the upgrade duration plus a buffer`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Replica set is healthy`}),` — All members should be in a healthy state`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`rs.status()`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Streamkap user privileges are intact`}),` — Verify the `,_jsx(_components.code,{children:`streamkap_user`}),` retains `,_jsx(_components.code,{children:`readAnyDatabase`}),` and `,_jsx(_components.code,{children:`read`}),` on the `,_jsx(_components.code,{children:`local`}),` database`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Change streams are functional`}),` — Verify the connector can open a change stream on the target collections`]}),`\n`]}),`\n`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Upgrade procedure:`})}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Verify your oplog window is large enough to cover the expected upgrade duration`}),`\n`,_jsx(_components.li,{children:`If performing a rolling upgrade, allow the connector to continue running during secondary node upgrades`}),`\n`,_jsx(_components.li,{children:`Before stepping down the primary, allow the connector to capture all pending events`}),`\n`,_jsx(_components.li,{children:`Stop the Source in Streamkap if the resume token may be invalidated (major version upgrade)`}),`\n`,_jsx(_components.li,{children:`Complete the upgrade`}),`\n`,_jsx(_components.li,{children:`Verify all items in the checklist above`}),`\n`,_jsx(_components.li,{children:`Resume the Source in Streamkap`}),`\n`,_jsxs(_components.li,{children:[`Trigger a `,_jsx(_components.a,{href:`/snapshots`,children:`snapshot`}),` if the resume token was invalidated or you suspect data gaps`]}),`\n`]}),_jsx(_components.p,{children:`For full MongoDB source setup details, see:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/mongodb-atlas`,children:`MongoDB Atlas`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/mongodb-1`,children:`MongoDB (Generic)`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/mongodb-source-faq`,children:`MongoDB Source FAQ`})}),`\n`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`post-upgrade-verification-checklist`,children:`Post-Upgrade Verification Checklist`}),`\n`,_jsx(_components.p,{children:`After completing the upgrade for any database type, verify the following:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`The pipeline reconnects and shows a `,_jsx(_components.strong,{children:`RUNNING`}),` status in the `,_jsx(_components.a,{href:`https://app.streamkap.com/connectors?tab=Sources`,children:`Streamkap app`})]}),`\n`,_jsx(_components.li,{children:`New data changes (inserts, updates, deletes) are being captured — insert a test row and verify it appears at the destination`}),`\n`,_jsx(_components.li,{children:`Consumer group lag is decreasing steadily`}),`\n`,_jsxs(_components.li,{children:[`Check the `,_jsx(_components.a,{href:`/dlq-operations`,children:`DLQ (Dead Letter Queue)`}),` for any error messages related to the upgrade`]}),`\n`,_jsx(_components.li,{children:`Compare row counts between source and destination for key tables to identify any gaps`}),`\n`,_jsx(_components.li,{children:`Monitor the pipeline for 24-48 hours for any delayed issues`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-to-snapshot`,children:`When to Snapshot`}),`\n`,_jsxs(_components.p,{children:[`A full snapshot is required in specific situations. Trigger a `,_jsx(_components.a,{href:`/snapshots`,children:`snapshot`}),` if any of the following apply:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scenario`}),_jsx(_components.th,{children:`Database`}),_jsx(_components.th,{children:`Reason`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Replication slot was dropped`}),_jsx(_components.td,{children:`PostgreSQL`}),_jsx(_components.td,{children:`Major upgrades drop logical replication slots; new slots only track changes from creation`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Binlog position was lost`}),_jsx(_components.td,{children:`MySQL (without GTID)`}),_jsx(_components.td,{children:`Binlog file names and positions can change during major upgrades`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Resume token was invalidated`}),_jsx(_components.td,{children:`MongoDB`}),_jsx(_components.td,{children:`Major version upgrades may change oplog format, invalidating existing resume tokens`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`CDC was disabled during upgrade`}),_jsx(_components.td,{children:`SQL Server`}),_jsx(_components.td,{children:`Change events are not captured while CDC is disabled`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Supplemental logging was reset`}),_jsx(_components.td,{children:`Oracle`}),_jsx(_components.td,{children:`Events during the period without supplemental logging are not captured`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Data gaps are suspected`}),_jsx(_components.td,{children:`Any`}),_jsx(_components.td,{children:`If you cannot confirm all events were captured before the upgrade`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`If all change events were not captured before stopping the Source and upgrading the database, you can perform a snapshot after the upgrade is completed to ensure no change events were missed. See `,_jsx(_components.a,{href:`/snapshots`,children:`Snapshots \u0026 Backfilling`}),` for detailed snapshot procedures.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`cloud-managed-database-considerations`,children:`Cloud-Managed Database Considerations`}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Cloud-managed database upgrades (Amazon RDS, Aurora, Google Cloud SQL, Azure) vary depending on the provider’s upgrade mechanism (in-place, blue/green deployment, read replica promotion, etc.). The general procedures in this guide apply, but consult your cloud provider’s documentation for specific upgrade behavior.`})}),`\n`,_jsx(_components.p,{children:`Key points for managed database upgrades:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Amazon RDS / Aurora`}),`: Managed upgrades may handle some infrastructure steps automatically, but replication slots (PostgreSQL) and CDC configuration (SQL Server) still need manual verification`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Google Cloud SQL`}),`: Similar to RDS — verify CDC-related parameters in your database flags after the upgrade`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Azure Database`}),`: Check that server parameters and CDC settings are preserved through the upgrade process`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`MongoDB Atlas`}),`: Atlas manages rolling upgrades automatically for replica sets, but verify your connector resumes correctly after the upgrade completes`]}),`\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":{"config":{},"pageMetadata":{"title":"Database Upgrade Guide","description":"How to maintain CDC pipelines during source database version upgrades","href":"/database-upgrade-guide"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"General Pre-Upgrade Checklist","slug":"general-pre-upgrade-checklist","depth":2,"children":[]},{"title":"Database-Specific Upgrade Guides","slug":"database-specific-upgrade-guides","depth":2,"children":[{"title":"Minor Version Upgrades (e.g., 14.8 to 14.12)","slug":"minor-version-upgrades-e-g--14-8-to-14-12","depth":3,"children":[],"tabId":"postgresql"},{"title":"Major Version Upgrades (e.g., 14 to 16)","slug":"major-version-upgrades-e-g--14-to-16","depth":3,"children":[],"tabId":"postgresql"},{"title":"RDS / Aurora PostgreSQL Specifics","slug":"rds-/-aurora-postgresql-specifics","depth":3,"children":[],"tabId":"postgresql"},{"title":"Minor Version Upgrades (e.g., 8.0.30 to 8.0.35)","slug":"minor-version-upgrades-e-g--8-0-30-to-8-0-35","depth":3,"children":[],"tabId":"mysql"},{"title":"Major Version Upgrades (e.g., 5.7 to 8.0)","slug":"major-version-upgrades-e-g--5-7-to-8-0","depth":3,"children":[],"tabId":"mysql"},{"title":"General Upgrade Considerations","slug":"general-upgrade-considerations","depth":3,"children":[],"tabId":"oracle"},{"title":"General Upgrade Considerations","slug":"general-upgrade-considerations-2","depth":3,"children":[],"tabId":"sql-server"},{"title":"General Upgrade Considerations","slug":"general-upgrade-considerations-3","depth":3,"children":[],"tabId":"mongodb"}]},{"title":"Post-Upgrade Verification Checklist","slug":"post-upgrade-verification-checklist","depth":2,"children":[]},{"title":"When to Snapshot","slug":"when-to-snapshot","depth":2,"children":[]},{"title":"Cloud-Managed Database Considerations","slug":"cloud-managed-database-considerations","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"streamkap","siteName":"Streamkap Docs","title":"Database Upgrade Guide - Streamkap Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-26T11:40:08.829Z","originalFileLocation":"database-upgrade-guide.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=\"system\"}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=\"description\" content=\"How to maintain CDC pipelines during source database version upgrades\">\u003cmeta data-mint-head name=\"application-name\" content=\"Streamkap Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/streamkap/Gh26WWtS3lo3CG73/_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/streamkap/Gh26WWtS3lo3CG73/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/streamkap/Gh26WWtS3lo3CG73/_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/streamkap/Gh26WWtS3lo3CG73/_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/streamkap/Gh26WWtS3lo3CG73/_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/streamkap/Gh26WWtS3lo3CG73/_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/streamkap/Gh26WWtS3lo3CG73/_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/streamkap/Gh26WWtS3lo3CG73/_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/streamkap/Gh26WWtS3lo3CG73/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Database Upgrade Guide - Streamkap Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"How to maintain CDC pipelines during source database version upgrades\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Streamkap Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.streamkap.com/database-upgrade-guide\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://streamkap.mintlify.site/_mintlify/api/og/v2?division=Sources\u0026amp;title=Database+Upgrade+Guide\u0026amp;description=How+to+maintain+CDC+pipelines+during+source+database+version+upgrades\u0026amp;theme=80a4b22fcc40d3ca49b10daf\u0026amp;signature=42ed47ef49cff4faf285d275b6e894de744fe178bd77fc5a3aff528e3118ad83\">\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=\"Database Upgrade Guide - Streamkap Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How to maintain CDC pipelines during source database version upgrades\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://streamkap.mintlify.site/_mintlify/api/og/v2?division=Sources\u0026amp;title=Database+Upgrade+Guide\u0026amp;description=How+to+maintain+CDC+pipelines+during+source+database+version+upgrades\u0026amp;theme=80a4b22fcc40d3ca49b10daf\u0026amp;signature=42ed47ef49cff4faf285d275b6e894de744fe178bd77fc5a3aff528e3118ad83\">\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/streamkap/Gh26WWtS3lo3CG73/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Streamkap Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#01313c\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.streamkap.com/database-upgrade-guide\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/database-upgrade-guide.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.streamkap.com/#organization\",\"name\":\"Streamkap Docs\",\"url\":\"https://docs.streamkap.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/streamkap/IToSzJnfJcTNxve_/logo/logo-streamkap.svg?fit=max\u0026auto=format\u0026n=IToSzJnfJcTNxve_\u0026q=85\u0026s=f5d4d5beaec46cd1cb335ca6c786d512\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.streamkap.com#website\",\"name\":\"Streamkap Docs\",\"url\":\"https://docs.streamkap.com\",\"publisher\":{\"@id\":\"https://docs.streamkap.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.streamkap.com/database-upgrade-guide#webpage\",\"url\":\"https://docs.streamkap.com/database-upgrade-guide\",\"name\":\"Database Upgrade Guide\",\"description\":\"How to maintain CDC pipelines during source database version upgrades\",\"dateModified\":\"2026-03-26T11:40:08.829Z\",\"isPartOf\":{\"@id\":\"https://docs.streamkap.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.streamkap.com/database-upgrade-guide#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.streamkap.com/database-upgrade-guide#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sources\",\"item\":\"https://docs.streamkap.com/alloydb\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Database Upgrade Guide\",\"item\":\"https://docs.streamkap.com/database-upgrade-guide\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.streamkap.com/database-upgrade-guide#article\",\"headline\":\"Database Upgrade Guide\",\"name\":\"Database Upgrade Guide\",\"description\":\"How to maintain CDC pipelines during source database version upgrades\",\"url\":\"https://docs.streamkap.com/database-upgrade-guide\",\"mainEntityOfPage\":{\"@id\":\"https://docs.streamkap.com/database-upgrade-guide#webpage\"},\"dateModified\":\"2026-03-26T11:40:08.829Z\",\"publisher\":{\"@id\":\"https://docs.streamkap.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.streamkap.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Streamkap Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Streamkap Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/database-upgrade-guide.md","siteName":"Streamkap Docs","nav":{"global":{"anchors":[{"anchor":"Free Trial","icon":"flask","href":"https://app.streamkap.com/?__hstc=157095033.ab3f92cd8f148386d7ab078bc558511c.1755622930359.1755881354597.1755883908073.4\u0026__hssc=157095033.1.1755883908073\u0026__hsfp=1551620669\u0026_gl=1*1842m2l*_gcl_au*ODAwODYxMTU0LjE3NTU2MjIxMjY.*_ga*NjYxMDkzMDMwLjE3NTU2MjIxMjY.*_ga_R90C8XW3LS*czE3NTU4ODEzNTIkbzMkZzEkdDE3NTU4ODQwNDQkajYwJGwwJGgw"},{"anchor":"Blog","icon":"rss","href":"https://streamkap.com/blog"},{"anchor":"Subscribe","icon":"file-signature","href":"https://streamkap.substack.com/"}]},"tabs":[{"tab":"Guides","groups":[{"group":"Getting Started","pages":[{"title":"Streamkap Docs","href":"/getting-started"},{"group":"Concepts","pages":[{"title":"Overview","href":"/concepts"},{"title":"What is CDC?","href":"/what-is-cdc"},{"title":"Batch vs Streaming","href":"/batch-vs-streaming-data"},{"title":"Ingestion Modes","href":"/insertsupserts"},{"title":"Schema Evolution","href":"/schema-evolution-support"},{"title":"Data Encoding \u0026 Character Sets","href":"/data-encoding"},{"title":"Heartbeat Configuration","href":"/heartbeat-configuration"},{"title":"Performance Tuning","href":"/performance-tuning"},{"title":"Metadata","href":"/metadata"},{"title":"Creating Final State Tables","href":"/creating-final-state-tables-from-insertsappend"}]},{"title":"Streamkap Support","href":"/streamkap-support"}]},{"group":"App","pages":[{"title":"Observability","href":"/observability"},{"title":"Snapshots \u0026 Backfilling","href":"/snapshots"},{"title":"Alerts","href":"/alerts"},{"title":"Projects","href":"/projects"},{"title":"Kafka Access","href":"/kafka-access"},{"title":"Consumer Groups","href":"/consumer-groups"},{"title":"Schema Registry","href":"/schema-registry"},{"title":"Pipelines","href":"/pipelines"},{"title":"Pipeline Recovery Procedures","href":"/pipeline-recovery"},{"title":"Sign Up","href":"/sign-up"},{"title":"Login","href":"/login"},{"title":"Profile","href":"/profile"},{"title":"Personal Privacy \u0026 Security","href":"/personal-privacy-security"},{"title":"Organisation Security","href":"/organisation-security"},{"title":"Users","href":"/team-management"},{"title":"Audit Logs","href":"/view-audit-logs"},{"title":"Sources","href":"/sources"},{"title":"Destinations","href":"/destinations"},{"title":"Regex Support for >100k Tables","href":"/regex-support"},{"title":"Setup SSO","href":"/setup-sso"},{"title":"Tagging","href":"/tagging"},{"title":"Topics","href":"/topics"},{"title":"Streaming Transforms","href":"/transforms-1"}]},{"group":"Troubleshooting","pages":[{"title":"Logs","href":"/logs"},{"title":"Error Reference","href":"/error-reference"},{"title":"Dead Letter Queue (DLQ)","href":"/dlq-operations"}]},{"group":"Deployment","pages":[{"title":"Deployment Options","href":"/deployment-options"},{"title":"Streamkap Cloud","href":"/streamkap-cloud"},{"group":"Bring Your Own Cloud (BYOC)","pages":[{"title":"Overview","href":"/bring-your-own-cloud-byoc"},{"title":"Azure BYOC","href":"/azure-byoc"},{"title":"AWS BYOC","href":"/aws-kafka-byoc"}]},{"title":"Disaster Recovery \u0026 Failover","href":"/disaster-recovery"}]},{"group":"Sources","pages":[{"title":"AlloyDB","href":"/alloydb"},{"group":"Db2","pages":[{"title":"Overview","href":"/ibm-db2"},{"title":"Db2 (Generic)","href":"/db2-generic"}]},{"group":"DocumentDB","pages":[{"title":"DocumentDB","href":"/documentdb"},{"title":"DocumentDB Source FAQ","href":"/documentdb-source-faq"}]},{"title":"DynamoDB","href":"/dynamodb-source"},{"title":"Elasticsearch","href":"/elasticsearch"},{"group":"Informix","pages":[{"title":"Overview","href":"/informix"},{"title":"Informix (Generic)","href":"/informix-generic"}]},{"title":"Kafka (Writing)","href":"/write-to-kafka"},{"title":"Kafka Direct","href":"/kafka-direct"},{"group":"MongoDB","pages":[{"title":"Overview","href":"/mongodb"},{"title":"MongoDB Atlas","href":"/mongodb-atlas"},{"title":"MongoDB (Generic)","href":"/mongodb-1"},{"title":"MongoDB Source FAQ","href":"/mongodb-source-faq"}]},{"group":"MySQL","pages":[{"title":"Overview","href":"/mysql"},{"title":"Amazon RDS MySQL","href":"/amazon-rds-mysql"},{"title":"Amazon RDS Aurora MySQL","href":"/amazon-rds-aurora-mysql"},{"title":"Google Cloud MySQL","href":"/google-cloud-mysql"},{"title":"Azure MySQL Database","href":"/azure-mysql-database"},{"title":"MySQL (Generic)","href":"/mysql-generic"},{"title":"MySQL Low Volume Log Rotation","href":"/mysql-low-volume-log-rotation"},{"title":"MySQL Source FAQ","href":"/mysql-source-faq"}]},{"group":"MariaDB","pages":[{"title":"Overview","href":"/mariadb"},{"title":"MariaDB (Generic)","href":"/mariadb-generic"},{"title":"Amazon RDS MariaDB","href":"/amazon-rds-mariadb"}]},{"title":"OpenSearch","href":"/opensearch"},{"group":"Oracle","pages":[{"title":"Overview","href":"/oracle"},{"title":"Amazon RDS Oracle","href":"/amazon-rds-oracle"},{"title":"Oracle (Generic)","href":"/oracle-generic"},{"title":"Oracle Source FAQ","href":"/oracle-source-faq"}]},{"group":"PostgreSQL","pages":[{"title":"Overview","href":"/postgresql"},{"title":"Amazon RDS PostgreSQL","href":"/postgresql-on-amazon-rds"},{"title":"Neon PostgreSQL","href":"/neon-postgresql-cdc"},{"title":"Amazon RDS PostgreSQL Serverless","href":"/amazon-rds-postgresql-serverless"},{"title":"Amazon RDS Aurora PostgreSQL","href":"/amazon-rds-aurora-postgresql"},{"title":"Azure PostgreSQL","href":"/postgresql-on-azure-database"},{"title":"Google Cloud SQL for PostgreSQL","href":"/google-cloud-sql-postgresql"},{"title":"Crunchy Bridge PostgreSQL","href":"/crunchy-bridge-postgresql"},{"title":"PostgreSQL","href":"/postgresql-self-hosted"},{"title":"Monitoring The PostgreSQL WAL Log","href":"/monitoring-the-postgresql-wal-log"},{"title":"PostgreSQL Source FAQ","href":"/postgresql-source-faq"}]},{"group":"Redis","pages":[{"title":"Overview","href":"/redis-source"},{"title":"Redis Source","href":"/redis-source-generic"}]},{"title":"S3 Source","href":"/s3-source"},{"group":"SQL Server","pages":[{"title":"Overview","href":"/sql-server"},{"title":"SQL Server on Amazon RDS","href":"/amazon-rds-sql-server"},{"title":"SQL Server on Google Cloud SQL","href":"/sql-server-on-google-cloud-sql"},{"title":"Azure SQL Database","href":"/sql-server-on-azure-sql-database"},{"title":"SQL Server (Generic)","href":"/sql-server-generic"},{"title":"SQL Server Source FAQ","href":"/sql-server-source-faq"}]},{"title":"Supabase","href":"/supabase"},{"group":"Vitess","pages":[{"title":"Overview","href":"/vitess"},{"title":"Vitess (Generic)","href":"/vitess-generic"}]},{"title":"PlanetScale (Vitess)","href":"/planetscale"},{"group":"Webhook","pages":[{"title":"Webhook","href":"/webhook"},{"title":"Zendesk Webhook","href":"/webhook-zendesk"},{"title":"Salesforce CDC","href":"/webhook-salesforce"},{"title":"Shopify Webhook","href":"/webhook-shopify"},{"title":"Stripe Webhook","description":"Stream Stripe events into Streamkap by registering Stripe webhooks against a dedicated Streamkap endpoint, with optional initial and on-demand snapshots via the Stripe REST API","href":"/webhook-stripe"}]},{"title":"Database Upgrade Guide","href":"/database-upgrade-guide"}]},{"group":"Destinations","pages":[{"group":"Apache Iceberg","pages":[{"title":"Overview","description":null,"href":"/iceberg"},{"title":"AWS Glue","href":"/aws-glue"},{"title":"Apache Iceberg (Generic)","href":"/apache-iceberg"}]},{"title":"Azure Blob Storage","href":"/azure-blob-storage"},{"group":"BigQuery","pages":[{"title":"Overview","href":"/google-bigquery"},{"title":"Best Practices","href":"/google-bigquery-best-practices"}]},{"title":"ClickHouse Cloud","href":"/clickhouse"},{"title":"CockroachDB","href":"/cockroachdb"},{"title":"Databricks Delta Lake","href":"/databricks-delta-lake"},{"title":"DB2","href":"/stream-into-db2"},{"title":"Kafka (Reading)","href":"/reading-from-kafka"},{"title":"Kafka (Push)","href":"/kafka-to-kafka"},{"title":"HTTP Sink","href":"/http-sink"},{"title":"MySQL","href":"/stream-into-mysql"},{"title":"Neon","href":"/neon-destination"},{"title":"Oracle","href":"/stream-into-oracle"},{"title":"PostgreSQL","href":"/stream-into-postgresql"},{"group":"Redis","pages":[{"title":"Overview","href":"/redis-destination"},{"title":"Redis Cloud","href":"/redis-destination-cloud"},{"title":"Redis (Generic)","href":"/redis-destination-generic"}]},{"title":"Redshift","href":"/redshift"},{"title":"Snowflake","href":"/snowflake"},{"title":"SQL Server","href":"/stream-into-sqlserver"},{"title":"Starburst","href":"/starburst"},{"title":"Amazon S3","href":"/s3"},{"group":"Motherduck","pages":[{"title":"Overview","href":"/motherduck"},{"title":"MotherDuck (Native)","href":"/motherduck-native"},{"title":"MotherDuck (S3)","href":"/motherduck-s3"}]},{"title":"Cloudflare R2","href":"/r2"},{"title":"Weaviate","href":"/weaviate"},{"title":"Pinecone","href":"/pinecone"}]},{"group":"Transformation","pages":[{"group":"Transforms","pages":[{"title":"Overview","href":"/transforms"},{"title":"Transform Ordering","href":"/transform-ordering"},{"title":"Transform / Filter Records","href":"/transform-filter-records"},{"title":"Enrich","href":"/transform-enrich"},{"title":"Join","href":"/transform-join"},{"title":"Enrich (Async)","href":"/transform-enrich-async"},{"title":"Fan Out","href":"/transform-fanout"},{"title":"Transform Examples","href":"/transform-examples"},{"title":"TypeScript Development Kit","href":"/transform-typescript-development-kit"},{"title":"Schema Transforms Supported Types","href":"/transform-list-of-data-types"}]}]},{"group":"Streaming Agents","pages":[{"title":"Streaming Agents","href":"/streaming-agents"},{"title":"Connections","href":"/streaming-agents-connections"},{"title":"Build an Agent","href":"/streaming-agents-build"},{"title":"Manage Agents","href":"/streaming-agents-manage"},{"title":"Knowledge Bases","href":"/streaming-agents-knowledge-bases"},{"title":"Agent Observability","href":"/streaming-agents-observability"}]},{"group":"Usage","pages":[{"title":"Billing \u0026 Usage","href":"/usage"}]},{"group":"Security","pages":[{"group":"Connection Options","pages":[{"title":"Overview","href":"/connection-options"},{"title":"Streamkap IP Addresses","href":"/streamkap-ip-addresses"},{"title":"SSH Tunnel","href":"/ssh-tunnel"},{"title":"AWS Private Link","href":"/aws-private-link"},{"title":"VPN","href":"/vpn"},{"title":"Streamkap Encryption","href":"/streamkap-encryption"},{"title":"AWS Cross-Account IAM Setup","href":"/aws-cross-account-iam"}]},{"title":"Sub Accounts","href":"/sub-accounts"},{"title":"Security Posture","href":"/security-posture"},{"title":"Audit Logs","href":"/audit-logs"},{"title":"Federated Authentication and SSO","href":"/sso"},{"title":"SAML IDP Setup","href":"/saml-idp-setup"},{"title":"OpenID connect - IDP setup","href":"/openid-connect-idp-setup"},{"title":"Database Connectivity SSL Certificate Management Guide","href":"/connector-security-ssl"}]},{"group":"Developer Tools","pages":[{"title":"Overview","href":"/api"},{"title":"Agents","href":"/agents"},{"title":"Project Keys","href":"/project-keys"},{"title":"API Tokens","href":"/api-tokens"},{"title":"API Quickstart","href":"/api-quickstart"},{"title":"MCP Server","href":"/mcp-server"},{"title":"CLI","href":"/cli"}]},{"group":"Terraform","pages":[{"title":"Getting Started","href":"/streamkap-provider-for-terraform"},{"title":"Installing Terraform","href":"/terraform-installation"},{"title":"Configuration","href":"/terraform-configuration"},{"title":"Resource Reference","href":"/terraform-resources"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/authentication/access-token"}]}]},"basePath":"","title":"Database Upgrade Guide - Streamkap Docs","deploymentId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","buildId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","dynamics":[],"chunks":[]}