Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#38

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...

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

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Pete Deffendol
  2. Repository
    Repository
    • State changed from new to resolved

    (from [96d9691e71319f4c166315a36b96c2c3c54ed493]) FormHelper#label_tag accepts :for option [encoded] [#38 state:resolved]

    http://github.com/rails/rails/co...

    April 30th, 2008 @ 11:14 PM

  3. Pete Deffendol
    Pete Deffendol

    The previously mentioned commit referenced/closed the wrong ticket. Please reopen.

    April 30th, 2008 @ 11:50 PM

  4. DHH
    DHH
    • State changed from resolved to open

    May 1st, 2008 @ 05:25 AM

  5. Repository
    Repository
    • State changed from open to resolved

    (from [205750c8dead2449a23173fab0720b7701231d2a]) PostgreSQL: Connect to template1 database when creating or dropping db

    • The template1 database is always available on a PostgreSQL install
    • The previous behavior expected a database with the same name as the

    connecting user, which may not be available

    Signed-off-by: Michael Koziarski

    [#38 state:resolved]

    http://github.com/rails/rails/co...

    May 4th, 2008 @ 01:21 AM