{"id":56,"date":"2024-11-16T15:50:43","date_gmt":"2024-11-16T08:50:43","guid":{"rendered":"https:\/\/www.pgtutorial.com\/?page_id=56"},"modified":"2024-11-16T17:35:37","modified_gmt":"2024-11-16T10:35:37","slug":"what-is-postgresql","status":"publish","type":"page","link":"https:\/\/www.pgtutorial.com\/postgresql-tutorial\/what-is-postgresql\/","title":{"rendered":"What is PostgreSQL"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you&#8217;ll learn about PostgreSQL and what you can build with PostgreSQL.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='what-is-a-database'>What is a database <a href=\"#what-is-a-database\" class=\"anchor\" id=\"what-is-a-database\" title=\"Anchor for What is a database\">#<\/a><\/h2>\n\n\n\n<p>A database is a repository for storing information. It allows you to store data from various sources, such as external files and websites, and organize it in a structured manner.<\/p>\n\n\n\n<p>Typically, databases store data on hard drives, allowing for later retrieval or updates.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='what-is-postgresql'>What is PostgreSQL <a href=\"#what-is-postgresql\" class=\"anchor\" id=\"what-is-postgresql\" title=\"Anchor for What is PostgreSQL\">#<\/a><\/h2>\n\n\n\n<p>PostgreSQL, often referred to as <em>Postgres<\/em>, is a <em>free<\/em> and <em>open-source<\/em> relational database management system (RDBMS):<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"100\" height=\"128\" src=\"https:\/\/www.pgtutorial.com\/wp-content\/uploads\/2024\/11\/what-is-postgresql.png\" alt=\"what is postgresql\" class=\"wp-image-76\" title=\"what is postgresql\"\/><\/figure>\n<\/div>\n\n\n<p>In RDBMS, data is organized into multiple related table tables. For example, you can have a table to store products and another table to store invoices.<\/p>\n\n\n\n<p>PostgreSQL is famous for its robustness, performance, and flexibility.<\/p>\n\n\n\n<p>PostgreSQL is utilized across applications, ranging from small-scale projects to large enterprise systems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='postgresql-clients'>PostgreSQL clients <a href=\"#postgresql-clients\" class=\"anchor\" id=\"postgresql-clients\" title=\"Anchor for PostgreSQL clients\">#<\/a><\/h2>\n\n\n\n<p>To work with PostgreSQL databases, you need a client program.<\/p>\n\n\n\n<p>There are many types of PostgreSQL client programs available:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Desktop applications.<\/li>\n\n\n\n<li>Web applications.<\/li>\n\n\n\n<li>Command-line interface (CLI) programs.<\/li>\n<\/ul>\n\n\n\n<p>A PostgreSQL client program connects to the PostgreSQL server.<\/p>\n\n\n\n<p>To interact with a PostgreSQL server, you write structured query language (SQL) statements to add, retrieve, update, and delete data:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"365\" height=\"128\" src=\"https:\/\/www.pgtutorial.com\/wp-content\/uploads\/2024\/11\/postgresql-client.png\" alt=\"postgresql client\" class=\"wp-image-73\" srcset=\"https:\/\/www.pgtutorial.com\/wp-content\/uploads\/2024\/11\/postgresql-client.png 365w, https:\/\/www.pgtutorial.com\/wp-content\/uploads\/2024\/11\/postgresql-client-300x105.png 300w\" sizes=\"auto, (max-width: 365px) 100vw, 365px\" \/><\/figure>\n<\/div>\n\n\n<p>It&#8217;s worth noting that SQL is a standardized language used to interact with various databases, including MySQL, Oracle, and Microsoft SQL Server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id='challenges'>Challenges <a href=\"#challenges\" class=\"anchor\" id=\"challenges\" title=\"Anchor for Challenges\">#<\/a><\/h2>\n\n\n\n<p>When working with PostgreSQL, you\u2019ll encounter some major challenges:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>How to write efficient SQL queries to retrieve data from PostgreSQL databases.<\/li>\n\n\n\n<li>How to design optimal database structures (or schemas) for your applications.<\/li>\n\n\n\n<li>Understand when to use PostgreSQL features like indexes, views, and stored procedures.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful ?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"56\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pgtutorial.com\/postgresql-tutorial\/what-is-postgresql\/\"\n\t\t\t\tdata-post-title=\"What is PostgreSQL\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"56\"\n\t\t\t\tdata-post-url=\"https:\/\/www.pgtutorial.com\/postgresql-tutorial\/what-is-postgresql\/\"\n\t\t\t\tdata-post-title=\"What is PostgreSQL\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>PostgreSQL is a free and open-source relational database system. PostgreSQL is also known as Postgres.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":13,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-56","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is PostgreSQL<\/title>\n<meta name=\"description\" content=\"PostgreSQL, often referred to as Postgres, is a free and open-source relational database management system (RDBMS).\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pgtutorial.com\/what-is-postgresql\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is PostgreSQL\" \/>\n<meta property=\"og:description\" content=\"PostgreSQL, often referred to as Postgres, is a free and open-source relational database management system (RDBMS).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pgtutorial.com\/what-is-postgresql\/\" \/>\n<meta property=\"og:site_name\" content=\"PostgreSQL Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-16T10:35:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pgtutorial.com\/wp-content\/uploads\/2024\/11\/what-is-postgresql.png\" \/>\n\t<meta property=\"og:image:width\" content=\"100\" \/>\n\t<meta property=\"og:image:height\" content=\"128\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/what-is-postgresql\\\/\",\"url\":\"https:\\\/\\\/www.pgtutorial.com\\\/what-is-postgresql\\\/\",\"name\":\"What is PostgreSQL\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/what-is-postgresql\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/what-is-postgresql\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pgtutorial.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/what-is-postgresql.png\",\"datePublished\":\"2024-11-16T08:50:43+00:00\",\"dateModified\":\"2024-11-16T10:35:37+00:00\",\"description\":\"PostgreSQL, often referred to as Postgres, is a free and open-source relational database management system (RDBMS).\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/what-is-postgresql\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pgtutorial.com\\\/what-is-postgresql\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/what-is-postgresql\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.pgtutorial.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/what-is-postgresql.png\",\"contentUrl\":\"https:\\\/\\\/www.pgtutorial.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/what-is-postgresql.png\",\"width\":100,\"height\":128,\"caption\":\"what is postgresql\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/what-is-postgresql\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pgtutorial.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is PostgreSQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pgtutorial.com\\\/#website\",\"url\":\"https:\\\/\\\/www.pgtutorial.com\\\/\",\"name\":\"PostgreSQL Tutorial\",\"description\":\"Learn PostgreSQL from Scratch\",\"alternateName\":\"PostgreSQL\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pgtutorial.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is PostgreSQL","description":"PostgreSQL, often referred to as Postgres, is a free and open-source relational database management system (RDBMS).","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pgtutorial.com\/what-is-postgresql\/","og_locale":"en_US","og_type":"article","og_title":"What is PostgreSQL","og_description":"PostgreSQL, often referred to as Postgres, is a free and open-source relational database management system (RDBMS).","og_url":"https:\/\/www.pgtutorial.com\/what-is-postgresql\/","og_site_name":"PostgreSQL Tutorial","article_modified_time":"2024-11-16T10:35:37+00:00","og_image":[{"width":100,"height":128,"url":"https:\/\/www.pgtutorial.com\/wp-content\/uploads\/2024\/11\/what-is-postgresql.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pgtutorial.com\/what-is-postgresql\/","url":"https:\/\/www.pgtutorial.com\/what-is-postgresql\/","name":"What is PostgreSQL","isPartOf":{"@id":"https:\/\/www.pgtutorial.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pgtutorial.com\/what-is-postgresql\/#primaryimage"},"image":{"@id":"https:\/\/www.pgtutorial.com\/what-is-postgresql\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pgtutorial.com\/wp-content\/uploads\/2024\/11\/what-is-postgresql.png","datePublished":"2024-11-16T08:50:43+00:00","dateModified":"2024-11-16T10:35:37+00:00","description":"PostgreSQL, often referred to as Postgres, is a free and open-source relational database management system (RDBMS).","breadcrumb":{"@id":"https:\/\/www.pgtutorial.com\/what-is-postgresql\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pgtutorial.com\/what-is-postgresql\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pgtutorial.com\/what-is-postgresql\/#primaryimage","url":"https:\/\/www.pgtutorial.com\/wp-content\/uploads\/2024\/11\/what-is-postgresql.png","contentUrl":"https:\/\/www.pgtutorial.com\/wp-content\/uploads\/2024\/11\/what-is-postgresql.png","width":100,"height":128,"caption":"what is postgresql"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pgtutorial.com\/what-is-postgresql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pgtutorial.com\/"},{"@type":"ListItem","position":2,"name":"What is PostgreSQL"}]},{"@type":"WebSite","@id":"https:\/\/www.pgtutorial.com\/#website","url":"https:\/\/www.pgtutorial.com\/","name":"PostgreSQL Tutorial","description":"Learn PostgreSQL from Scratch","alternateName":"PostgreSQL","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pgtutorial.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":12,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages\/56\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages\/56\/revisions\/77"}],"up":[{"embeddable":true,"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/pages\/13"}],"wp:attachment":[{"href":"https:\/\/www.pgtutorial.com\/wp-json\/wp\/v2\/media?parent=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}