This project is archived and is in readonly mode.

#38 ✓resolved
Pete Deffendol

PostgreSQL: use template1 database on rake:db_(create|drop)

Reported by Pete Deffendol | April 22nd, 2008 @ 11:07 PM

Currently the rake:db_create and rake:db_drop tasks will connect to the PostgreSQL server with a nil database, which causes PostgreSQL to look for a database with the same name as the connecting user. This isn't really feasible as the database is not guaranteed to exist.

PostgreSQL always has a template1 database - let's connect to it when creating/dropping other databases.

Patch: http://github.com/pdeffendol/rai...

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages