| <!doctype html> | |
| <html lang="en" dir="ltr" class="docs-wrapper plugin-docs plugin-id-default docs-version-current docs-doc-page docs-doc-id-developer/develop-background-process-worker" data-has-hydrated="false"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="generator" content="Docusaurus v3.10.2"> | |
| <title data-rh="true">Develop a Background Worker Process | Apache Cloudberry (Incubating)</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://cloudberry.apache.org/docs/next/developer/develop-background-process-worker"><meta data-rh="true" property="og:locale" content="en"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="Develop a Background Worker Process | Apache Cloudberry (Incubating)"><meta data-rh="true" name="description" content="Apache Cloudberry can be extended to run user-supplied code in separate processes. Such processes are started, stopped, and monitored by postgres, which permits them to have a lifetime closely linked to the server's status. These processes have the option to attach to Apache Cloudberry's shared memory area and to connect to databases internally; they can also run multiple transactions serially, just like a regular client-connected server process. Also, by linking to libpq they can connect to the server and behave like a regular client application."><meta data-rh="true" property="og:description" content="Apache Cloudberry can be extended to run user-supplied code in separate processes. Such processes are started, stopped, and monitored by postgres, which permits them to have a lifetime closely linked to the server's status. These processes have the option to attach to Apache Cloudberry's shared memory area and to connect to databases internally; they can also run multiple transactions serially, just like a regular client-connected server process. Also, by linking to libpq they can connect to the server and behave like a regular client application."><link data-rh="true" rel="icon" href="/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://cloudberry.apache.org/docs/next/developer/develop-background-process-worker"><link data-rh="true" rel="alternate" href="https://cloudberry.apache.org/docs/next/developer/develop-background-process-worker" hreflang="en"><link data-rh="true" rel="alternate" href="https://cloudberry.apache.org/docs/next/developer/develop-background-process-worker" hreflang="x-default"><link data-rh="true" rel="alternate" type="text/markdown" title="Markdown source" href="https://cloudberry.apache.org/docs/next/developer/develop-background-process-worker.md"><link rel="alternate" type="application/rss+xml" href="/blog/rss.xml" title="Apache Cloudberry (Incubating) is one advanced and mature open-source MPP (Massively Parallel Processing) databases available. RSS Feed"> | |
| <link rel="alternate" type="application/atom+xml" href="/blog/atom.xml" title="Apache Cloudberry (Incubating) is one advanced and mature open-source MPP (Massively Parallel Processing) databases available. Atom Feed"> | |
| <link rel="alternate" type="application/json" href="/blog/feed.json" title="Apache Cloudberry (Incubating) is one advanced and mature open-source MPP (Massively Parallel Processing) databases available. JSON Feed"> | |
| <link rel="preconnect" href="https://analytics.apache.org/"> | |
| <script>var _paq=window._paq=window._paq||[];_paq.push(["setRequestMethod","POST"]),_paq.push(["trackPageView"]),_paq.push(["enableLinkTracking"]),_paq.push(["enableHeartBeatTimer"]),function(){var e="https://analytics.apache.org/";_paq.push(["setRequestMethod","POST"]),_paq.push(["setTrackerUrl",e+"matomo.php"]),_paq.push(["setSiteId","66"]);var a=document,t=a.createElement("script"),p=a.getElementsByTagName("script")[0];t.type="text/javascript",t.async=!0,t.src=e+"matomo.js",p.parentNode.insertBefore(t,p)}()</script> | |
| <script src="https://widget.kapa.ai/kapa-widget.bundle.js" data-website-id="9d55c09f-0362-44eb-a3bf-37ba3c12d572" data-project-name="Apache Cloudberry" data-project-color="#ff5900" data-project-logo="https://cloudberry.apache.org/img/favicon.ico" data-modal-title="Apache Cloudberry AI Assistant" data-modal-disclaimer="Answers are generated by AI from the [Apache Cloudberry documentation](https://cloudberry.apache.org/docs/) and may be inaccurate. Please verify important details against the docs." data-modal-example-questions="How do I install Apache Cloudberry?,How is Cloudberry different from Greenplum?,How do I load data with gpfdist?" data-user-analytics-cookie-enabled="false" data-bot-protection-mechanism="hcaptcha" data-consent-required="true" data-consent-screen-disclaimer="By clicking &quot;I agree, let's chat&quot;, you consent to the use of the AI assistant in accordance with kapa.ai's [Privacy Policy](https://www.kapa.ai/content/privacy-policy). This service uses hCaptcha, which is subject to hCaptcha's [Privacy Policy](https://www.hcaptcha.com/privacy) and [Terms of Service](https://www.hcaptcha.com/terms)." async></script><link rel="stylesheet" href="/assets/css/styles.bbfb43b6.css"> | |
| <script src="/assets/js/runtime~main.7a592a8d.js" defer="defer"></script> | |
| <script src="/assets/js/main.85f72eb7.js" defer="defer"></script> | |
| </head> | |
| <body> | |
| <svg style="display: none;"><defs> | |
| <symbol id="theme-svg-external-link" viewBox="0 0 24 24"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"/></symbol> | |
| </defs></svg> | |
| <script>!function(){var t=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return window.localStorage.getItem("theme")}catch(t){}}();document.documentElement.setAttribute("data-theme",t||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")),document.documentElement.setAttribute("data-theme-choice",t||"system")}(),function(){try{const c=new URLSearchParams(window.location.search).entries();for(var[t,e]of c)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script><div id="__docusaurus"><div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#__docusaurus_skipToContent_fallback">Skip to main content</a></div><div class="tipsWrap_WWTe"><div class="tipsContent_sMsy"><div class="text_VINd"><a href="https://github.com/apache/cloudberry" target="_blank" rel="noopener noreferrer"><span>If you like Apache Cloudberry (Incubating), give it a star on GitHub! </span><img src="/img/home/hcard/star.svg" alt=""></a></div><div class="close_vVex"><img src="/img/home/hcard/close.svg" alt=""></div></div></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><div class="nav-left-logo"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/"><div class="navbar__logo"><img src="/img/apache_cloudberry_color_black.svg" alt="Apache Cloudberry (Incubating)" class="themedComponent_mlkZ themedComponent--light_NVdE"><img src="/img/apache_cloudberry_color_white.svg" alt="Apache Cloudberry (Incubating)" class="themedComponent_mlkZ themedComponent--dark_xIcU"></div></a></div></div><div class="navbar__items navbar__items--right"><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a href="#" aria-haspopup="true" aria-expanded="false" role="button" class="navbar__link">Docs</a><ul class="dropdown__menu"><li><a aria-current="page" class="dropdown__link dropdown__link--active" href="/docs/next">Next</a></li><li><a aria-current="page" class="dropdown__link dropdown__link--active" href="/docs/">2.x (Current)</a></li><li><a class="dropdown__link" href="/docs/1.x">1.x</a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a href="#" aria-haspopup="true" aria-expanded="false" role="button" class="navbar__link">Community</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/community">Overview</a></li><li><a class="dropdown__link" href="/community/slack">Slack Guide</a></li><li><a class="dropdown__link" href="/community/discord">Discord Guide</a></li><li><a class="dropdown__link" href="/community/wechat">WeChat Guide</a></li><li><a class="dropdown__link" href="/community/events">Community Events</a></li><li><a class="dropdown__link" href="/community/bi-weekly-meetings">Bi-weekly Meetings</a></li><li><a class="dropdown__link" href="/community/mailing-lists">Mailing Lists</a></li><li><a class="dropdown__link" href="/community/brand">Brand Guidelines</a></li><li><a class="dropdown__link" href="/community/accounts">Official Accounts</a></li><li><a class="dropdown__link" href="/community/security">Security Policy</a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a href="#" aria-haspopup="true" aria-expanded="false" role="button" class="navbar__link">Contribute</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/contribute">Overview</a></li><li><a class="dropdown__link" href="/contribute/how-to-contribute">How to Contribute</a></li><li><a class="dropdown__link" href="/contribute/git">Working with Git & GitHub</a></li><li><a class="dropdown__link" href="/contribute/code">Code Contribution Guide</a></li><li><a class="dropdown__link" href="/contribute/proposal">Proposal Guide</a></li><li><a class="dropdown__link" href="/contribute/doc">Doc Contribution Guide</a></li></ul></div><a class="navbar__item navbar__link" href="/blog">Blog</a><a class="navbar__item navbar__link" href="/releases">Download</a><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a href="#" aria-haspopup="true" aria-expanded="false" role="button" class="navbar__link">Team</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/team">Who we are</a></li><li><a class="dropdown__link" href="/team/new-committers">Inviting New Committers</a></li><li><a class="dropdown__link" href="/team/new-ppmc-member">Inviting New PPMC Members</a></li><li><a class="dropdown__link" href="/team/sign-icla">Sign ICLA</a></li><li><a class="dropdown__link" href="/team/setup-apache-email-account">Setup the Apache account</a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a href="#" aria-haspopup="true" aria-expanded="false" role="button" class="navbar__link">Resources</a><ul class="dropdown__menu"><li><a href="https://github.com/apache/cloudberry/wiki" target="_blank" rel="noopener noreferrer" class="dropdown__link">Wiki</a></li><li><a href="https://github.com/apache/cloudberry/discussions/868" target="_blank" rel="noopener noreferrer" class="dropdown__link">Roadmap</a></li><li><a href="https://github.com/apache/cloudberry/discussions" target="_blank" rel="noopener noreferrer" class="dropdown__link">Forum</a></li><li><a class="dropdown__link" href="/support">Support</a></li><li><a class="dropdown__link" href="/powered-by">Powered By</a></li><li><a class="dropdown__link" href="/sizing/">Sizing Calculator</a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a href="#" aria-haspopup="true" aria-expanded="false" role="button" class="navbar__link">ASF</a><ul class="dropdown__menu"><li><a href="https://www.apache.org/" target="_blank" rel="noopener noreferrer" class="dropdown__link">Foundation</a></li><li><a href="https://www.apache.org/licenses/" target="_blank" rel="noopener noreferrer" class="dropdown__link">License</a></li><li><a href="https://www.apache.org/events/current-event.html" target="_blank" rel="noopener noreferrer" class="dropdown__link">Events</a></li><li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" target="_blank" rel="noopener noreferrer" class="dropdown__link">Privacy</a></li><li><a href="https://www.apache.org/security/" target="_blank" rel="noopener noreferrer" class="dropdown__link">Security</a></li><li><a href="https://www.apache.org/foundation/sponsorship.html" target="_blank" rel="noopener noreferrer" class="dropdown__link">Sponsorship</a></li><li><a href="https://www.apache.org/foundation/thanks.html" target="_blank" rel="noopener noreferrer" class="dropdown__link">Thanks</a></li><li><a href="https://www.apache.org/foundation/policies/conduct" target="_blank" rel="noopener noreferrer" class="dropdown__link">Code of Conduct</a></li></ul></div><div class="toggle_vylO colorModeToggle_x44X check-theme-switch"><button class="clean-btn toggleButton_gllP toggleButtonDisabled_aARS" type="button" disabled="" title="dark mode" aria-label="Switch between dark and light mode (currently dark mode)"><svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="toggleIcon_g3eP lightToggleIcon_pyhR"><path fill="currentColor" d="M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="toggleIcon_g3eP darkToggleIcon_wfgR"><path fill="currentColor" d="M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="toggleIcon_g3eP systemToggleIcon_QzmC"><path fill="currentColor" d="m12 21c4.971 0 9-4.029 9-9s-4.029-9-9-9-9 4.029-9 9 4.029 9 9 9zm4.95-13.95c1.313 1.313 2.05 3.093 2.05 4.95s-0.738 3.637-2.05 4.95c-1.313 1.313-3.093 2.05-4.95 2.05v-14c1.857 0 3.637 0.737 4.95 2.05z"></path></svg></button></div><div class="navbarSearchContainer_dCNk"><div class="navbar__search searchBarContainer_NW3z"><input placeholder="Search" aria-label="Search" class="navbar__search-input" value=""><div class="loadingRing_RJI3 searchBarLoadingRing_YnHq"><div></div><div></div><div></div><div></div></div></div></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div id="__docusaurus_skipToContent_fallback" class="theme-layout-main main-wrapper mainWrapper_z2l0"><div class="docsWrapper_BF9v"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_sjWU" type="button"></button><div class="docRoot_Rg9N"><aside class="theme-doc-sidebar-container docSidebarContainer_RSuS"><div class="sidebarViewport_pYEE"><div class="sidebar_njMd"><nav aria-label="Docs sidebar" class="menu thin-scrollbar menu_SIkG"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/docs/next/"><span class="categoryLinkLabel_W154">Introduction</span></a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/docs/next/build/build-based-on-docker"><span class="categoryLinkLabel_W154">Build Apache Cloudberry</span></a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist" href="/docs/next/deployment/"><span class="categoryLinkLabel_W154">Deploy in Production</span></a><button aria-label="Expand sidebar category 'Deploy in Production'" aria-expanded="false" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/docs/next/database-basic/create-and-manage-database"><span class="categoryLinkLabel_W154">Basic Database Operations</span></a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist" href="/docs/next/data-loading/"><span class="categoryLinkLabel_W154">Load Data</span></a><button aria-label="Expand sidebar category 'Load Data'" aria-expanded="false" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/docs/next/operate-with-data/operate-with-db-objects/create-and-manage-tablespaces"><span class="categoryLinkLabel_W154">Operate with Data</span></a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/docs/next/performance/define-database-performance"><span class="categoryLinkLabel_W154">Optimize Performance</span></a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist" href="/docs/next/security/"><span class="categoryLinkLabel_W154">Security and Permission</span></a><button aria-label="Expand sidebar category 'Security and Permission'" aria-expanded="false" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/docs/next/sys-admin/configure-database-system"><span class="categoryLinkLabel_W154">Manage System</span></a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist menu__link--sublist-caret menu__link--active" role="button" aria-expanded="true" href="/docs/next/developer/develop-background-process-worker"><span class="categoryLinkLabel_W154">Developer</span></a></div><ul class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/docs/next/developer/develop-background-process-worker"><span class="linkLabel_WmDU">Develop a Background Worker Process</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/next/developer/develop-extensions-using-rust"><span class="linkLabel_WmDU">Develop Database Extensions Using PGRX</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/next/developer/supported-bi-tools"><span class="linkLabel_WmDU">Supported BI Tools</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/next/developer/use-jdbc-driver"><span class="linkLabel_WmDU">Use JDBC</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/next/developer/use-odbc-driver"><span class="linkLabel_WmDU">Use ODBC</span></a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" tabindex="0" href="/docs/next/developer/functions-and-procedures/overview"><span class="categoryLinkLabel_W154">Stored Procedures and UDFs</span></a></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/next/developer/write-a-foreign-data-wrapper"><span class="linkLabel_WmDU">Write a Foreign Data Wrapper</span></a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/docs/next/ecosystem/sql-clients/dbeaver"><span class="categoryLinkLabel_W154">Ecosystem</span></a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/docs/next/sql-stmts/"><span class="categoryLinkLabel_W154">References</span></a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/docs/next/tutorials/crash-course"><span class="categoryLinkLabel_W154">Tutorials</span></a></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/pxf/"><span class="linkLabel_WmDU">Platform Extension Framework (PXF)</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/core-internals/"><span class="linkLabel_WmDU">Apache Cloudberry Core Internals</span></a></li></ul></nav></div></div></aside><main class="docMainContainer_hjYf"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_z5aJ"><div class="theme-doc-version-banner alert alert--warning margin-bottom--md" role="alert"><div>This is unreleased documentation for <!-- -->Apache Cloudberry (Incubating)<!-- --> <b>Next</b> version.</div><div class="margin-top--md">For up-to-date documentation, see the <b><a href="/docs/developer/develop-background-process-worker">latest version</a></b> (<!-- -->2.x<!-- -->).</div></div><div class="docItemContainer_c0TR"><article><div class="docItemTopBar_cHfk"><nav class="theme-doc-breadcrumbs breadcrumbsContainer_Alpn" aria-label="Breadcrumbs"><ul class="breadcrumbs" itemscope="" itemtype="https://schema.org/BreadcrumbList"><li class="breadcrumbs__item"><a aria-label="Home page" class="breadcrumbs__link" href="/"><svg viewBox="0 0 24 24" class="breadcrumbHomeIcon_xK9p"><path d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z" fill="currentColor"></path></svg></a></li><li class="breadcrumbs__item"><span class="breadcrumbs__link" id="支付">Developer</span><meta itemprop="position" content="1"></li><li itemscope="" itemprop="itemListElement" itemtype="https://schema.org/ListItem" class="breadcrumbs__item breadcrumbs__item--active"><span class="breadcrumbs__link" itemprop="name">Develop a Background Worker Process</span><meta itemprop="position" content="2"></li></ul></nav><div class="root_HUhY"><button type="button" class="trigger_dLHX" aria-haspopup="menu" aria-expanded="false"><span class="triggerLabel_Yaiy">Copy page</span><svg class="chevron_UCSA" width="10" height="10" viewBox="0 0 10 10" aria-hidden="true"><path d="M2 3.5L5 6.5L8 3.5" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg></button></div></div><span class="theme-doc-version-badge badge badge--secondary">Version: Next</span><div class="theme-doc-markdown markdown"><header><h1>Develope a Background Worker Process</h1></header> | |
| <p>Apache Cloudberry can be extended to run user-supplied code in separate processes. Such processes are started, stopped, and monitored by <code>postgres</code>, which permits them to have a lifetime closely linked to the server's status. These processes have the option to attach to Apache Cloudberry's shared memory area and to connect to databases internally; they can also run multiple transactions serially, just like a regular client-connected server process. Also, by linking to <code>libpq</code> they can connect to the server and behave like a regular client application.</p> | |
| <p>:::caution: | |
| There are considerable robustness and security risks in using background worker processes because, being written in the <code>C</code> language, they have unrestricted access to data. Administrators wishing to enable modules that include background worker processes should exercise extreme caution. Only carefully audited modules should be permitted to run background worker processes. | |
| :::</p> | |
| <p>Background workers can be initialized at the time that Apache Cloudberry is started by including the module name in the shared_preload_libraries server configuration parameter. A module wishing to run a background worker can register it by calling <code>RegisterBackgroundWorker(BackgroundWorker *worker)</code> from its <code>_PG_init()</code>. Background workers can also be started after the system is up and running by calling the function <code>RegisterDynamicBackgroundWorker(BackgroundWorker *worker, BackgroundWorkerHandle **handle)</code>. Unlike <code>RegisterBackgroundWorker</code>, which can only be called from within the <code>postmaster</code>, <code>RegisterDynamicBackgroundWorker</code> must be called from a regular backend.</p> | |
| <p>The structure <code>BackgroundWorker</code> is defined thus:</p> | |
| <div class="language-c codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-c codeBlock_bY9V thin-scrollbar" style="color:#d6deeb;background-color:#011627"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#d6deeb"><span class="token keyword" style="color:rgb(127, 219, 202)">typedef</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">void</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token operator" style="color:rgb(127, 219, 202)">*</span><span class="token plain">bgworker_main_type</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">Datum main_arg</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token keyword" style="color:rgb(127, 219, 202)">typedef</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">struct</span><span class="token plain"> </span><span class="token class-name" style="color:rgb(255, 203, 139)">BackgroundWorker</span><span class="token plain"></span><br></div><div class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token punctuation" style="color:rgb(199, 146, 234)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">char</span><span class="token plain"> bgw_name</span><span class="token punctuation" style="color:rgb(199, 146, 234)">[</span><span class="token plain">BGW_MAXLEN</span><span class="token punctuation" style="color:rgb(199, 146, 234)">]</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">int</span><span class="token plain"> bgw_flags</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> BgWorkerStartTime bgw_start_time</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">int</span><span class="token plain"> bgw_restart_time</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"> </span><span class="token comment" style="color:rgb(99, 119, 119);font-style:italic">/* in seconds, or BGW_NEVER_RESTART */</span><span class="token plain"></span><br></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> bgworker_main_type bgw_main</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">char</span><span class="token plain"> bgw_library_name</span><span class="token punctuation" style="color:rgb(199, 146, 234)">[</span><span class="token plain">BGW_MAXLEN</span><span class="token punctuation" style="color:rgb(199, 146, 234)">]</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"> </span><span class="token comment" style="color:rgb(99, 119, 119);font-style:italic">/* only if bgw_main is NULL */</span><span class="token plain"></span><br></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">char</span><span class="token plain"> bgw_function_name</span><span class="token punctuation" style="color:rgb(199, 146, 234)">[</span><span class="token plain">BGW_MAXLEN</span><span class="token punctuation" style="color:rgb(199, 146, 234)">]</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"> </span><span class="token comment" style="color:rgb(99, 119, 119);font-style:italic">/* only if bgw_main is NULL */</span><span class="token plain"></span><br></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> Datum bgw_main_arg</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">int</span><span class="token plain"> bgw_notify_pid</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token punctuation" style="color:rgb(199, 146, 234)">}</span><span class="token plain"> BackgroundWorker</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><br></div></code></pre></div></div> | |
| <p><code>bgw_name</code> is a string to be used in log messages, process listings and similar contexts.</p> | |
| <p><code>bgw_flags</code> is a bitwise-or'd bit mask indicating the capabilities that the module wants. Possible values are <code>BGWORKER_SHMEM_ACCESS</code> (requesting shared memory access) and <code>BGWORKER_BACKEND_DATABASE_CONNECTION</code> (requesting the ability to establish a database connection, through which it can later run transactions and queries). A background worker using <code>BGWORKER_BACKEND_DATABASE_CONNECTION</code> to connect to a database must also attach shared memory using <code>BGWORKER_SHMEM_ACCESS</code>, or worker start-up will fail.</p> | |
| <p><code>bgw_start_time</code> is the server state during which <code>postgres</code> should start the process; it can be one of <code>BgWorkerStart_PostmasterStart</code> (start as soon as <code>postgres</code> itself has finished its own initialization; processes requesting this are not eligible for database connections), <code>BgWorkerStart_ConsistentState</code> (start as soon as a consistent state has been reached in a hot standby, allowing processes to connect to databases and run read-only queries), and <code>BgWorkerStart_RecoveryFinished</code> (start as soon as the system has entered normal read-write state). Note the last two values are equivalent in a server that's not a hot standby. Note that this setting only indicates when the processes are to be started; they do not stop when a different state is reached.</p> | |
| <p><code>bgw_restart_time</code> is the interval, in seconds, that <code>postgres</code> should wait before restarting the process, in case it crashes. It can be any positive value, or <code>BGW_NEVER_RESTART</code>, indicating not to restart the process in case of a crash.</p> | |
| <p><code>bgw_main</code> is a pointer to the function to run when the process is started. This function must take a single argument of type <code>Datum</code> and return <code>void</code>. <code>bgw_main_arg</code> will be passed to it as its only argument. Note that the global variable <code>MyBgworkerEntry</code> points to a copy of the <code>BackgroundWorker</code> structure passed at registration time. <code>bgw_main</code> may be NULL; in that case, <code>bgw_library_name</code> and <code>bgw_function_name</code> will be used to determine the entry point. This is useful for background workers launched after postmaster startup, where the postmaster does not have the requisite library loaded.</p> | |
| <p><code>bgw_library_name</code> is the name of a library in which the initial entry point for the background worker should be sought. It is ignored unless <code>bgw_main</code> is NULL. But if <code>bgw_main</code> is NULL, then the named library will be dynamically loaded by the worker process and <code>bgw_function_name</code> will be used to identify the function to be called.</p> | |
| <p><code>bgw_function_name</code> is the name of a function in a dynamically loaded library which should be used as the initial entry point for a new background worker. It is ignored unless <code>bgw_main</code> is NULL.</p> | |
| <p><code>bgw_notify_pid</code> is the PID of a Apache Cloudberry backend process to which the postmaster should send <code>SIGUSR1</code> when the process is started or exits. It should be 0 for workers registered at postmaster startup time, or when the backend registering the worker does not wish to wait for the worker to start up. Otherwise, it should be initialized to <code>MyProcPid</code>.</p> | |
| <p>Once running, the process can connect to a database by calling <code>BackgroundWorkerInitializeConnection(char *dbname, char *username)</code>. This allows the process to run transactions and queries using the <code>SPI</code> interface. If dbname is NULL, the session is not connected to any particular database, but shared catalogs can be accessed. If username is NULL, the process will run as the superuser created during <code>initdb</code>. BackgroundWorkerInitializeConnection can only be called once per background process, it is not possible to switch databases.</p> | |
| <p>Signals are initially blocked when control reaches the <code>bgw_main</code> function, and must be unblocked by it; this is to allow the process to customize its signal handlers, if necessary. Signals can be unblocked in the new process by calling <code>BackgroundWorkerUnblockSignals</code> and blocked by calling <code>BackgroundWorkerBlockSignals</code>.</p> | |
| <p>If <code>bgw_restart_time</code> for a background worker is configured as <code>BGW_NEVER_RESTART</code>, or if it exits with an exit code of 0 or is terminated by <code>TerminateBackgroundWorker</code>, it will be automatically unregistered by the postmaster on exit. Otherwise, it will be restarted after the time period configured via <code>bgw_restart_time</code>, or immediately if the postmaster reinitializes the cluster due to a backend failure. Backends which need to suspend execution only temporarily should use an interruptible sleep rather than exiting; this can be achieved by calling <code>WaitLatch()</code>. Make sure the <code>WL_POSTMASTER_DEATH</code> flag is set when calling that function, and verify the return code for a prompt exit in the emergency case that <code>postgres</code> itself has terminated.</p> | |
| <p>When a background worker is registered using the <code>RegisterDynamicBackgroundWorker</code> function, it is possible for the backend performing the registration to obtain information regarding the status of the worker. Backends wishing to do this should pass the address of a <code>BackgroundWorkerHandle *</code> as the second argument to <code>RegisterDynamicBackgroundWorker</code>. If the worker is successfully registered, this pointer will be initialized with an opaque handle that can subsequently be passed to <code>GetBackgroundWorkerPid(BackgroundWorkerHandle *, pid_t *)</code> or <code>TerminateBackgroundWorker(BackgroundWorkerHandle *)</code>. <code>GetBackgroundWorkerPid</code> can be used to poll the status of the worker: a return value of <code>BGWH_NOT_YET_STARTED</code> indicates that the worker has not yet been started by the postmaster; <code>BGWH_STOPPED</code> indicates that it has been started but is no longer running; and <code>BGWH_STARTED</code> indicates that it is currently running. In this last case, the PID will also be returned via the second argument. <code>TerminateBackgroundWorker</code> causes the postmaster to send <code>SIGTERM</code> to the worker if it is running, and to unregister it as soon as it is not.</p> | |
| <p>In some cases, a process which registers a background worker may wish to wait for the worker to start up. This can be accomplished by initializing <code>bgw_notify_pid</code> to <code>MyProcPid</code> and then passing the <code>BackgroundWorkerHandle *</code> obtained at registration time to <code>WaitForBackgroundWorkerStartup(</code>BackgroundWorkerHandle *handle<code>, </code>pid_t *<code>)</code> function. This function will block until the postmaster has attempted to start the background worker, or until the postmaster dies. If the background runner is running, the return value will <code>BGWH_STARTED</code>, and the PID will be written to the provided address. Otherwise, the return value will be <code>BGWH_STOPPED</code> or <code>BGWH_POSTMASTER_DIED</code>.</p> | |
| <p>The <code>worker_spi</code> contrib module contains a working example, which demonstrates some useful techniques.</p> | |
| <p>The maximum number of registered background workers is limited by the <code>max_worker_processes</code> server configuration parameter.</p></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="theme-doc-footer-edit-meta-row row"><div class="col"><a href="https://github.com/apache/cloudberry-site/edit/main/docs/developer/develop-background-process-worker.md" target="_blank" rel="noopener noreferrer" class="theme-edit-this-page"><svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" class="iconEdit_Z9Sw" aria-hidden="true"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col lastUpdated_VsjB"><span class="theme-last-updated">Last updated<!-- --> on <b><time datetime="2026-11-20T02:20:02.000Z" itemprop="dateModified">Nov 20, 2026</time></b> by <b>Dianjin Wang</b></span></div></div></footer></article><nav class="pagination-nav" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href="/docs/next/sys-admin/monitor-long-running-operations"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label single-line-overflow hide-before-after">Monitor Long-Running Operations</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/docs/next/developer/develop-extensions-using-rust"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label single-line-overflow hide-before-after">Develop Database Extensions Using PGRX</div></a></nav></div></div></div></div></main></div></div></div><div class="wrap_QlFE"><div class="mainWrap_IbWk"><div class="linksWrap_Zcc4"><div class="footerLink_s3zo"><div class="footerLinkTitle_PxTg">Support</div><div class="footerLinkItem_Kf4k"><a href="https://github.com/apache/cloudberry/issues" target="_blank" rel="noopener noreferrer">GitHub Issues</a></div><div class="footerLinkItem_Kf4k"><a href="https://github.com/apache/cloudberry/discussions" target="_blank" rel="noopener noreferrer">GitHub Discussions</a></div><div class="footerLinkItem_Kf4k"><a href="https://join.slack.com/t/asf-cloudberry/shared_invite/zt-3um34r7hf-Sh~6jG6hVxlQJo1tbhK2sw" target="_blank" rel="noopener noreferrer">Slack</a></div><div class="footerLinkItem_Kf4k"><a href="https://discord.gg/GJrz3Fxf6y" target="_blank" rel="noopener noreferrer">Discord</a></div><div class="footerLinkItem_Kf4k"><a href="https://x.com/ASFCloudberry" target="_blank" rel="noopener noreferrer">Twitter</a></div><div class="footerLinkItem_Kf4k"><a href="https://youtube.com/@ApacheCloudberry" target="_blank" rel="noopener noreferrer">Youtube</a></div><div class="footerLinkItem_Kf4k"><a target="_self" href="/community/security">Security</a></div></div><div class="footerLink_s3zo"><div class="footerLinkTitle_PxTg">Resources</div><div class="footerLinkItem_Kf4k"><a href="/releases" target="_blank">Download</a></div><div class="footerLinkItem_Kf4k"><a target="_self" href="/docs/">Documentation</a></div><div class="footerLinkItem_Kf4k"><a target="_self" href="/community/events">Events</a></div><div class="footerLinkItem_Kf4k"><a href="/community/brand" target="_blank">Brand Guidelines</a></div><div class="footerLinkItem_Kf4k"><a href="/powered-by" target="_blank">Powered By</a></div></div><div class="footerLink_s3zo"><div class="footerLinkTitle_PxTg">Contribution</div><div class="footerLinkItem_Kf4k"><a target="_self" href="/contribute/git">Working with Git & GitHub</a></div><div class="footerLinkItem_Kf4k"><a target="_self" href="/contribute/how-to-contribute">Contribution Overview</a></div><div class="footerLinkItem_Kf4k"><a target="_self" href="/contribute/code">Code Contribution</a></div><div class="footerLinkItem_Kf4k"><a target="_self" href="/contribute/doc">Doc Contribution</a></div></div></div><div class="logoLinkWrap_MDp5"><div class="logoWrap_qcVI"><img class="logo_cphB" src="/img/apache-incubator.svg" alt=""></div><div class="links_yA93"><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="none" viewBox="0 0 30 30" class="item_KKoc" cursor="pointer"><path d="M15.002 0c-8.288 0-15 6.713-15 15 0 6.637 4.293 12.244 10.256 14.231.75.131 1.031-.319 1.031-.712 0-.356-.019-1.538-.019-2.794-3.769.694-4.744-.919-5.044-1.763-.168-.43-.9-1.762-1.537-2.118-.525-.282-1.275-.975-.019-.994 1.181-.019 2.025 1.087 2.306 1.537 1.35 2.27 3.507 1.632 4.37 1.238.13-.975.524-1.631.956-2.006-3.338-.375-6.826-1.669-6.826-7.406 0-1.632.582-2.982 1.538-4.032-.15-.375-.675-1.912.15-3.975 0 0 1.256-.394 4.125 1.538 1.2-.338 2.475-.506 3.75-.506s2.55.168 3.75.506c2.869-1.95 4.125-1.538 4.125-1.538.825 2.063.3 3.6.15 3.975.956 1.05 1.538 2.382 1.538 4.032 0 5.756-3.507 7.03-6.844 7.406.544.468 1.012 1.369 1.012 2.775 0 2.006-.018 3.619-.018 4.125 0 .394.28.862 1.03.712A15.02 15.02 0 0 0 30.003 15c0-8.287-6.713-15-15-15"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="32" height="26" fill="none" viewBox="0 0 32 26" class="item_KKoc" cursor="pointer"><path d="M31.319 3.484c-1.145.507-2.36.84-3.603.987a6.3 6.3 0 0 0 2.758-3.47 12.5 12.5 0 0 1-3.983 1.52A6.274 6.274 0 0 0 15.64 6.815q.002.74.161 1.43a17.81 17.81 0 0 1-12.93-6.555 6.25 6.25 0 0 0-.85 3.154 6.27 6.27 0 0 0 2.791 5.222 6.25 6.25 0 0 1-2.841-.785l-.001.077a6.28 6.28 0 0 0 5.033 6.153 6.3 6.3 0 0 1-2.834.108 6.28 6.28 0 0 0 5.86 4.356 12.6 12.6 0 0 1-7.79 2.686q-.75 0-1.497-.088a17.75 17.75 0 0 0 9.616 2.818c11.54 0 17.849-9.559 17.849-17.848q0-.409-.019-.812a12.8 12.8 0 0 0 3.13-3.246"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="30" height="24" fill="none" viewBox="0 0 30 24" class="item_KKoc" cursor="pointer"><path d="M15.366 0c.801.004 2.805.024 4.935.11l.755.032c2.145.102 4.287.275 5.35.571 1.417.398 2.53 1.56 2.907 3.033.6 2.339.675 6.903.684 8.008l.002.229v.032l-.002.229c-.009 1.104-.084 5.669-.684 8.008-.381 1.478-1.495 2.64-2.907 3.032-1.063.297-3.205.47-5.35.571l-.755.033c-2.13.086-4.134.105-4.935.11h-.734c-1.696-.01-8.785-.087-11.04-.714-1.418-.398-2.532-1.56-2.908-3.032-.6-2.34-.675-6.904-.684-8.008v-.49c.01-1.105.084-5.67.684-8.008.382-1.478 1.496-2.64 2.908-3.033C5.847.086 12.936.01 14.632 0zm-3.367 6.749v10.5l9-5.25z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="none" viewBox="0 0 30 30" class="item_KKoc" cursor="pointer"><path d="M6.791 18.77a2.96 2.96 0 0 1-2.952 2.952 2.96 2.96 0 0 1-2.951-2.951 2.96 2.96 0 0 1 2.951-2.952h2.952zm1.487 0a2.96 2.96 0 0 1 2.952-2.951 2.96 2.96 0 0 1 2.952 2.952v7.39a2.96 2.96 0 0 1-2.952 2.952 2.96 2.96 0 0 1-2.952-2.952zM11.23 6.792A2.96 2.96 0 0 1 8.278 3.84 2.96 2.96 0 0 1 11.23.888a2.96 2.96 0 0 1 2.952 2.951v2.952zm0 1.487a2.96 2.96 0 0 1 2.952 2.952 2.96 2.96 0 0 1-2.952 2.952H3.84A2.96 2.96 0 0 1 .887 11.23a2.96 2.96 0 0 1 2.951-2.952zm11.98 2.952a2.96 2.96 0 0 1 2.951-2.952 2.96 2.96 0 0 1 2.952 2.952 2.96 2.96 0 0 1-2.952 2.952H23.21zm-1.488 0a2.96 2.96 0 0 1-2.951 2.952 2.96 2.96 0 0 1-2.952-2.952V3.84A2.96 2.96 0 0 1 18.771.887a2.96 2.96 0 0 1 2.951 2.951zm-2.951 11.98a2.96 2.96 0 0 1 2.951 2.951 2.96 2.96 0 0 1-2.951 2.952 2.96 2.96 0 0 1-2.952-2.952V23.21zm0-1.488a2.96 2.96 0 0 1-2.952-2.951 2.96 2.96 0 0 1 2.952-2.952h7.39a2.96 2.96 0 0 1 2.952 2.952 2.96 2.96 0 0 1-2.952 2.951z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="none" viewBox="0 0 30 30" class="item_KKoc" cursor="pointer"><path d="M25.396 5.463a24.2 24.2 0 0 0-6.062-1.876.06.06 0 0 0-.063.03c-.25.45-.525 1.026-.712 1.483a22.3 22.3 0 0 0-6.7 0 14 14 0 0 0-.725-1.482.07.07 0 0 0-.063-.03A24 24 0 0 0 5.01 5.463a.06.06 0 0 0-.03.027C1.416 11.307.434 17.008.999 22.642a.1.1 0 0 0 .04.073 23.2 23.2 0 0 0 7.187 3.663.07.07 0 0 0 .07-.023 18.4 18.4 0 0 0 1.47-2.453.076.076 0 0 0-.04-.105 16 16 0 0 1-2.262-1.11c-.048-.027-.05-.095-.005-.122q.234-.177.457-.365a.07.07 0 0 1 .073-.01c4.995 2.302 10.37 2.302 15.307 0a.07.07 0 0 1 .075.008c.148.125.303.25.46.367a.07.07 0 0 1-.002.122c-.72.433-1.47.8-2.265 1.108-.043.017-.058.067-.04.107.437.858.93 1.675 1.47 2.45a.07.07 0 0 0 .072.026 23.2 23.2 0 0 0 7.2-3.663.1.1 0 0 0 .038-.07c.655-6.512-1.07-12.162-4.883-17.152a.05.05 0 0 0-.025-.03m-14.87 13.7c-1.367 0-2.497-1.27-2.497-2.815s1.105-2.815 2.497-2.815c1.405 0 2.523 1.282 2.498 2.815 0 1.544-1.105 2.815-2.498 2.815m9.293 0c-1.368 0-2.498-1.27-2.498-2.815s1.105-2.815 2.498-2.815c1.405 0 2.522 1.282 2.497 2.815 0 1.544-1.092 2.815-2.497 2.815"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="28" height="30" fill="none" viewBox="0 0 28 30" class="item_KKoc" cursor="pointer"><path d="M22.48 4.286H5.195c-.845 0-1.52.724-1.52 1.568v18.579c0 .844.675 1.568 1.52 1.568h17.283c.845 0 1.52-.724 1.52-1.568V5.854c0-.844-.675-1.568-1.52-1.568"></path><path fill="#000" d="M6.233 12.156h3.081v10.756H6.233zm1.57-5.315c.988 0 1.802.875 1.802 1.938s-.814 1.939-1.803 1.939C6.814 10.718 6 9.842 6 8.779s.814-1.938 1.802-1.938m3.488 5.315h2.965v1.439h.058c.407-.876 1.453-1.751 2.965-1.751 3.14 0 3.721 2.25 3.721 5.127v5.879h-3.081v-5.253c0-1.25 0-2.877-1.628-2.877s-1.86 1.376-1.86 2.752v5.315h-3.082v-10.63z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="34" height="28" fill="none" viewBox="0 0 34 28" class="item_KKoc" cursor="pointer"><path d="M26.863 16.567c.748 0 1.347-.636 1.347-1.347 0-.748-.599-1.347-1.347-1.347s-1.347.599-1.347 1.347c0 .749.599 1.347 1.347 1.347m-6.639 0c.749 0 1.347-.636 1.347-1.347 0-.748-.598-1.347-1.347-1.347-.748 0-1.346.599-1.346 1.347 0 .749.598 1.347 1.346 1.347m9.852 7.56a.52.52 0 0 0-.258.553c0 .074 0 .148.036.221.148.627.442 1.622.442 1.66 0 .11.037.184.037.257a.33.33 0 0 1-.331.332c-.074 0-.11-.037-.184-.074l-2.174-1.253c-.147-.074-.331-.147-.516-.147-.11 0-.22 0-.294.037-1.032.294-2.1.442-3.242.442-5.49 0-9.91-3.687-9.91-8.258s4.42-8.257 9.91-8.257c5.489 0 9.91 3.686 9.91 8.257 0 2.47-1.327 4.719-3.427 6.23M24.01 8.147a14 14 0 0 0-.42-.007c-6.261 0-11.409 4.29-11.409 9.757 0 .83.119 1.634.342 2.4h-.133c-1.33 0-2.659-.221-3.877-.553-.111-.037-.222-.037-.333-.037-.221 0-.443.074-.627.185L4.932 21.4a.5.5 0 0 1-.221.074.41.41 0 0 1-.406-.405c0-.11.036-.184.073-.294.037-.037.37-1.251.554-1.987 0-.074.037-.184.037-.258a.83.83 0 0 0-.332-.662C2.089 16.065.5 13.378.5 10.398.501 4.916 5.855.5 12.428.5 18.073.5 22.82 3.753 24.01 8.146m-7.731.627c.859 0 1.54-.716 1.54-1.54 0-.858-.681-1.539-1.54-1.539-.86 0-1.54.68-1.54 1.54 0 .859.68 1.54 1.54 1.54m-7.89 0c.86 0 1.54-.716 1.54-1.54 0-.858-.68-1.539-1.54-1.539-.859 0-1.539.68-1.539 1.54 0 .859.68 1.54 1.54 1.54"></path></svg></div></div></div><div class="copyrightWrap_yPz7"><div class="copyright_AoBa"> | |
| <p> | |
| Apache Cloudberry is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF. | |
| </p> | |
| <p> | |
| Copyright © 2026 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.</p> | |
| <p> | |
| Apache Cloudberry, Cloudberry, Apache, the Apache logo, and the Apache Cloudberry project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries. All other marks mentioned may be trademarks or registered trademarks of their respective owners. | |
| </p> | |
| </div></div></div></div> | |
| </body> | |
| </html> |