How to download postgresql
How to download postgresql
How to Download & Install PostgreSQL for Windows [17 Steps]
Updated August 13, 2022
To use Postgre in your machine, you need to install:
You could individually Download PostgreSQL for Windows and install these components but coupling the settings between the DB server, and a GUI tool could be a challenge. It’s best to use a bundled installer which takes care of configuration complexities.
How to Download & Install PostgreSQL
Following is a step by step process on How to Install PostgreSQL on Windows Machine:
Step 1) Open your browser.
Go to https://www.postgresql.org/download and select Windows
Step 2) Check options.
You are given two options 1) Interactive Installer by EnterpriseDB and 2) Graphical Installer by BigSQL.
BigSQL currently installs pgAdmin version 3 which is deprecated. It’s best to choose EnterpriseDB which installs the latest version 4
Step 3) Select PostgreSQL version.
Download will begin
Step 4) Open exe file.
Once you Download PostgreSQL, open the downloaded exe and Click next on the install welcome screen.
Step 5) Update location.
Step 6) Select components.
Step 7) Check data location.
Step 8) Enter password.
Step 9) Check port option.
Step 10) Check summary.
Step 11) Ready to install.
Click the next button.
Step 12) Check stack builder prompt.
Once install is complete you will see the Stack Builder prompt
Step 13) Launch PostgreSQL.
To launch PostgreSQL go to Start Menu and search pgAdmin 4
Step 14) Check pgAdmin.
You will see pgAdmin homepage.
Step 15) Find PostgreSQL 10.
Click on Servers > PostgreSQL 10 in the left tree
Step 16) Enter password.
Step 17) Check Dashboard.
You will see the Dashboard
Дистрибутив PostgreSQL для Windows
Компанией Постгрес Профессиональный подготовлены дистрибутивы PostgreSQL для Windows.
Это сборки PosgreSQL на основе кода из основной ветки без каких-либо дополнений и изменений.
Если Вам нужна версия PosgreSQL для Windows с поддержкой 1С, то Вы можете ее найти на сайте https://1c.postgres.ru
Дополнительные возможности и российскую техническую поддержку Вы можете получить вместе с Postgres Pro Standard и Enterprise.
Данное ПО поставляются «как есть», без какой-либо гарантии, явной или подразумеваемой.
Установка PostgreSQL для Windows
В процессе установки выбираются компоненты и задаются основные параметры сервера. Далее происходит инициализация нового сервера и создаются ярлыки для его управления.
Возможен «тихий» режим установки без вывода на экран.
Если обнаружено, что PostgreSQL сервер уже установлен, то предлагается остановить сервер и обновить его. При этом все соединения с сервером будут отключены. Для определения существования сервера используются данные о предыдущих установках из реестра, поэтому, если Вы ранее запускали сервер нестандартно, он может остаться не обнаруженным.
Выбор компонентов для установки
Вы можете установить все основные компоненты PostgreSQL или настроить установку, исключив серверную часть или компоненты для разработчика. Клиентская часть устанавливается всегда.
Клиентская часть содержит документацию и утилиты, которые могут потребоваться без установки сервера, например, psql, pg_dump и другие.
Компоненты для разработчика содержат заголовочные файлы, библиотеки и отладочную информацию.
Требуется также установить распространяемый пакет Visual C++, если он еще не установлен. Это небольшой набор системных библиотек от компании Microsoft.
Выбор путей для установки
Задается каталог для установки файлов сервера и каталог для создания базы данных. По умолчанию для установки предлагается каталог C:\Program Files\PostgreSQL\Номер_версии, а для данных C:\Program Files\PostgreSQL\Номер_версии\data.
Выбранный каталог данных должен быть пустым. В противном случае PostgreSQL не сможет создать начальную базу данных.
Допускается также указать каталог, содержащий данные. Тогда новая база данных не создается, а используется существующая. Важно, чтобы версия сервера совпадала с существующей базой данных.
Задание параметров сервера
В процессе установки предлагается ввести некоторые параметры сервера.
Локаль. По умолчанию для инициализации базы данных используется системна локаль Windows, но, при необходимости, можно выбрать нужную из списка.
Если включен параметр «Разрешить подключения с любых IP-адресов», то в файлы сервера с настройками postgresql.conf и pg_hba.conf будут внесены параметры для разрешения внешнего доступа. Также изменяется конфигурация брандмауэра Windows для внешних подключений к серверу.
Параметр «Включить контрольные суммы для страниц» рекомендуем всегда включать, так как это повышает надежность хранения данных без заметного снижения производительности.
При включении параметра «Настроить переменные среды» программа установки создаст переменные среды с параметрами сервера: PGDATA, PGDATABASE, PGUSER, PGPORT, PGLOCALEDIR, а также добавит путь к исполняемым файлам сервера в переменную PATH.
Дополнительные параметры установки
На следующем экране предлагается провести некоторую оптимизацию параметров сервера исходя из установленной оперативной памяти (если ее больше 1Gb). Для этого включите параметр «Провести оптимизацию параметров». Параметры сохраняются в файл postgresql.conf, который находится в папке с данными. Оптимизируются 2 параметра: shared_buffers и work_mem. Потом Вы можете самостоятельно изменять эти и другие параметры в зависимости от условий эксплуатации сервера.
Если включить параметр «Показать дополнительные параметры», то далее появится окно настроек системной службы PostgreSQL:
Для запуска сервера используется специальная встроенная учетная запись Windows: «NT AUTHORITY\NetworkService». Запуск службы можно настроить от другого пользователя, для этого введите имя и пароль уже существующего пользователя. Это может быть пользователь домена. Важно, чтобы пользователь уже существовал на момент установки и имел все необходимые права. В противном случае регистрация и запуск службы сервера не произойдет и потребуется удаление и новая установка PostgreSQL.
Возможно также изменить имя системной службы Windows для сервера. По умолчанию используется имя «postgresql-номер_версии», например, postgresql-13.
После успешной установки PostgreSQL сервер запускается и готов к работе
В процессе установки создается тестовый файл install.log в каталоге установки. В нем сохраняются запускаемые команды и результат их выполнения во время установки.
Удаление сервера
Для удаления сервера выберите ярлык Uninstall, или запустите Uninstall.exe в каталоге установки, или используйте панель управления Windows. При удалении сервер останавливается, все активные соединения с сервером будут закрыты. Папка с данными не удаляется. Перезагрузка компьютера не требуется.
Ваши замечания и предложения по нашим сборкам PostgreSQL и по программе установки присылайте по e-mail: info@postgrespro.ru
Лицензия
PostgreSQL распространяется по специальной лицензии PostgreSQL License, свободной open source лицензии, близкой к лицензиям BSD и MIT.
PostgreSQL Database Management System (formerly known as Postgres, then as Postgres95)
Portions Copyright © 1996-2022, The PostgreSQL Global Development Group
Portions Copyright © 1994, The Regents of the University of California
Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.
IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN «AS IS» BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
Windows installers 
Interactive installer by EDB
Download the installer certified by EDB for all supported PostgreSQL versions.
Note! This installer is hosted by EDB and not on the PostgreSQL community servers. If you have issues with the website it’s hosted on, please contact webmaster@enterprisedb.com.
This installer includes the PostgreSQL server, pgAdmin; a graphical tool for managing and developing your databases, and StackBuilder; a package manager that can be used to download and install additional PostgreSQL tools and drivers. Stackbuilder includes management, integration, migration, replication, geospatial, connectors and other tools.
This installer can run in graphical or silent install modes.
The installer is designed to be a straightforward, fast way to get up and running with PostgreSQL on Windows.
Advanced users can also download a zip archive of the binaries, without the installer. This download is intended for users who wish to include PostgreSQL as part of another application installer.
Platform support
The installers are tested by EDB on the following platforms. They can generally be expected to run on other comparable versions, for example, desktop releases of Windows:
PostgreSQL Version | 64 Bit Windows Platforms | 32 Bit Windows Platforms |
---|---|---|
14 | 2019, 2016 | |
13 | 2019, 2016 | |
12 | 2019, 2016, 2012 R2 | |
11 | 2019, 2016, 2012 R2 | |
10 | 2016, 2012 R2 & R1, 7, 8, 10 | 2008 R1, 7, 8, 10 |
Copyright © 1996-2022 The PostgreSQL Global Development Group
Downloads
PostgreSQL Downloads
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.
Packages and Installers
Select your operating system family:
Select your Linux distribution:
Select your BSD operating system:
Source code
The source code can be found in the main file browser or you can access the source control repository directly at git.postgresql.org. Instructions for building from source can be found in the documentation.
Beta/RC Releases and development snapshots (unstable)
There are source code and binary packages of beta and release candidates, and of the current development code available for testing and evaluation of new features. Note that these builds should be used for testing purposes only, and not for production systems.
3rd party distributions
Machine Learning and Data Visualization with PostgreSQL
2ndQuadrant Unified Data Analytics (2UDA) is a data analytics application suite that unifies databases, machine learning, data mining, and visualization. The application can be installed using a user-friendly, one-click desktop installer. 2UDA builds on the capabilities of Orange, an open source machine learning and data visualization tool, by integrating it with the PostgreSQL database.
Ready to run stacks
‘LAPP’, ‘MAPP’ and ‘WAPP’ (Linux/Mac/Windows + Apache + PHP + PostgreSQL) stacks are available from BitNami.
Additional Software
Software Catalogue
There is much software available that is not bundled with PostgreSQL. The Software Catalogue offers a listing of many commercial and Open Source applications, interfaces and extensions to PostgreSQL that you may find useful.
If you wish to have your product listed in the catalogue, please fill out this form.
File Browser
You can download most of the software we publish from a mirror site using our File Browser.
Copyright © 1996-2022 The PostgreSQL Global Development Group
Linux downloads (Debian) 
PostgreSQL is available in all Debian versions by default. However, the stable versions of Debians «snapshot» a specific version of PostgreSQL that is then supported throughout the lifetime of that Debian version. The PostgreSQL project also maintains an apt repository with all supported of PostgreSQL available.
PostgreSQL Apt Repository
If the version included in your version of Debian is not the one you want, you can use the PostgreSQL Apt Repository. This repository will integrate with your normal systems and patch management, and provide automatic updates for all supported versions of PostgreSQL throughout the support lifetime of PostgreSQL.
The PostgreSQL apt repository supports the currently supported stable versions of Debian:
on the following architectures:
To use the apt repository, follow these steps:
For more information about the apt repository, including answers to frequent questions, please see the apt page on the wiki.
Included in distribution
Debian includes PostgreSQL by default. To install PostgreSQL on Debian, use the apt-get (or other apt-driving) command:
The repository contains many different packages including third party addons. The most common and important packages are (substitute the version number as required):
postgresql-client-12 | client libraries and client binaries |
---|---|
postgresql-12 | core database server |
libpq-dev | libraries and headers for C language frontend development |
postgresql-server-dev-12 | libraries and headers for C language backend development |
Copyright © 1996-2022 The PostgreSQL Global Development Group