Re: Wildcard usage enhancements in .pgpass

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Alexey Klyukin <alexk(at)hintbits(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Wildcard usage enhancements in .pgpass
Date: 2013-11-17 18:56:14
Message-ID: 20131117185613.GA2473@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2013-11-17 19:04:57 Re: pre-commit triggers
Previous Message Andres Freund 2013-11-17 18:31:36 Re: pre-commit triggers