best way to setup postgres as backend for webapp?

From: Matthew Wilson <mwilson(at)sarcastic-horse(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: best way to setup postgres as backend for webapp?
Date: 2003-11-18 20:08:56
Message-ID: slrnbrl0s0.mhl.mwilson@overlook.homelinux.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I want to use postgres as the back-end for a web application. Postgres
is installed and running on a Red Hat 9 server. I'll use python to
handle the connection. What is the best (easiest + safest) way to set
up postgres as the backend?

Should I create a user called 'mywebapp' and then use that user in all
my python scripts? And should I make a database that is owned by user
'mywebapp'?

Also, although I use the -P flag with createuser, I still am not getting
prompted for a password. Do I need to change my pg_hba.conf file to
something like:

local all all ident md5

Thanks for the help.

Browse pgsql-novice by date

  From Date Subject
Next Message Greg Stark 2003-11-19 06:29:20 Re: Expressional Indexes
Previous Message Stephan Szabo 2003-11-18 16:34:23 Re: How can I check if table exists in DB?