Tutorialsteacher

Follow Us

Articles
  • C#
  • C# OOP
  • ASP.NET Core
  • ASP.NET MVC
  • LINQ
  • Inversion of Control (IoC)
  • Web API
  • JavaScript
  • TypeScript
  • jQuery
  • Angular 11
  • Node.js
  • D3.js
  • Sass
  • Python
  • Go lang
  • HTTPS (SSL)
  • Regex
  • SQL
  • SQL Server
  • PostgreSQL
  • MongoDB
  • PostgreSQL - Get Started
  • Install PostgreSQL
  • Connect to PostgreSQL DB
  • Create Database
  • Create Table
  • Copy Table
  • Drop Table
  • Drop Database
  • Truncate Table
  • ALTER Table
  • Rename Table
  • Rename Columns
  • Add Columns
  • Modify Column Type
  • Set Default Value of Column
  • Remove Columns
  • Add Constraints to Table
  • Insert Data
  • Upsert Data
  • Update Data
  • Delete Data
  • SELECT Statement
  • WHERE Clause
  • GROUP BY Clause
  • HAVING Clause
  • ORDER BY Clause
  • DISTINCT Clause
  • Inner Join
  • Left Outer Join
  • Right Outer Join
  • Full Outer Join
  • Self Join
  • Natural Join
  • Cross Join
  • LIMIT OFFSET Clause
  • GROUPING SETS
  • GROUPING() Function
  • GROUP BY CUBE
  • GROUP BY ROLLUP
  • Sub Query
  • ALL Operator
  • ANY Operator
  • UNION Operator
  • INTERSECT Operator
  • EXCEPT Operator
  • IS NULL Operator
  • BETWEEN Operator
  • LIKE Operator
  • CAST Operator
  • CASE Expressions
  • NULLIF()
  • COALESCE()
  • GREATEST(), LEAST()
  • WITH Queries (CTE)
  • Constraints
  • NOT NULL Constraint
  • Unique Constraint
  • Check Constraint
  • Primary Key
  • Foreign Key
  • Sequence
  • Serial Type
  • Identity Columns
  • Generated Columns
  • Data Types
  • Boolean Type
  • Character Type
  • Integer Type
  • Numeric Type
  • Date Type
  • Time Type
  • TimeStamp Type
  • Interval Type
  • Array Type
  • Json Type
Entity Framework Extensions - Boost EF Core 9
  Bulk Insert
  Bulk Delete
  Bulk Update
  Bulk Merge

Install PostgreSQL Database

Here you will learn how to install PostgreSQL.

PostgreSQL is available for download as ready-to-use packages or installers for various platforms, as well as a source code archive if you want to build it yourself.

Visit enterprisedb.com/downloads/postgres-postgresql-downloads and click on the download icon for the OS on your PC. Here, we will install PostgreSQL on Windows machine, so click on the download icon for the latest version 14.1, as shown below.

Download PostgreSQL Installer

EnterpriseDB is a company that supports and also provides services based on the open-source database PostgreSQL. EDB develops and integrates performance, security, and manageability enhancements into PostgreSQL.

Alternatively, you can also visit the official website https://www.postgresql.org/download and select your OS to download the PostgreSQL installer. This will take you to the above page eventually.

Once the installer downloaded successfully, you can see PostgreSQL-14.1-1-windows-x64.exe. Now, double click on it to start the installation wizard, as below. Make sure you have Administrator privileges on your machine.

PostgreSQL Installation Wizard

Now, click on the next button to set the installation directory, as shown below.

Set Installation Directory

Above, select the Installation Directory or you can go ahead with the default path shown above and click on Next.

Select PostgreSQL Components

It shows all components for installation. Stack Builder is optional, you can uncheck if you wish or just keep the default selection and click on Next.

Set Data Directory

Above, select the directory where you want to store data or go ahead with default selection and click on the Next button.

Provide Credentials

In the above step, provide the password for superuser that is postgres. Please specify the strong password and remember it as you need to provide the password while you connect to PostgreSQL. Click on the Next button to set up a port.

PostgreSQL Port

It shows the default port number 5432 on which the database server will listen to incoming requests. Go with the default selection and click on Next

Choose the Locale to be used by the database or go ahead with default selection and click on Next.

Setup Wizard will show a pre-installation summary, review it, and click on the Next button if everything is ok.

Click on the Next button on the Ready to Install screen, which will start the installation.

The installation may take a few minutes to finish.

Once installation is finished, you will see this Completion screen, as shown below.

You can uncheck “Launch Stack Builder or exit?” and click on Finish. The Stack Builder can be used if you want to install other components to use PostgreSQL with your application.

After successful installation, you will see PostgreSQL in the All Application menu, as shown below.

PostgreSQL Database in Application Menu

Now, you are ready to use the PostgreSQL database.

TUTORIALSTEACHER.COM

TutorialsTeacher.com is your authoritative source for comprehensive technologies tutorials, tailored to guide you through mastering various web and other technologies through a step-by-step approach.

Our content helps you to learn technologies easily and quickly for learners of all levels. By accessing this platform, you acknowledge that you have reviewed and consented to abide by our Terms of Use and Privacy Policy, designed to safeguard your experience and privacy rights.

[email protected]

ABOUT USTERMS OF USEPRIVACY POLICY
copywrite-symbol

2024 TutorialsTeacher.com. (v 1.2) All Rights Reserved.