Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8401401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:47:48+00:00 2026-06-09T21:47:48+00:00

I have been using the default sqlite3 to date, however as I would ultimately

  • 0

I have been using the default sqlite3 to date, however as I would ultimately like to deploy using postgres I think it would be best to try it out in my development environment rather than launching myself into production untested.

Several points
a) once i have the pg.app running, how do test it?
b) in my config/database.yml file

development:
  adapter: postgresql
  encoding: unicode
  database: 
  pool: 5
  username:
  password:

how do i know what the default name of my database is, and how would I got about setting up a user, is this even necessary?

Finally, when i check

which psql

I am told that

/usr/bin/psql

I think that this PATH is incorrect that I will need to modify it, is this so and if so why?

Im sure this is relatively simple but thanks in advance for any help you can offer.

EDIT 1:

During my error googling, and prior attempts, I shot up a similar error to this chap
Repairing Postgresql after upgrading to OSX 10.7 Lion
and thought that it may be a similar problem despite the fact that he is using homebrew?

EDIT 2:

My .bash_profile file

[[ -s “$HOME/.rvm/scripts/rvm” ]] && . “$HOME/.rvm/scripts/rvm” # Load RVM function
export PATH=/usr/local/bin:$PATH

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:47:50+00:00Added an answer on June 9, 2026 at 9:47 pm

    A few things you need to do to get postgres.app up and running. It looks like you are using the default postgres install with Mac OS X /usr/bin/psql which is good as it should be easy to get this fixed.

    The main action is to make sure that the path to the postgres.app is set in your PATH. Your .profile, .bashrc or .zshrc (whichever you use) should have the following appended to the start of your Path with the following.

    export PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
    

    This will ensure that postgres.app is used in preference to any other install by prepending it to your current path. You shouldn’t need any other config,

    The second action is to set up your database.yml. Postgres.app comes pre-configured with your local Mac username so you don’t need to add or change it for everything to just work. You also don’t need to specify it in database.yml. Development should work with the following:

    development:
      adapter: postgresql
      host: localhost
      encoding: unicode
      database: appname_development
    

    Postgres.app will auto create the database that has been specified when you migrate the database for the first time. The name of your database is up to you but the convention is application_name underscore environment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using the default colors Grey and Blue for cell selection, but
I have been using TortoiseSVN for some time and I really like it. I
For a few months I have been successfully using David Justices Default Button example
I have been using appendChild to attach items to a div. The default behaviour
I have been using HTTPClient version 4.1.2 to try to access a REST over
I have implemented Push Notification and have been using Default sounds every time. I
I have been using hashes to pass data between pages (like setting scrollTop() ,
I have been using Visual Studio 2010 SP1 for C++ in the default setting
In debug mode I have been using: ConnectionString = Properties.Settings.Default.SomeConnectionString to retrieve my connection
I have been using the default of new line for methods and code blocks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.