Take the 2-minute tour ×
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. It's 100% free, no registration required.

Is it possible to automatically create a database after a postgres one click install (from Enterprise DB)?

share|improve this question
    
You could use the ZIP distribution, unzip it and then call initdb to create the database and pg_ctl register to install the Windows service (if needed). –  a_horse_with_no_name Mar 14 '13 at 8:46

1 Answer 1

up vote 0 down vote accepted

It doesn't look like the one-click installer does this directly (see http://www.enterprisedb.com/resources-community/pginst-guide#noninteractive) but if you are calling this from another installer, you could start up the db afterwards and call createdb on it.

I assume you are trying to install from an installer for another program. if so that's how I would do it.

share|improve this answer

Your Answer

 
discard

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.