Re: Wildcard usage enhancements in .pgpass - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Wildcard usage enhancements in .pgpass
Date
Msg-id 20131117185613.GA2473@svana.org
Whole thread Raw
In response to Wildcard usage enhancements in .pgpass  (Alexey Klyukin <alexk@hintbits.com>)
Responses Re: Wildcard usage enhancements in .pgpass  (Alexey Klyukin <alexk@hintbits.com>)
Re: Wildcard usage enhancements in .pgpass  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On Sat, Nov 16, 2013 at 09:26:33PM +0100, Alexey Klyukin wrote:
> Hi,
>
> Attached is the patch that improves usage of '*' wildcard in .pgpass,
> particularly in the host part. The use case is below.

Looks interesting, though I wonder if you could use fnmatch(3) here. Or
woud that match more than you expect?  For example, it would allow
'foo*bar' to match 'foo.bar' which your code doesn't.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> He who writes carelessly confesses thereby at the very outset that he does
> not attach much importance to his own thoughts.  -- Arthur Schopenhauer

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pre-commit triggers
Next
From: Hannu Krosing
Date:
Subject: Re: pre-commit triggers