Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to PostgreSQL Database. I need to install it in my machine.

I am not administrator in my system.

Can some one suggest, if Non-Administrator can install it.

If there is any other way of installing apart from .exe, please let me know.

Thanks In Advance.

share|improve this question

migrated from Dec 19 '12 at 8:32

This question came from our site for professional and enthusiast programmers.

up vote 7 down vote accepted

Try this Starting PostgreSQL in windows without install. Follow the steps below:

  • Get binaries for Windows. You can either copy the postgresql folder (minus the data folder) from an existing PostgreSQL install, or just download the PostgreSQL binaries from PostgreSQL Windows. Make sure to choose the zip archive.
  • Next copy the below batch file into the root of the postgresql folder
  • For first time use, unremark out the (initdb step)
  • Run the batch file:



REM The script sets environment variables helpful for PostgreSQL

@SET PATH="%~dp0\bin";%PATH%

@SET PGDATA=%~dp0\data


@SET PGUSER=postgres


@SET PGLOCALEDIR=%~dp0\share\locale

REM "%~dp0\bin\initdb" -U postgres -A trust

"%~dp0\bin\pg_ctl" -D "%~dp0/data" -l logfile start

ECHO "Click enter to stop"


"%~dp0\bin\pg_ctl" -D "%~dp0/data" stop
share|improve this answer
+1 that's basically the same batch file I am using. – a_horse_with_no_name Dec 19 '12 at 7:47
@Aan..Thank you for the great answer. – Patan Dec 19 '12 at 13:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.