Andrew Dunstan wrote: > > > Bruce Momjian wrote: > > >Tom Lane wrote: > > > > > >> > >>I'm coming to agree with Andrew that a documentation patch might be the > >>best answer. But where to put it ... under the description of the > >>log_connections GUC var? > >> > >> > > > >I am thinking we should wait for someone else to notice the double log > >entries before mentioning it in the docs. > > > > > > If I had a more Machiavellian bent I would make sure that happened ;-) > > How about this note under log_connections?: > > "Some clients (notably psql) sometimes try to connect without a password > before trying with a password. This behaviour will generate two log > lines if log_connections is turned on, even though to the user it > appears that only one connection has occurred."
OK, you wore me down. :-) New text: This outputs a line to the server log detailing each successful connection. This is off by default, although it is probably very useful. Some client programs, like <application>psql</>, attempt to connect twice while determining if a password is required, so duplicate <literal>connection received</> messasges are not a sign of problem. This option can only be set at server start or in the <filename>postgresql.conf</filename> configuration file. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings