{"id":7336,"date":"2026-08-20T18:28:28","date_gmt":"2026-08-20T16:28:28","guid":{"rendered":"https:\/\/www.webhostingsrbija.rs\/?p=7336"},"modified":"2026-08-20T18:28:28","modified_gmt":"2026-08-20T16:28:28","slug":"postgresql-baze","status":"publish","type":"post","link":"https:\/\/www.webhostingsrbija.rs\/en\/postgresql-baze\/","title":{"rendered":"PostgreSQL databases in WHSPanel"},"content":{"rendered":"<p>PostgreSQL is an advanced relational database, ideal for applications that need complex queries, JSON data storage, full-text search, or strict data integrity. In this part of the panel, you create PostgreSQL databases and users, and view the data through the built-in Adminer tool. Names are prefixed with your account name.<\/p>\n\n<h2>1. Overview<\/h2>\n<p>Open in the menu <strong>Databases<\/strong> well <strong>PostgreSQL databases<\/strong>. At the top are cards with the number of bases, total size and number of users, and below are tables of bases (each with its own actions) and users.<\/p>\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ac325aa3a714&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ac325aa3a714\" class=\"wp-block-image size-large wp-lightbox-container\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"732\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/pg-populated-a-1024x732.avif\" alt=\"PostgreSQL upravljanje u WHSPanelu\" class=\"wp-image-7550\" title=\"\" srcset=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/pg-populated-a-1024x732.avif 1024w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/pg-populated-a-300x214.avif 300w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/pg-populated-a-768x549.avif 768w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/pg-populated-a-1536x1098.avif 1536w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/pg-populated-a-2048x1463.avif 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-block-image__caption\">Populated state: base and user with actions Access, Admin, Password.<\/figcaption><\/figure>\n\n\n<h2>2. Database Wizard<\/h2>\n<p>The fastest way is <strong>Database Wizard<\/strong>: in a few steps, you create a database, a user and assign access at once.<\/p>\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ac325aa3aa87&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ac325aa3aa87\" class=\"wp-block-image size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1024\" height=\"793\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/pg-wizard-p-1024x793.avif\" alt=\"PostgreSQL \u010darobnjak za baze\" class=\"wp-image-7551\" title=\"\" srcset=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/pg-wizard-p-1024x793.avif 1024w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/pg-wizard-p-300x232.avif 300w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/pg-wizard-p-768x595.avif 768w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/pg-wizard-p-1536x1189.avif 1536w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2026\/08\/pg-wizard-p-2048x1586.avif 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-block-image__caption\">Wizard for creating PostgreSQL database and users.<\/figcaption><\/figure>\n\n\n<h2>3. Handcrafted<\/h2>\n<ul>\n<li><strong>Create database:<\/strong> Enter the name of the new database.<\/li>\n<li><strong>Create user:<\/strong> create a user (also known as a &quot;role&quot; in the PostgreSQL world) with a password.<\/li>\n<\/ul>\n\n<h2>4. Actions on the database<\/h2>\n<table>\n<thead><tr><th>Action<\/th><th>What does it do?<\/th><\/tr><\/thead>\n<tbody>\n<tr><td><strong>Access<\/strong><\/td><td>Determines which users the database is available to (connect user to database).<\/td><\/tr>\n<tr><td><strong>Admin<\/strong><\/td><td>Opens a secure database web interface with single sign-on, where you execute SQL queries, view tables, and view data. You don&#039;t need a separate database password for Adminer.<\/td><\/tr>\n<tr><td><strong>Delete<\/strong><\/td><td>Permanently deletes the database.<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n<h2>5. Users (roles)<\/h2>\n<p>PostgreSQL users (also known as &quot;roles&quot;) are login accounts that your applications use to connect. Column <strong>Bases<\/strong> in the user table it shows which bases each user can access. With a button <strong>Password<\/strong> you change the user&#039;s password, and <strong>Delete<\/strong> removes it.<\/p>\n\n<blockquote><p><strong>When to choose PostgreSQL:<\/strong> if the application works with complex queries, geo data, large JSON documents or requires strict integrity, PostgreSQL is an excellent choice. For a typical WordPress or store, MySQL is usually sufficient.<\/p><\/blockquote>\n\n<blockquote><p><strong>Note:<\/strong> when connecting the application, it uses the full name of the database and the user with the account prefix, and as the host <code>localhost<\/code>. Don&#039;t forget to give the user <strong>Access<\/strong> base.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>How to create a PostgreSQL database and user in WHSPanel and view data through Adminer, without a separate database password.<\/p>","protected":false},"author":1,"featured_media":7311,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[206,203],"tags":[],"class_list":["post-7336","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-baze-podataka","category-whs-panel"],"_links":{"self":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/7336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/comments?post=7336"}],"version-history":[{"count":1,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/7336\/revisions"}],"predecessor-version":[{"id":7569,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/7336\/revisions\/7569"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media\/7311"}],"wp:attachment":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media?parent=7336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/categories?post=7336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/tags?post=7336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}