Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip empty and commented pgpass entries (#1216)
While running an application a lot of warnings were printed about my pgpass file, like: Malformed line in pgpass file This was due to the fact that my pgpass file contains whitespace and comments to organize it in a better way. This commit ensures we will ignore empty lines and lines that (barring whitespace) start with a comment. This is in line with how PostgreSQL treats these entries in the pgpass file: - https://www.postgresql.org/docs/current/libpq-pgpass.html - function passwordFromFile in src/interfaces/libpq/fe-connect.c
- Loading branch information