Не устанавливается postgresql на windows 10

If you are having trouble installing PostgreSQL on Windows 10, here are a few steps that may help:

1. Check to make sure that your computer meets the minimum system requirements for PostgreSQL.
2. Download the PostgreSQL installer from the PostgreSQL website.
3. Run the installer and follow the prompts.
4. If you run into any errors during the installation process, try looking for a solution in the PostgreSQL documentation or online.
5. Once PostgreSQL is installed, you can start using it by creating a database.

Why PostgreSQL is not installing?

Installing PostgreSQL on Windows 10 is a fairly simple process. You can either install it using the Windows installer, or you can use the more traditional method of installing it from source.

If you want to install PostgreSQL from source, you will first need to download the source code. You can do this from the PostgreSQL website (https://www.postgresql.org/download/). Once you have downloaded the source code, you will need to unzip it and navigate to the unzipped folder. From here, you will need to run the following commands:

./configure
make
make install

This will install PostgreSQL on your system. Once it is installed, you will need to initialize the database by running the following command:

initdb -D /usr/local/pgsql/data

This will create the necessary files and folders for your database. Once the database is initialized, you can start it by running the following command:

pg_ctl -D /usr/local/pgsql/data -l logfile start

You can then connect to the database using a tool like psql or pgAdmin.

Does PostgreSQL work on Windows 10?

Yes, PostgreSQL works on Windows 10. You can install it using the Microsoft Windows Installer for PostgreSQL, available from the PostgreSQL website. Once installed, you can use the psql command-line tool to connect to your PostgreSQL database.

Is Stack Builder necessary for PostgreSQL?

No, Stack Builder is not necessary for PostgreSQL.

Can I use PostgreSQL without install?

No, you cannot use PostgreSQL without installing it.

How do I enable PostgreSQL on Windows?

1. Download and install PostgreSQL from https://www.postgresql.org/download/windows/.
2. Follow the instructions provided by the installer.
3. Once installation is complete, open the PostgreSQL command line client and connect to the database server.
4. Enable the PostgreSQL server to start automatically when Windows starts by opening the Services control panel and setting the «PostgreSQL Server» service to «Automatic«.

Is psql the same as PostgreSQL?

No, psql is a command-line interface for PostgreSQL.

Which tool is best for PostgreSQL?

There are many tools available for PostgreSQL, and the best one for you will depend on your specific needs and preferences. Some of the most popular tools include pgAdmin, phpPgAdmin, and PgBouncer. If you are looking for a tool with a graphical user interface (GUI), then pgAdmin or phpPgAdmin may be a good option for you. If you are looking for a tool to help manage database performance, then PgBouncer may be a good option for you.

How to setup PostgreSQL in Windows?

1. Go to the PostgreSQL website and download the installer for your version of Windows.
2. Run the installer and follow the prompts.
3. Once the installation is complete, open the PostgreSQL command line interface.
4. Type in the following command to create a new database:

createdb mydatabase

5. You can now connect to your database using a tool like pgAdmin or psql.

How to manually install PostgreSQL?

1. Download PostgreSQL from the official website (https://www.postgresql.org/).
2. Run the installer and follow the prompts.
3. Choose the location for the installation and select the components you want to install.
4. Click «Finish» to complete the installation.

If you have any problems during the installation, please consult the PostgreSQL documentation (https://www.postgresql.org/docs/).

How much RAM is needed for PostgreSQL?

There is no definitive answer to this question as it depends on a number of factors, such as the size of your database, the number of concurrent users, the nature of your workload, etc. However, a good rule of thumb is to start with at least 4GB of RAM and then scale up from there as needed.

How to install Postgres locally?

Assuming you are using a Mac, you can install Postgres locally using Homebrew.

1. Install Homebrew if you don’t already have it installed (https://brew.sh/).
2. Use Homebrew to install Postgres: `brew install postgresql`
3. Initialize the database: `initdb /usr/local/var/postgres`
4. Start the database server: `pg_ctl -D /usr/local/var/postgres -l logfile start`

For more detailed instructions, see the Postgres documentation: https://www.postgresql.org/docs/9.3/static/tutorial-install.html

Is Postgres available for Windows?

Yes, Postgres is available for Windows. You can download it from the Postgres website (https://www.postgresql.org/download/). Once you have downloaded and installed Postgres, you can use the psql command-line tool to connect to your Postgres database.

I am getting the following error when trying to install PostgreSQL on my Windows 10 Machine (x64). Can anyone help me troubleshoot? Many thanks! Error screenshot below:

View post on imgur.com

asked Aug 27, 2019 at 14:11

sarahofcamb's user avatar

This happened to me as well. Turned out I couldn’t use a Domain user (even though it is an admin on the local machine). I had to log in as a local admin user, and then the installation worked. This is very weird.

answered Sep 15, 2019 at 11:22

zmbq's user avatar

zmbqzmbq

8162 gold badges7 silver badges14 bronze badges

I tried installing Postgresql-9.5.19.1-windows-x64 version (downloaded from official page) on Windows 10 x64 and it gave me the same error. I tried executing it with administrator privileges, giving permissions to the temp folder, moving temp folder to another location but nothing worked…

The solution for me was using a different version of 9.5: PostgreSQL-9.5.2-1-windows-x64.

answered Sep 17, 2019 at 14:34

Consultant's user avatar

This error happened to me to on PostgreSQL version 11.2

I elaborated in a Stackoverflow post as answer to ‘Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?’ a solution. I mentioned this question thread with answers as being the solution to this error.

But in short it is what you all are saying: reinstall.

But it can be the same or a different version in my experience.

My explanation:

The general thought/assumptions:

It looks like it is pgAdmin (probably version 4) or your admin rights or one of the files mentioned above (postgresql.conf and/or pg_hba.conf).

I had the same error and even a password error (for the correct password) after being a step further by some todo’s and fixes that helped other people in previous versions;

But none of them worked for postgresql version 12.3 and/or postgresql version 11.8

Solution versions:

The only thing that helped after two hours was:
As explained in this post: ‘PostgreSQL Install fail on Windows 10 (icalcs error/acces denied)’ on the superuser forum of StackExchange:

  • Uninstall en reinstall postgresql. The official version provided by EDB through this link: postgresql.org/download; Or try a different version if you are sure this one doesn’t work for you. Therefor head to the ‘File Browser’of Postgresql: here
  • After reinstall, start pgAdmin from the Start Menu (scroll for the folder and the correct related pgAdmin; an older version could still hang around in the shortcuts and won’t start).

Note: You can keep your data map so nothing is lost!

In my case e.g.: I removed the /data folder from the (Windows 10) [Drive]/Program Files/PostgreSQL/11 and as soon as I uninstalled version 11.2 and reinstalled (earlier removed 12) version 12: when I started pgAdmin4 my former servers ([nameA] and [PostgreSQL 11] and databases ánd the new server [PostgreSQL 12] were there! And the connection was reestablished

Tried:

Earlier tried solutions that did not work in my case:

  • Question 37307346 «Is the server running on host localhost 1 and accepting tcp ip connections on port 5432?
  • Question 40532399 Unable to connect to server for postgres
  • Question 16904997 Connection refused pgerror postgresql and rails
  • Question 60532791 Timeout expired pgadmin unable to connect to server note: This was after semi solution of netstat running postgres service (port was not used before that solution; here listed as 4th item, item above).

answered Jun 17, 2020 at 22:47

sophievda's user avatar

If you have issues with permissions either after installations or after reinstalling postgres you might find help here.

Make sure you install the correct version for the data folder you have, you can check the version in that data folder under file named PG_VERSION.

  1. Install postgres with random data directory. If it doesn’t work with old data directory and you get errors about permissions or stuff like icacls then pick a fresh folder and proceed with this post.
  2. Go to registry editor and then find something like
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\postgresql-x64-11 <- version you installed
    change imagepath to reflect the data directory
    "C:\Program Files\PostgreSQL\11\bin\pg_ctl.exe" runservice -N "postgresql-x64-11" -D "{DATA_DIRECTORY like d:/db}" -w
  3. At this point the service might not even start, but check just in case it is magically working at this stage. It won’t log anything or throw any errors so don’t worry, if you do everything right it will work.
  4. Right click the data folder then go to Properites -> Security tab -> Advanced button
  5. Toggle the checkbox on the bottom «Replace all child object perm[..]»
  6. Press Add, and select principal on top, then type in the big box NETWORK SERVICE
    To make sure it works try pressing check names, it should underscore it. Then press OK, set all permissions to it. Then OK, OK, OK. You should leave the file properties approving everything.

If steps 4-6 throw out permissions errors read step 7 /

  1. Try running postgres. If for some reason you cant run postgres at this point. Then run command-line as an administrator, and type in icacls "{DATA_FOLDER}" /reset /T this will clear all the permissions that are there no matter what they are. Postgres install ought to be doing that but it’s bugged in some versions. As it was in mine.
  2. Now you can try running postgres service.
  3. At this point PG Admin didn’t really work but I managed to login using the psql.exe and I’ve dumped all the data. pg_dump -U {USERNAME} {DATABASE} > {FILENAME.EXT} Then I’ve uninstalled postgres, restarted PC, then installed the newest version and I’ve recovered the dump.

answered Dec 22, 2020 at 17:10

Ghandhikus's user avatar

Had the same problem, but I’m not comfortable downloading installers from unknown sources.

After quite some struggling (including run as different user, install from a session opned with a domain administrator account), the only thing that worked for me was to enable the local administrator command (net user administrator /active:yes), providing a password for it (net user administrator *) and then running the installer.

Hope this helps.

answered Sep 10, 2019 at 13:47

stefanu's user avatar

For me, problem was that some files inside Data folder of existing Postgres installation had cleared permissions & ownership information. I was able o fix the problem by going one level up above Data directory and re-setting the Owner of the child directories & files via standard Windows dialog. After that, re-running installer allowed icacls to set permissions & finish the installatio nsuccesfully.

answered Mar 19, 2020 at 5:50

Anatoly Alekseev's user avatar

Apparently this happens if you uninstall PostgreSQL and do not delete the «data» directory where your databases are stored. When you attempt to (re)install PostgreSQL, it fails to change permissions on that directory, because it already exists. I was able to work around this apparent bug in the installer by deleting all of C:\Program Files\PostgreSQL manually. But that might not be an option if you have data in there that you haven’t backed up.

answered Mar 27, 2020 at 18:02

mayfiecs's user avatar

We had the same Problem today while upgrading from 12.1 to 12.3.
Installer (EnterpriseDB) stopped with the error while icacls — call because of missing rights…
We even ran it as local administrator.

After stopping the setup the pg — service was removed and rights in pg-data / base — folder were missing.
We run takeown /F d:\PgData12\* /R /A and startet the setup again. Then it worked without other problems.

answered Jun 11, 2020 at 6:05

thomas's user avatar

My solution was log in with the user caller admnistrator, can’t be other user with permissions, must be the user administrator

answered Jan 18, 2021 at 15:15

Clash's user avatar

I suspect a problem with user rights.
I was able to activate the Administrator account and perform the installation.

  1. cmd (Run as Administrator)

  2. net user administrator active: yes

  3. logout old Account and login Administrator

  4. install PostgreSQL

answered Mar 14, 2021 at 9:23

Vahap Karataş's user avatar

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

Postgresql — это мощная и гибкая реляционная база данных, которая широко используется во многих проектах. Установка Postgresql на операционную систему Windows 10 может вызвать некоторые проблемы и сложности, которые необходимо учесть для успешного развертывания базы данных на вашем компьютере.

Одной из основных проблем, с которыми пользователи сталкиваются при установке Postgresql, является отсутствие необходимых компонентов и зависимостей. Для корректной работы Postgresql на Windows 10 требуется установка дополнительного программного обеспечения, такого как Microsoft Visual C++ Redistributable и OpenSSL. Важно убедиться, что все необходимые компоненты установлены перед началом процесса установки Postgresql.

Еще одной распространенной проблемой при установке Postgresql на Windows 10 является конфликт с другими приложениями и программами. Если на вашем компьютере уже установлены другие базы данных или программы, которые используют тот же порт или ресурсы, то установка Postgresql может столкнуться с ошибками и проблемами. Рекомендуется перед установкой Postgresql проверить и, при необходимости, отключить или удалить конфликтующие программы или изменить порт, который будет использоваться Postgresql.

Важно иметь в виду, что успешная установка Postgresql на Windows 10 зависит от правильного следования инструкциям, комплектации программного обеспечения и решения возникающих проблем. В случае возникновения трудностей, рекомендуется обратиться к документации по установке, форумам сообщества разработчиков или к специалистам по базам данных, чтобы получить адекватные рекомендации и помощь.

Установка Postgresql на Windows 10 может быть сложной задачей, но с правильными решениями и рекомендациями вы сможете успешно установить и использовать эту базу данных на своем компьютере. Необходимо быть внимательным к инструкциям, правильно установить все зависимости и избежать конфликтов с другими программами. При возникновении проблем рекомендуется обратиться к документации и сообществу разработчиков для получения качественной поддержки и решения проблемы.

Содержание

  1. Почему установка Postgresql на Windows 10 может вызывать проблемы?
  2. Недостаточные права доступа к системным файлам
  3. Конфликт с уже установленными программными продуктами
  4. Необходимость обновления системных библиотек
  5. Ошибка при установке: «Не удалось найти драйвер базы данных»
  6. Как решить проблемы установки Postgresql на Windows 10?
  7. Рекомендации по установке и настройке Postgresql на Windows 10

Почему установка Postgresql на Windows 10 может вызывать проблемы?

Установка Postgresql на операционную систему Windows 10 может столкнуться с несколькими проблемами, которые могут вызвать затруднения для пользователей. Ниже приведены основные причины возникновения проблем при установке Postgresql на Windows 10:

  1. Несовместимость версий операционной системы и установщика: Некоторые версии Postgresql могут быть несовместимы с определенными версиями Windows 10. В результате этого могут возникать ошибки и проблемы при установке.
  2. Конфликты с установленным программным обеспечением: Установка Postgresql может вызвать конфликты с другими программами, установленными на компьютере. Это может привести к ошибкам, которые мешают успешной установке.
  3. Отсутствие административных прав: Для установки Postgresql требуются административные права на компьютере. Если у пользователя нет необходимых прав, то он может столкнуться с ошибками при установке.
  4. Проблемы с интернет-соединением: Если во время установки нет стабильного интернет-соединения, то это может вызвать ошибки и привести к неудачной установке Postgresql.
  5. Неправильное выбор директории установки: Некоторые пользователи могут столкнуться с проблемами, если выбирают неправильную директорию для установки Postgresql. Это может привести к ошибкам или некорректной работе базы данных.

Для успешной и безопасной установки Postgresql на Windows 10 важно учесть вышеуказанные причины проблем и следовать рекомендациям и инструкциям, предоставленным разработчиками Postgresql и в документации.

Недостаточные права доступа к системным файлам

При установке PostgreSQL на Windows 10 встречается проблема недостаточных прав доступа к системным файлам. Это может возникнуть, когда вы пытаетесь установить PostgreSQL от имени пользователя, не обладающего административными привилегиями.

Чтобы решить эту проблему, вам потребуется запустить установку PostgreSQL с правами администратора. Для этого выполните следующие действия:

  1. Нажмите правой кнопкой мыши на файле установщика PostgreSQL и выберите пункт «Запустить от имени администратора».
  2. Если система запрашивает разрешение на выполнение данной операции, подтвердите его.

После этого установщик будет запущен с правами администратора, что позволит ему получить необходимые права доступа к системным файлам и успешно завершить установку PostgreSQL.

Если вы все еще сталкиваетесь с проблемой недостаточных прав доступа, рекомендуется проверить наличие административных привилегий для вашей учетной записи. Если у вас нет административных прав, обратитесь к системному администратору для получения помощи.

Симптомы проблемы Решение
Ошибка «Недостаточно прав доступа» Запустите установку PostgreSQL от имени администратора
Отсутствие административных привилегий Проверьте наличие административных привилегий и обратитесь к системному администратору при их отсутствии

Конфликт с уже установленными программными продуктами

При установке Postgresql на Windows 10 может возникнуть проблема с конфликтом с уже установленными программными продуктами. Возможные конфликты могут быть связаны с наличием других СУБД (например, MySQL или Oracle), а также с другими программами, которые используют те же порты или ресурсы операционной системы.

Один из возможных конфликтов — это порт 5432, который используется по умолчанию Postgresql. Если на вашей машине уже запущена другая СУБД, которая использует этот порт, то установка Postgresql может не пройти успешно. Решить эту проблему можно изменением порта для Postgresql во время установки.

Также возможны проблемы с файловыми разрешениями и доступом к ресурсам операционной системы. Если у вас уже установлена другая программа, которая использует те же файлы или ресурсы, то может возникнуть конфликт. Решить эту проблему можно путем закрытия или удаления программы, которая использует эти ресурсы, перед установкой Postgresql.

В некоторых случаях может потребоваться внесение изменений в файлы конфигурации операционной системы для разрешения конфликтов. Например, в файле hosts можно добавить запись с IP-адресом и именем хоста для доступа к базе данных. Также можно попробовать запустить установку Postgresql с правами администратора для установки необходимых разрешений.

Если у вас возникли конфликты с уже установленными программными продуктами при установке Postgresql на Windows 10, рекомендуется просмотреть документацию по установке для получения дополнительных сведений о возможных конфликтах и их решениях. Также стоит убедиться, что у вас установлена последняя версия Postgresql, которая может содержать исправления и улучшения для совместимости с другими программными продуктами.

Необходимость обновления системных библиотек

При установке Postgresql на Windows 10 могут возникать проблемы, связанные с несовместимостью системных библиотек. Для успешной установки и работы с Postgresql рекомендуется обновить системные библиотеки.

Обновление системных библиотек позволяет исправить существующие ошибки и внести необходимые изменения для поддержки работы Postgresql. Отсутствие или устаревшие системные библиотеки могут привести к непредвиденным сбоям, ошибкам и снижению производительности базы данных.

Для обновления системных библиотек на Windows 10 рекомендуется использовать системный механизм обновлений, предоставляемый Microsoft. В центре обновления Windows (Windows Update) можно найти и загрузить последние версии системных библиотек, исправляющие известные ошибки и улучшающие совместимость с различными приложениями, включая Postgresql.

После обновления системных библиотек необходимо перезагрузить компьютер, чтобы изменения вступили в силу. После перезагрузки можно приступить к установке Postgresql и убедиться, что проблем, связанных с системными библиотеками, больше не возникает.

Ошибка при установке: «Не удалось найти драйвер базы данных»

При установке Postgresql на Windows 10 вы можете столкнуться с ошибкой «Не удалось найти драйвер базы данных». Эта ошибка может быть вызвана несколькими причинами и может быть решена следующими способами:

  1. Убедитесь, что вы загрузили правильную версию драйвера базы данных для операционной системы Windows 10. Проверьте, что вы выбрали правильную версию драйвера, совместимую с вашей операционной системой и архитектурой процессора (32-бит или 64-бит).
  2. Убедитесь, что вы правильно установили драйвер базы данных. При установке следуйте инструкциям и не делайте никаких изменений в процессе установки.
  3. Если у вас уже установлен драйвер базы данных, попробуйте удалить его и переустановить заново. Иногда при установке Postgresql могут возникать конфликты с уже установленными драйверами базы данных.
  4. Перезапустите компьютер после установки или переустановки драйвера базы данных. Некоторые изменения может потребоваться применить только после перезагрузки системы.
  5. Возможно, ваш антивирус или защитное программное обеспечение блокирует установку драйвера базы данных. Попробуйте отключить антивирусное программное обеспечение временно, чтобы проверить, решит ли это проблему.
  6. Если ничего из вышеперечисленного не помогает, попробуйте скачать и установить более старую версию драйвера базы данных. Иногда новые версии драйверов могут содержать ошибки, которые могут вызывать проблемы при установке.

Если после всех этих действий проблема не решится, рекомендуется обратиться за помощью к специалистам по Postgresql или к сообществам пользователей, где вы сможете найти более подробные инструкции и рекомендации.

Как решить проблемы установки Postgresql на Windows 10?

Установка PostgreSQL на Windows 10 может иногда столкнуться с различными проблемами. В этом разделе мы рассмотрим несколько распространенных проблем и их решений.

1. Ошибка доступа к файлам или каталогам

Если вы столкнулись с ошибкой доступа к файлам или каталогам во время установки PostgreSQL, вам может потребоваться изменить права доступа. Для этого выполните следующие шаги:

  1. Щелкните правой кнопкой мыши на файле или каталоге, к которому у вас нет доступа.
  2. Выберите «Свойства» и перейдите на вкладку «Безопасность».
  3. Нажмите кнопку «Изменить» и установите необходимые разрешения для вашей учетной записи.

2. Ошибка при запуске службы PostgreSQL

Иногда после установки PostgreSQL на Windows 10 может возникнуть ошибка при запуске службы. Чтобы ее исправить, выполните следующие действия:

  1. Откройте командную строку от имени администратора.
  2. Введите команду «pg_ctl register -N postgres -U <ваша учетная запись> -P <пароль>«, заменив «<ваша учетная запись>» на имя вашей учетной записи и «<пароль>» на ваш пароль.
  3. После успешной регистрации службы введите команду «pg_ctl start -N postgres» для запуска службы PostgreSQL.

3. Ошибка установки драйверов ODBC

Если при установке PostgreSQL возникает ошибка установки драйверов ODBC, выполните следующие действия:

  1. Перейдите на официальный сайт PostgreSQL и скачайте последнюю версию драйверов ODBC.
  2. Установите драйверы ODBC вручную, следуя инструкциям установщика.
  3. После установки драйверов ODBC повторите процесс установки PostgreSQL.

Надеемся, что эти рекомендации помогут вам решить проблемы, с которыми вы столкнулись при установке PostgreSQL на Windows 10. Если у вас остались вопросы, обратитесь к документации PostgreSQL или поискайте помощи на форумах и ресурсах сообщества пользователей.

Рекомендации по установке и настройке Postgresql на Windows 10

Шаг 1: Загрузка установочного файла и установка

Для начала установки Postgresql на Windows 10, необходимо скачать установочный файл с официального сайта разработчика. После загрузки, запустите установочный файл и следуйте инструкциям мастера установки.

Примечание: Убедитесь, что у вас есть права администратора на компьютере для установки и настройки Postgresql.

Шаг 2: Выбор компонентов для установки

Во время установки Postgresql на Windows 10, вам будет предложено выбрать компоненты, которые необходимо установить. Рекомендуется выбрать основные компоненты, включая сервер баз данных и инструменты разработчика.

Дополнительно, вы можете выбрать компоненты, такие как документация или дополнительные плагины, если они вам нужны. Однако, имейте в виду, что каждый дополнительный компонент может занимать дополнительное пространство на диске.

Шаг 3: Установка директории установки

При установке Postgresql на Windows 10, вам будет предложено выбрать директорию, в которую будет установлено ПО. Рекомендуется выбрать директорию по умолчанию, чтобы избежать проблем с настройкой путей и ссылок на файлы.

Шаг 4: Настройка пароля суперпользователя

После завершения установки Postgresql на Windows 10, вам будет предложено настроить пароль для суперпользователя (пользователя postgresql). Рекомендуется использовать сложный пароль, который будет защищать вашу базу данных.

Примечание: Внимательно запомните пароль суперпользователя, так как он потребуется вам в дальнейшей работе с Postgresql.

Шаг 5: Настройка настроек сервера и порта

После настройки пароля суперпользователя, вам будет предложено настроить настройки сервера и порта. Рекомендуется оставить настройки по умолчанию, если вы не планируете использовать специальные порты или настройки для доступа к серверу баз данных.

Шаг 6: Завершение установки и запуск служб

После настройки настроек сервера, установка будет завершена. Установочный файл автоматически запустит необходимые службы Postgresql для работы с базой данных.

Примечание: После завершения установки, рекомендуется перезагрузить компьютер, чтобы убедиться, что службы Postgresql работают корректно.

Шаг 7: Проверка работоспособности

После перезагрузки компьютера, можно проверить работоспособность Postgresql на Windows 10. Для этого запустите SQL-клиент или утилиту командной строки, доступную в инструментах Postgresql.

Попробуйте подключиться к базе данных с помощью введения логина и пароля суперпользователя. Если подключение успешно, то установка Postgresql на Windows 10 завершена.

Заключение

Установка и настройка Postgresql на Windows 10 может показаться сложной задачей, но следуя рекомендациям, предоставленным выше, вы сможете успешно установить и начать работу с базой данных Postgresql.

Не забывайте регулярно обновлять и обслуживать свою базу данных, чтобы предотвратить возможные проблемы и обеспечить ее стабильную работу.

This page is intended to help people collect information to troubleshoot problems with the PostgreSQL Installers supplied by EnterpriseDB.

Many problems have already been identified and fixed, so make sure you’re using the installer for the latest point-release of PostgreSQL before reporting a problem.

Because some problems can’t be fixed in the installer, but are issues with the Windows installation or how it is being used, there is also a list of frequently asked questions and frequently encountered problems with PostgreSQL on Windows. Please read the common installation errors section, or preferably the whole document. You’ll probably save some time and hassle by doing so.

If you’ve tried all that, and you’re still having problems getting PostgreSQL installed, please read on to find out how you can collect the information we need to be able to help you with installation problems.

Make sure you’re installing on a supported platform

See the installer download page and (for Windows) the Running & Installing PostgreSQL On Native Windows for platform support details.

Please do not ask the mailing list for help with installation on unsupported Windows platforms. However, one of the paid PostgreSQL consultants, or EnterpriseDB (who make the PostgreSQL installer) may be able to help you on a paid basis.

Try again without your virus scanner or 3rd-party firewall

The Windows FAQ discusses potential issues with antivirus software and 3rd-party firewalls. If you’re encountering any installation issues, please try again with your virus scanner uninstalled (not just disabled) to see if the problem goes away. If it does, please report the fact to the mailing list and to the vendor of your antivirus product.

Read about other common installation problems

Before reporting a problem, please read the windows FAQ to see if your problem is one we’ve already seen and found a workaround or fix for.

Reporting an installation error

To be able to help you with an installation problem, we will need you to collect some basic details about your computer and the problem. Please see the instructions below.

Note down the basic information about your system

Any problem report must include:

  • The exact words of any error message you see when the installation fails
  • The exact version of PostgreSQL you are installing
  • Whether you installed a 32-bit or 64-bit release of PostgreSQL
  • The operating system and version you are using, eg:
    • «Windows XP Professional with Service Pack 3»
    • «Mac OS X 10.4.2»
    • «Fedora Core 14»
  • Whether you are running a 32-bit or 64-bit version of your operating system
  • How you ran the installer. Command-line arguments, what user account you ran it from, etc.
  • What antivirus and/or software firewall products you have installed, if any, even if they are disabled
  • Which, if any, of the troubleshooting instructions you have already tried
  • Whether a previous version of PostgreSQL was installed, and if so:
    • whether you uninstalled it before running the new installer
    • If you uninstalled a previous version, whether you did it with the uninstaller or some other way
    • Whether you removed the postgres user/service account when you uninstalled
  • Additional details and platform-specific information as described below

Collect the installer log file

The installer creates a log file in the system ‘temp’ directory. This will log all manner of data about the installation, and is invaluable when troubleshooting. The log will be called install-postgresql.log if the installation completed successfully. If not, the installer may not have been able to rename it, in which case the name will be either bitrock_installer.log or bitrock_installer_xxx.log, where xxx is a number (actually the process ID of the installation attempt).

On Linux and Mac systems, the logfile will almost always be found in the /tmp/ directory.

On Windows, the easiest way to find the logfile is to click Start -> Run, enter %TEMP% in the box and then click OK (these instructions apply to Windows XP and 2003 — adjust as necessary for other versions).

Get the contents of the PostgreSQL server error log

The PostgreSQL server has its own error log. This may not exist if installation failed early on, but it can be very informative for errors that happened later in installation. You can find it in the «pg_log» folder inside the data directory you chose for PostgreSQL. If it exists, please include it in any problem reports.

Windows users must collect additional Windows-specific details to help troubleshoot installation issues:

  • (On Windows Vista and Windows 7): The UAC security level
  • Whether you started the installer by logging in as Administrator, started it from from your own normal user account, or ran it using the «Run As Administrator» menu option.
  • Whether your computer is a part of a Windows domain. Home computers usually are not, business computers usually are.
  • Whether your computer and network has any Group Policy configured. If you’re on a corporate windows domain you probably have group policy and need to ask your network administrator for details about it.

Windows: Check for messages in the Windows event log

Please check the Windows Event Viewer for messages that might be related to installation problems or service startup problems.

TODO: detail on how to collect and save events.

Windows: Check what Group Policy, if any, is active on your computer

TODO: instructions for collecting domain and local group policy.

Windows: Take a copy of the environment variables set on the computer

Open a command prompt and run «set». Then copy and paste the results into your problem report.

I’d be better to collect the «all users» environment from the system control panel, but it’s not easy to just dump this information.

PostgreSQL — это мощная, бесплатная и открытая система управления базами данных. Но как и любое программное обеспечение, PostgreSQL может иметь проблемы при установке и настройке. Рассмотрим некоторые распространенные проблемы и возможные решения при установке PostgreSQL на операционную систему Windows 10 Pro.

Ошибка «The application was unable to start correctly (0xc000007b)»

Эта ошибка может возникать при попытке запустить PostgreSQL после его установки. Причиной может быть несовместимость версий библиотек. Чтобы решить эту проблему, можно попробовать установить все необходимые библиотеки вручную.

  1. Скачайте необходимые библиотеки (например, Microsoft Visual C++ Redistributable for Visual Studio 2015) с официального сайта компании-разработчика.

  2. Установите их на свой компьютер.

  3. Перезапустите компьютер и попробуйте запустить PostgreSQL снова.

Ошибка «FATAL: role «postgres» does not exist»

Эта ошибка может возникнуть при попытке входа в PostgreSQL через командную строку. Она означает, что нет пользователя с именем «postgres». Чтобы решить эту проблему, нужно создать пользователя с этим именем.

  1. Откройте командную строку от имени администратора.

  2. Введите команду «psql -U postgres» и нажмите Enter. Эта команда запустит PostgreSQL и войдет в него от имени пользователя «postgres».

  3. Введите команду «createuser -s -i -d -r -l -w postgres» и нажмите Enter. Она создаст нового пользователя с именем «postgres».

  4. Попробуйте войти в PostgreSQL через командную строку снова.

Ошибка «Failed to load library ‘msvcr120.dll'»

Эта ошибка может возникнуть при попытке запустить PostgreSQL после его установки. Она означает, что отсутствует библиотека «msvcr120.dll». Чтобы решить эту проблему, нужно установить Microsoft Visual C++ Redistributable for Visual Studio 2013.

  1. Скачайте Microsoft Visual C++ Redistributable for Visual Studio 2013 с официального сайта компании-разработчика.

  2. Установите его на свой компьютер.

  3. Перезапустите компьютер и попробуйте запустить PostgreSQL снова.

Ошибка «The database cluster initialisation failed»

Эта ошибка может возникнуть при попытке создания кластера баз данных PostgreSQL. Она означает, что процесс создания кластера не удался. Чтобы решить эту проблему, нужно проверить наличие необходимых файлов.

  1. Откройте директорию, где установлен PostgreSQL (обычно это «C:\Program Files\PostgreSQL\XX», где XX — версия PostgreSQL).

  2. Убедитесь, что в этой директории есть папка «data», в которой должны быть файлы «pg_hba.conf» и «postgresql.conf».

  3. Если этих файлов нет, скопируйте их из директории «C:\Program Files\PostgreSQL\XX\share».

  4. Попробуйте создать кластер баз данных снова.

Эти ошибки могут возникнуть при установке и настройке PostgreSQL на Windows 10 Pro. Но в большинстве случаев их можно решить с помощью простых действий, описанных выше. Если вы столкнулись с другими ошибками или проблемами, которые не описаны здесь, обратитесь за помощью к сообществу PostgreSQL или к его разработчикам.

  • Не удаляются папки с рабочего стола windows 10
  • Не устанавливается vga драйвер на windows 10
  • Не устанавливается urban vpn windows 11
  • Не устанавливается twain драйвер kyocera windows 10
  • Не устанавливается sql server 2012 на windows 7