[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-686595-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-686595-en":130,"doc-similar-686595":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","postgresql-course-start-using-postgresql","PostgreSQL Course - Start using PostgreSQL","","Comprehensive beginner-to-production guide to PostgreSQL, covering the client-server model, core concepts, and hands-on setup. Explains what PostgreSQL is, separating server, SQL, and clients like psql and application tools, then introduces multi-database structure, roles, and version baselines with practical SQL checks. Provides step-by-step installation on macOS using Homebrew, plus course progression through psql navigation, schema and data modeling fundamentals, and application integration topics.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/postgresql-course-start-using-postgresql/686595/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/postgresql-course-start-using-postgresql/686595.png","ImageObject",300,407,{"name":42,"@type":43},"xXChrisXx","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-25","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",6,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is the relationship between PostgreSQL, SQL, and psql in this course?","Question",{"text":63,"@type":64},"PostgreSQL is the server that runs in the background and manages data files. SQL is the language you send to the server, and psql is a client program that submits SQL commands to that server.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does a client connect to the correct database and role?",{"text":68,"@type":64},"Each connection enters one database as one role, and subsequent statements run in that context. The course demonstrates this using queries like current_database() and current_user.",{"name":70,"@type":61,"acceptedAnswer":71},"Why should you verify the server version before trusting tutorial instructions?",{"text":72,"@type":64},"psql--version reports the client version, which can differ from the server. The course recommends running SELECT version(); to confirm what PostgreSQL the server is actually running.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},686595,1794057390,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":55,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":144,"preview_page_count":33,"preview_urls":145},8796112263567,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","PostgreSQL Course  \nFlavio Copes  \nUpdated October 14, 2026  \nContents  \nStart using PostgreSQL 2  \nWhat PostgreSQL is ....................................... 2  \nInstall PostgreSQL 18 on macOS ................................ 3  \nConnect with psql ........................................ 4  \nNavigate psql ........................................... 5  \nList PostgreSQL databases ................................... 6  \nVerify your database and role after reconnecting ....................... 7  \nCheck your understanding: PostgreSQL basics ........................ 8  \nRoles, databases, and schemas 8  \nClusters, databases, and schemas ................................ 8  \nSeparate owner and runtime roles ................................ 9  \nCreate a PostgreSQL database ................................. 10  \nGrant PostgreSQL permissions ................................. 11  \nSchemas and search_path .................................... 12  \nCheck your understanding: roles, databases, and schemas .................. 14  \nTables and data 14  \nChoose PostgreSQL data types ................................. 14  \nUse identity primary keys .................................... 15  \nUse constraints and foreign keys ................................ 16  \nUnderstand sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17  \nUse PostgreSQL transactions .................................. 17  \nCheck your understanding: tables and data .......................... 18  \nQueries and performance 18  \nReturn changed rows ....................................... 18  \nUpsert with ON CONFLICT .................................. 19  \nUse JSONB deliberately ..................................... 20  \nRead EXPLAIN ANALYZE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21  \nAdd the index the query needs ................................. 22  \nCheck your understanding: queries and performance ..................... 23  \nApplications and operations 24  \nConnect to PostgreSQL from Node.js .............................. 24  \nBudget connection pools ..................................... 25  \nParameterize PostgreSQL queries ................................ 26  \nRun an application transaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27  \nMigrate PostgreSQL safely ................................... 28  \nBack up and restore PostgreSQL ................................ 29  \nFix a PostgreSQL connection failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30  \nFix “relation does not exist”. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31  \nChoose where PostgreSQL runs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32  \nUnderstand MVCC and routine maintenance . . . . . . . . . . . . . . . . . . . . . . . . . 33  \nBuild a PostgreSQL notes application ............................. 34  \nCheck your understanding: applications and operations ................... 36  \nLearn PostgreSQL from installation to production basics: psql, roles, databases, schemas, types, indexes, application pools, migrations, backups, and debugging.  \nWhat you'll learn: Build and operate a small PostgreSQL-backed application with clear roles, reliable migrations, bounded connections, useful indexes, and a restorable backup.  \nStart using PostgreSQL  \nInstall PostgreSQL, connect with psql, and navigate a server confidently.  \nWhat PostgreSQL is  \nUnderstand the PostgreSQL client-server model and the PostgreSQL 18 baseline used throughout this course.  \nPostgreSQL is a relational database server. It stores related data in tables, and you work with that data through SQL.  \nThe word server matters here. PostgreSQL is not a file your application opens, the way SQLite is. It is a long-running process. The server owns the data files, manages concurrent work, and listens for connections from applications and tools.  \nThat design is what makes PostgreSQL safe under load. Twenty applica","cbCaiohL1gtQao5O","https://ap.wps.com/l/cbCaiohL1gtQao5O","pdf",145738,37,"English","# Start using PostgreSQL\n## What PostgreSQL is\n## Install PostgreSQL 18 on macOS\n## Connect with psql\n## Navigate psql\n## List PostgreSQL databases\n## Verify your database and role after reconnecting\n## Check your understanding: PostgreSQL basics\n## Roles, databases, and schemas\n## Tables and data\n## Choose PostgreSQL data types\n## Use identity primary keys\n## Use constraints and foreign keys\n## Understand sequences\n## Use PostgreSQL transactions\n## Check your understanding: tables and data\n## Queries and performance\n## Applications and operations\n## Connect to PostgreSQL from Node.js\n## Budget connection pools\n## Parameterize PostgreSQL queries\n## Run an application transaction\n## Migrate PostgreSQL safely\n## Back up and restore PostgreSQL\n## Fix a PostgreSQL connection failure\n## Fix “relation does not exist”\n## Choose where PostgreSQL runs\n## Understand MVCC and routine maintenance\n## Build a PostgreSQL notes application","[{\"question\":\"What is the relationship between PostgreSQL, SQL, and psql in this course?\",\"answer\":\"PostgreSQL is the server that runs in the background and manages data files. SQL is the language you send to the server, and psql is a client program that submits SQL commands to that server.\"},{\"question\":\"How does a client connect to the correct database and role?\",\"answer\":\"Each connection enters one database as one role, and subsequent statements run in that context. The course demonstrates this using queries like current_database() and current_user.\"},{\"question\":\"Why should you verify the server version before trusting tutorial instructions?\",\"answer\":\"psql--version reports the client version, which can differ from the server. The course recommends running SELECT version(); to confirm what PostgreSQL the server is actually running.\"}]","PostgreSQL Course - Start using PostgreSQL | PDF",93,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/cd36e51f2d415f1162180e61646c89bb.webp",983,1390,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/23bf847707eeed8e27b6459731b7a97b.webp",982,1388,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/792fb24d2d0e16a158ae1c68d6eb49eb.webp",981,1387,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/d8fe88f2f5d1ceca92f4f9a4ae67aca2.webp",980,1385,{"list":163,"token":11},[164,170,176,182,188,194,201,208,213,219],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":55,"category_name":29,"create_tm":169},701370,"Vantage-DB-Management-Guide - Database Management","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012296330/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=mWUi3Mg5%2Fe3L4N03yOk1x7PGGVE%3D","vantage-db-management-guide-database-management",1794528025,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":55,"category_name":29,"create_tm":175},588656,"SOFTWARE APPLICATION FOR SUPPORTING THE EDUCATION OF DATABASE SYSTEMS - Anikó Vágner","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229954666250/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=uMOnlO9H4vux4dFVZu4IgG5bZWU%3D","software-application-for-supporting-the-education-of-database-systems-aniko-vagner",1792065684,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":97,"category_name":29,"create_tm":181},655956,"PostgreSQL Sample Database - DVD Rental ER Diagram","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975294905/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=oTZLn9tAP%2BVOdylGuY%2FItIjsfv4%3D","postgresql-sample-database-dvd-rental-er-diagram",1792965083,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":115,"category_name":29,"create_tm":187},701290,"SQL Server 2022 - Licensing guide - November 2022","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012072601/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=TEkJAwZe%2BbPhNUuT%2FyqqlFQe%2FSQ%3D","sql-server-2022-licensing-guide-november-2022",1794525902,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":30,"category_name":29,"create_tm":193},686591,"Tutorial 3 - PostgreSQL","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001041934/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=z1D2TLWWJIKCsLK6nkPAoQqqwLo%3D","tutorial-3-postgresql",1794057380,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":29,"create_tm":200},609293,"Pro SQL Server 2022 Wait Statistics - Third Edition - Practical Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229959651311/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=CLN9TdP%2F3HS%2F4E7TlrcJqNxxqFs%3D","pro-sql-server-2022-wait-statistics-third-edition-practical-guide",11,1792358428,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":206,"category_name":29,"create_tm":207},609279,"PostgreSQL Query Optimization - The Ultimate Guide to Building Efficient Queries - Second Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229959651119/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=UZ9rMAittR%2Ff%2F4j%2ByGfcIIiltqg%3D","postgresql-query-optimization-the-ultimate-guide-to-building-efficient-queries-second-edition",25,1792358335,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":115,"category_name":29,"create_tm":187},701291,"SQL Server 2019 Licensing guide - Overview - February 2022","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012072613/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=X9H9hKdSGfEFpbPB8hMuIMf9w%2F0%3D","sql-server-2019-licensing-guide-overview-february-2022",{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":55,"category_name":29,"create_tm":218},685264,"IBM Maximo Asset Management Solutions Version 7.6.x - Best Practices for System Performance - Document version 1.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000107349/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=yTuUUd6x%2BYE31UEh54stk3qP3O4%3D","ibm-maximo-asset-management-solutions-version-76x-best-practices-for-system-performance-document-version-10",1794011001,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":33,"category_name":29,"create_tm":224},686598,"PostgreSQL 16.15 Documentation - Legal Notice - Table of Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000540954/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=EvstzaLwpyDxHMSCFUg99ck5Cr0%3D","postgresql-1615-documentation-legal-notice-table-of-contents",1794057395]