Create, manage, and clone PostgreSQL databases in Cito
A Cito server runs one database engine: MySQL or PostgreSQL. This is chosen when the server is ordered and cannot be changed afterwards. This page covers servers running PostgreSQL. If your server runs MySQL, see Managing MySQL Databases instead.Everything on this page can be found by clicking ‘Databases’ in the sidebar, or in the ‘Databases’ section of a site’s settings. Both show which engine the server runs, next to the ‘Databases’ heading.
Some site types need MySQL and are not available on a PostgreSQL server: WordPress, Magento and PrestaShop. phpMyAdmin and migrations from cPanel and WHM are MySQL only too.
Creating a database
The Databases page lists every database on the server, with its users, the site that owns it and its size. You can use the search bar to filter for specific databases, and the ‘All servers’ checkbox to search for databases on other servers, if you have more than one.To add a new database, click the ‘Create Database’ button in the top right corner.You will be prompted for a database name, username and password, and for the site that should own the database. See Database ownership for more about owners.PostgreSQL names are stricter than MySQL names:
Lowercase letters, numbers and underscores only. No capital letters and no hyphens.
The name must start with a letter or an underscore.
A database name can be up to 56 characters long, a username up to 63.
The names postgres, template0 and template1, and anything starting with pg_ or cito_, are reserved.
Once created, you will see the new database details displayed to you.
Passwords are only shown onceWe do not display database passwords again after this screen. Click the icon next to the password field to copy it to your clipboard. If you lose a password you’ll need to reset it.
Connecting to a database
Sites on the server connect to PostgreSQL with these details:
Setting
Value
Host
127.0.0.1
Port
5432
Database
The name you chose
Username and password
The ones shown when the database was created
When you create a Laravel or Craft CMS site, Cito creates the database for you, writes these details into the site’s .env file, and shows them as a connection string you can copy:You can paste the connection string straight into psql when logged in to the server over SSH:
A database user can only connect to the databases it has been given access to. It cannot see or connect to another site’s database.
Managing users
You can manage a database’s users by clicking the User icon next to the database. This lets you add more users, change what a user can do, or reset a user’s password.When you add a user you choose between two kinds of access:
All privileges (recommended). The user can do anything in the database, including creating, altering and dropping tables. Every user with all privileges can work with every table in the database, whichever of them created it.
Specific privileges. The user can only do what you tick, on every table in the database, including tables created later. For example, tick only SELECT to create a read-only user.
The privileges you can choose from are:
Privilege
Allows the user to
SELECT
Read data from tables
INSERT
Add new data to tables
UPDATE
Modify existing data
DELETE
Remove data from tables
TRUNCATE
Empty tables in one step
REFERENCES
Create foreign keys to tables
TRIGGER
Create triggers on tables
Creating, altering and dropping tables cannot be granted on their own in PostgreSQL. A user that needs to change the structure of the database needs all privileges.
Changing a user’s privileges, or removing a user, takes effect straight away. Any connections that user has open to the database are closed, so an application using it will reconnect.Removing a user from a database deletes the user too, unless it still has access to another database.
Cloning databases
It can be useful to clone a database, for example if you need a copy of it for testing purposes. Cloning creates a new database with its own new user. The original database’s other users are not copied.To clone a database, click the Clone icon in the actions menu on the Databases page. You’ll need to specify a name for the new database, and a username and password for its user.Click Clone to start the process. You can carry on using the original database while it is being cloned. Large databases may take a few moments to complete.
Connecting from containers
Container sites use the server’s PostgreSQL like any other site. Create the database from the site’s Databases tab, then connect to it from inside your containers using this host:
postgres.cito.internal:5432
The host is also shown at the top of a container site’s Databases tab with a copy button, and in the Host field when you create a database.Connections from containers arrive at PostgreSQL from the server itself, so the database users Cito creates work as they are. PostgreSQL is not exposed to the internet.
Remote database access
For security purposes, remote access to PostgreSQL is disallowed by default. Please contact support if you need to connect remotely using a tool such as pgAdmin, DBeaver or TablePlus.
Restoring databases
To restore a database from a backup, please contact support.
Orphaned databases
In Cito all databases are owned by (i.e. associated with) a site. If you see a message about an orphaned database, find that database and use the dropdown menu to assign it to a site. This only needs to be done once.More information can be found at Database ownership.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Prostack Cito","colors":{"primary":"#1C1F38","light":"#3B4063","dark":"#0F1120"},"logo":{"light":"/logo/logo.png","dark":"/logo/logo.png"},"favicon":"/logo/logo.png","appearance":{"default":"light"},"navbar":{"links":[{"href":"https://feedback.cito.prostack.uk/","label":"Feedback"}],"primary":{"type":"button","label":"Log into Cito","href":"https://cito.prostack.uk"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/prostackhost","x":"https://x.com/prostackhost"}},"integrations":{"telemetry":{"enabled":false}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4383"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false,"isLoggedInCli":false,"mintExport":{}},"customCss":[{"filePath":"style.css","content":":root{--background: #f9f9f9 !important;--bg-background: #f9f9f9 !important;--background-light: 249 249 249 !important;--navbar-background: #f9f9f9 !important}html:not(.dark){background-color:#f9f9f9}html:not(.dark) body{background-color:#f9f9f9}html:not(.dark) #content-container{background-color:#f9f9f9}html:not(.dark) #navbar,html:not(.dark) nav,html:not(.dark) header,html:not(.dark) [class*=\"Navbar\"],html:not(.dark) [class*=\"navbar\"],html:not(.dark) [class*=\"Header\"],html:not(.dark) [class*=\"header\"],html:not(.dark) [class*=\"TopBar\"],html:not(.dark) [class*=\"topbar\"],html:not(.dark) [class*=\"nav-\"],html:not(.dark) [class*=\"scroll\"],html:not(.dark) [class*=\"sticky\"]{background-color:#f9f9f9!important;background:#f9f9f9!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}html:not(.dark) [class*=\"Navbar\"]::before,html:not(.dark) [class*=\"Navbar\"]::after,html:not(.dark) header::before,html:not(.dark) header::after,html:not(.dark) nav::before,html:not(.dark) nav::after{background-color:#f9f9f9!important;background:#f9f9f9!important}header a[href=\"/\"],[class*=\"Navbar\"] a[href=\"/\"]{display:inline-flex;align-items:center;gap:0.5rem}header a[href=\"/\"]::after,[class*=\"Navbar\"] a[href=\"/\"]::after{content:\"Cito Documentation\";font-weight:600;font-size:1.1rem;color:#1C1F38;white-space:nowrap}html.dark header a[href=\"/\"]::after,html.dark [class*=\"Navbar\"] a[href=\"/\"]::after{color:white}"}]}
{"page":{"pagePath":"managing-sites/postgresql","slug":"/managing-sites/postgresql","pageMetadata":{"title":"Managing PostgreSQL Databases","description":"Create, manage, and clone PostgreSQL databases in Cito","href":"/managing-sites/postgresql"},"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: \"Create, manage, and clone PostgreSQL databases in Cito\"\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`,em:`em`,img:`img`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A Cito server runs one database engine: MySQL or PostgreSQL. This is chosen when the server is ordered and cannot be changed afterwards. This page covers servers running PostgreSQL. If your server runs MySQL, see `,_jsx(_components.a,{href:`/managing-sites/mysql`,children:`Managing MySQL Databases`}),` instead.`]}),`\n`,_jsx(_components.p,{children:`Everything on this page can be found by clicking ‘Databases’ in the sidebar, or in the ‘Databases’ section of a site’s settings. Both show which engine the server runs, next to the ‘Databases’ heading.`}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Some site types need MySQL and are not available on a PostgreSQL server: WordPress, Magento and PrestaShop. phpMyAdmin and migrations from cPanel and WHM are MySQL only too.`})}),`\n`,_jsx(Heading,{level:`2`,id:`creating-a-database`,children:`Creating a database`}),`\n`,_jsx(_components.p,{children:`The Databases page lists every database on the server, with its users, the site that owns it and its size. You can use the search bar to filter for specific databases, and the ‘All servers’ checkbox to search for databases on other servers, if you have more than one.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`/images/screenshots/postgresql-list.png`,alt:`Database list`})}),`\n`,_jsxs(_components.p,{children:[`To add a new database, click the ‘Create Database’ button in the `,_jsx(_components.strong,{children:`top right corner`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`You will be prompted for a database `,_jsx(_components.strong,{children:`name`}),`, `,_jsx(_components.strong,{children:`username`}),` and `,_jsx(_components.strong,{children:`password`}),`, and for the site that should own the database. See `,_jsx(_components.a,{href:`/managing-sites/database-ownership`,children:`Database ownership`}),` for more about owners.`]}),`\n`,_jsx(_components.p,{children:`PostgreSQL names are stricter than MySQL names:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Lowercase letters, numbers and underscores only. No capital letters and no hyphens.`}),`\n`,_jsx(_components.li,{children:`The name must start with a letter or an underscore.`}),`\n`,_jsx(_components.li,{children:`A database name can be up to 56 characters long, a username up to 63.`}),`\n`,_jsxs(_components.li,{children:[`The names `,_jsx(_components.code,{children:`postgres`}),`, `,_jsx(_components.code,{children:`template0`}),` and `,_jsx(_components.code,{children:`template1`}),`, and anything starting with `,_jsx(_components.code,{children:`pg_`}),` or `,_jsx(_components.code,{children:`cito_`}),`, are reserved.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Once created, you will see the new database details displayed to you.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`/images/screenshots/postgresql-create.png`,alt:`New database details`})}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Passwords are only shown once`})}),_jsx(_components.p,{children:`We do not display database passwords again after this screen. Click the icon next to the password field to copy it to your clipboard. If you lose a password you’ll need to reset it.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`connecting-to-a-database`,children:`Connecting to a database`}),`\n`,_jsx(_components.p,{children:`Sites on the server connect to PostgreSQL with these details:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setting`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Host`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`127.0.0.1`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Port`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`5432`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Database`}),_jsx(_components.td,{children:`The name you chose`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Username and password`}),_jsx(_components.td,{children:`The ones shown when the database was created`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`When you create a Laravel or Craft CMS site, Cito creates the database for you, writes these details into the site’s `,_jsx(_components.code,{children:`.env`}),` file, and shows them as a connection string you can copy:`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`/images/screenshots/postgresql-connection-details.png`,alt:`Connection details`})}),`\n`,_jsxs(_components.p,{children:[`You can paste the connection string straight into `,_jsx(_components.code,{children:`psql`}),` when logged in to the server over SSH:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`psql`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"postgresql://shop_user:your-password@127.0.0.1:5432/shop_db\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`A database user can only connect to the databases it has been given access to. It cannot see or connect to another site’s database.`}),`\n`,_jsx(Heading,{level:`2`,id:`managing-users`,children:`Managing users`}),`\n`,_jsx(_components.p,{children:`You can manage a database’s users by clicking the User icon next to the database. This lets you add more users, change what a user can do, or reset a user’s password.`}),`\n`,_jsx(_components.p,{children:`When you add a user you choose between two kinds of access:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`All privileges`}),` (recommended). The user can do anything in the database, including creating, altering and dropping tables. Every user with all privileges can work with every table in the database, whichever of them created it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Specific privileges.`}),` The user can only do what you tick, on every table in the database, including tables created later. For example, tick only `,_jsx(_components.code,{children:`SELECT`}),` to create a read-only user.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`/images/screenshots/postgresql-privileges.png`,alt:`User privileges`})}),`\n`,_jsx(_components.p,{children:`The privileges you can choose from are:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Privilege`}),_jsx(_components.th,{children:`Allows the user to`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`SELECT`})}),_jsx(_components.td,{children:`Read data from tables`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`INSERT`})}),_jsx(_components.td,{children:`Add new data to tables`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`UPDATE`})}),_jsx(_components.td,{children:`Modify existing data`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DELETE`})}),_jsx(_components.td,{children:`Remove data from tables`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TRUNCATE`})}),_jsx(_components.td,{children:`Empty tables in one step`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`REFERENCES`})}),_jsx(_components.td,{children:`Create foreign keys to tables`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TRIGGER`})}),_jsx(_components.td,{children:`Create triggers on tables`})]})]})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Creating, altering and dropping tables cannot be granted on their own in PostgreSQL. A user that needs to change the structure of the database needs all privileges.`})}),`\n`,_jsx(_components.p,{children:`Changing a user’s privileges, or removing a user, takes effect straight away. Any connections that user has open to the database are closed, so an application using it will reconnect.`}),`\n`,_jsx(_components.p,{children:`Removing a user from a database deletes the user too, unless it still has access to another database.`}),`\n`,_jsx(Heading,{level:`2`,id:`cloning-databases`,children:`Cloning databases`}),`\n`,_jsxs(_components.p,{children:[`It can be useful to clone a database, for example if you need a copy of it for testing purposes. Cloning creates a new database with its own new user. The original database’s other users are `,_jsx(_components.em,{children:`not`}),` copied.`]}),`\n`,_jsx(_components.p,{children:`To clone a database, click the Clone icon in the actions menu on the Databases page. You’ll need to specify a name for the new database, and a username and password for its user.`}),`\n`,_jsx(_components.p,{children:`Click Clone to start the process. You can carry on using the original database while it is being cloned. Large databases may take a few moments to complete.`}),`\n`,_jsx(Heading,{level:`2`,id:`connecting-from-containers`,children:`Connecting from containers`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/creating-sites/docker`,children:`Container sites`}),` use the server’s PostgreSQL like any other site. Create the database from the site’s `,_jsx(_components.strong,{children:`Databases`}),` tab, then connect to it from inside your containers using this host:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`postgres.cito.internal:5432`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`The host is also shown at the top of a container site’s `,_jsx(_components.strong,{children:`Databases`}),` tab with a copy button, and in the `,_jsx(_components.strong,{children:`Host`}),` field when you create a database.`]}),`\n`,_jsx(_components.p,{children:`Connections from containers arrive at PostgreSQL from the server itself, so the database users Cito creates work as they are. PostgreSQL is not exposed to the internet.`}),`\n`,_jsx(Heading,{level:`2`,id:`remote-database-access`,children:`Remote database access`}),`\n`,_jsxs(_components.p,{children:[`For security purposes, remote access to PostgreSQL is disallowed by default. Please `,_jsx(_components.a,{href:`/support/contact`,children:`contact support`}),` if you need to connect remotely using a tool such as pgAdmin, DBeaver or TablePlus.`]}),`\n`,_jsx(Heading,{level:`2`,id:`restoring-databases`,children:`Restoring databases`}),`\n`,_jsxs(_components.p,{children:[`To restore a database from a backup, please `,_jsx(_components.a,{href:`/support/contact`,children:`contact support`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`orphaned-databases`,children:`Orphaned databases`}),`\n`,_jsx(_components.p,{children:`In Cito all databases are owned by (i.e. associated with) a site. If you see a message about an orphaned database, find that database and use the dropdown menu to assign it to a site. This only needs to be done once.`}),`\n`,_jsxs(_components.p,{children:[`More information can be found at `,_jsx(_components.a,{href:`/managing-sites/database-ownership`,children:`Database ownership`}),`.`]})]})}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":"Managing PostgreSQL Databases","description":"Create, manage, and clone PostgreSQL databases in Cito","href":"/managing-sites/postgresql"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Creating a database","slug":"creating-a-database","depth":2,"children":[]},{"title":"Connecting to a database","slug":"connecting-to-a-database","depth":2,"children":[]},{"title":"Managing users","slug":"managing-users","depth":2,"children":[]},{"title":"Cloning databases","slug":"cloning-databases","depth":2,"children":[]},{"title":"Connecting from containers","slug":"connecting-from-containers","depth":2,"children":[]},{"title":"Remote database access","slug":"remote-database-access","depth":2,"children":[]},{"title":"Restoring databases","slug":"restoring-databases","depth":2,"children":[]},{"title":"Orphaned databases","slug":"orphaned-databases","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"localhost","siteName":"Prostack Cito","title":"Managing PostgreSQL Databases - Prostack Cito","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"managing-sites/postgresql.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create, manage, and clone PostgreSQL databases in Cito\">\u003cmeta data-mint-head name=\"application-name\" content=\"Prostack Cito\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/favicons/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicons/favicon-32x32.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicons/favicon-16x16.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicons/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Managing PostgreSQL Databases - Prostack Cito\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create, manage, and clone PostgreSQL databases in Cito\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Prostack Cito\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./managing-sites/postgresql\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Managing PostgreSQL Databases - Prostack Cito\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create, manage, and clone PostgreSQL databases in Cito\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/favicons/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Prostack Cito\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1C1F38\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./managing-sites/postgresql\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/managing-sites/postgresql.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Prostack Cito\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Prostack Cito\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/managing-sites/postgresql.md","siteName":"Prostack Cito","nav":{"groups":[{"group":"Home","pages":[{"title":"Introduction","href":"/index"}]},{"group":"Getting Started","pages":[{"title":"First Steps","href":"/getting-started/index"},{"title":"Generating SSH Keys","href":"/getting-started/ssh-keys"},{"title":"Migrating from another host","href":"/getting-started/migration"},{"title":"Frequently Asked Questions","href":"/getting-started/faq"}]},{"group":"Creating Sites","pages":[{"title":"Adding a New Site","href":"/creating-sites/overview"},{"title":"Installing WordPress","href":"/creating-sites/wordpress"},{"title":"NodeJS Applications","href":"/creating-sites/nodejs"},{"title":"Proxy Pass","href":"/creating-sites/proxy-pass"}]},{"group":"Containers","pages":[{"title":"Container Sites","href":"/creating-sites/docker"},{"title":"Importing from Docker Compose","href":"/creating-sites/docker-compose"},{"title":"Managing Containers","href":"/managing-sites/containers"},{"title":"Services","href":"/managing-sites/container-services"},{"title":"Converting a Proxy Pass Site","href":"/managing-sites/convert-proxy-site"},{"title":"Container Limits","href":"/managing-sites/container-limits"}]},{"group":"Managing Sites","pages":[{"title":"Sites Overview","href":"/managing-sites/overview"},{"title":"Changing PHP Versions","href":"/managing-sites/php-version"},{"title":"Custom Document Roots","href":"/managing-sites/document-root"},{"title":"Preview URLs","href":"/managing-sites/preview"},{"title":"Cloning Sites","href":"/managing-sites/clone"},{"title":"Renaming Sites","href":"/managing-sites/rename"},{"title":"Suspending Sites","href":"/managing-sites/suspend"},{"title":"Deleting Sites","href":"/managing-sites/delete"},{"title":".htaccess Import","href":"/managing-sites/htaccess-import"}]},{"group":"Domains, SSL \u0026 Email","pages":[{"title":"Aliases","href":"/managing-sites/aliases"},{"title":"Redirects","href":"/managing-sites/redirects"},{"title":"Domain Information","href":"/managing-sites/domain-information"},{"title":"SSL Certificates","href":"/cli/ssl"},{"title":"Email","href":"/managing-sites/email"}]},{"group":"Files \u0026 Databases","pages":[{"title":"File Manager","href":"/managing-sites/file-manager"},{"title":"Managing MySQL Databases","description":"Create, manage, and clone MySQL databases in Cito","href":"/managing-sites/mysql"},{"title":"Managing PostgreSQL Databases","href":"/managing-sites/postgresql"},{"title":"Database Ownership","description":"How Cito tracks database ownership and handles orphaned databases","href":"/managing-sites/database-ownership"},{"title":"Backups","href":"/managing-sites/backups"}]},{"group":"Security","pages":[{"title":"Password Protection","href":"/managing-sites/password-protection"},{"title":"IP Blocking","href":"/managing-sites/ip-blocking"},{"title":"Bot \u0026 Crawler Blocking","href":"/managing-sites/bot-blocking"},{"title":"Firewall","href":"/managing-sites/firewall"},{"title":"Malware Protection","href":"/managing-sites/security"},{"title":"Dependency Vulnerabilities","href":"/managing-sites/dependency-vulnerabilities"}]},{"group":"Performance \u0026 Monitoring","pages":[{"title":"Caching","href":"/managing-sites/caching"},{"title":"Analytics","href":"/managing-sites/analytics"},{"title":"Viewing Logs","href":"/managing-sites/logs"}]},{"group":"Deployment \u0026 Automation","pages":[{"title":"SSH","href":"/deploying/ssh"},{"title":"Working with Git","href":"/deploying/git"},{"title":"Cron Jobs","href":"/managing-sites/crons"},{"title":"MCP Server (beta)","href":"/deploying/mcp"}]},{"group":"Server Configuration","pages":[{"title":"Nginx","href":"/cli/nginx"},{"title":"PHP","href":"/cli/php"}]},{"group":"Account","pages":[{"title":"User Management","href":"/account/authentication"},{"title":"Audit Logs","href":"/account/audit-logs"}]},{"group":"Support","pages":[{"title":"Getting Support","href":"/support/contact"},{"title":"Changelog","href":"/support/changelog"}]}]},"basePath":"","title":"Managing PostgreSQL Databases - Prostack Cito","buildId":"d75ae14c4b17","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-Bwd1Gb-e.js","lightbox-handle-r17bVUz3.js"]}