Bug 168802
Summary: | duplicate log entry when logging connections | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Andrew Dunstan <andrew> | ||||||
Component: | postgresql | Assignee: | Tom Lane <tgl> | ||||||
Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 4 | CC: | hhorak | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2005-09-22 03:37:37 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Andrew Dunstan
2005-09-20 13:25:56 UTC
I can't replicate this on my own FC4 machine, using either my own build of the RPMS or RPMS downloaded via "yum install". Is it possible you've got a corrupted download? What other nondefault settings do you have besides log_connections (contents of pg_hba.conf could be significant for instance)? Is the platform x86 or something else? Are you up-to-date on the rest of FC4? Created attachment 119108 [details]
pg_hba.conf
Created attachment 119109 [details]
postgresql.conf
(In reply to comment #1) > I can't replicate this on my own FC4 machine, using either my own build of the RPMS or RPMS downloaded > via "yum install". Is it possible you've got a corrupted download? What other nondefault settings do you > have besides log_connections (contents of pg_hba.conf could be significant for instance)? Config files attached. rpm --verify shows clean. I have verified that they are the Fedora RPMs and not rogues. I do have md5 turned on for all connections. ... that set me thinking ... that makes the difference, my experiments show. In fact, I have now confirmed this with vanilla postgres sources, so it appears not the be a Fedora-specific bug after all. > Is the platform > x86 or something else? P4 HP zv5000 laptop. > Are you up-to-date on the rest of FC4? yes md5 password eh? I believe that libpq is written to not prompt the user for a password until it's tried and failed to establish a connection without one. It's possible that that logic also applies to, say, pulling a password from ~/.pgpass. Where is your password coming from exactly? From the kbd. I see what's happening now. You're right, if there's a pgpass file, or I give psql the -W flag this does not occur. I had assumed this was handled at the protocol level rather than having it fail and try again. I guess the plus side is that most apps and libraries will supply a password as a connection parameter. It's damned confusing, though, to say the least. OK. I'm going to close this entry NOTABUG, because from Red Hat's perspective it isn't one: the code is operating as designed by the upstream developers. But feel free to take up a discussion on pgsql-hackers about whether this can be done better. |