postgres connection problem via python pg DBI

Поиск
Список
Период
Сортировка
От Dan Joo
Тема postgres connection problem via python pg DBI
Дата
Msg-id 4676DF8318F32F4AB7E98BCD9BC90628F3E153@agq-ex01.agraquest.int
обсуждение исходный текст
Ответы Re: postgres connection problem via python pg DBI  ("Dan Joo" <djoo@agraquest.com>)
Re: postgres connection problem via python pg DBI  (Colin Wetherbee <cww@denterprises.org>)
Список pgsql-general

Hi all,

 

I have a problem connecting to postgres via the python pg module ONLY from the cgi-scripts.

 

The command is:

 

db=pg.connect('aqdev','localhost',5432,None,None,'postgres',None)

 

From the commandline the connection works great, but from a cgi-script it barfs with the following message:

 

InternalError: could not create socket: Permission denied

 

Does anyone have any idea how I can get around this issue? 

 

Thanks a bunch!    

В списке pgsql-general по дате отправления:

Предыдущее
От: Jason Long
Дата:
Сообщение: Re: full vacuum really slows down query
Следующее
От: "Dan Joo"
Дата:
Сообщение: Re: postgres connection problem via python pg DBI