Re: Fwd: Restarting with pg_ctl, users, and passwords.

Поиск
Список
Период
Сортировка
От aklaver@comcast.net (Adrian Klaver)
Тема Re: Fwd: Restarting with pg_ctl, users, and passwords.
Дата
Msg-id 082020082048.28687.48AC83300006800D0000700F22007610649D0A900E04050E@comcast.net
обсуждение исходный текст
Ответ на Fwd: Restarting with pg_ctl, users, and passwords.  ("Matthew Pettis" <matthew.pettis@gmail.com>)
Ответы Re: Fwd: Restarting with pg_ctl, users, and passwords.
Список pgsql-general
 -------------- Original message ----------------------
From: aklaver@comcast.net (Adrian Klaver)
> -------------- Original message ----------------------
> From: "Matthew Pettis" <matthew.pettis@gmail.com>
> > SOLVED.
> >
> > Yep, Restart was done.
> >
> > The issue turned out not to be with Postgresql config, but the app
> > config.  In the app, I define a connection string, which has user,
> > password, and databasename.  When I had this same configuration on
> > WinXP, I did not need to specify a fourth parameter, the host, which
> > explicitly told the app to use host=localhost.  When I added the host
> > param to the connection string, it all went through.
> >
> > On the bright side, I learned a lot about how to restart the service
> > and the config files...
> >
> > Curious: Any ideas why I can leave the host off my connection string
> > in WinXP, but not Linux?  It it an idiosyncracy of my app, or of
> > PostgreSQL?
> >
> > Thanks for all the help,
> > Matt
> >
> Is the Linux app running on the Postgres server machine?
> If so I hazard a guess that you have a line like:
>
> local   all         all                               trust

Should have been:

local   all         all                            some non-functional authentication method

this would cause the connection to the socket to fail assuming the authentication method selected did not work.

>
> before your host line in pg_hba.
>
> The app connecting from the same machine would try the local socket (local)
> before the localhost(tcp/ip), unless localhost was specified in the connection
> string.
>
>
>
> --
> Adrian Klaver
> aklaver@comcast.net
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general


--
Adrian Klaver
aklaver@comcast.net


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

Предыдущее
От: "Matthew Pettis"
Дата:
Сообщение: Re: Fwd: Restarting with pg_ctl, users, and passwords.
Следующее
От: aklaver@comcast.net (Adrian Klaver)
Дата:
Сообщение: Re: Fwd: Restarting with pg_ctl, users, and passwords.