Re: [HACKERS] Make hba available to client code

2015-01-28 Thread Tom Lane
David Fetter writes: > On Wed, Jan 28, 2015 at 04:10:42PM -0500, Tom Lane wrote: >> How exactly would exporting those functions help anything client-side? > Right now, pgbouncer, and aspirational things like it--other > connection poolers, maybe distributed transaction managers, etc.--can > fairl

Re: [HACKERS] Make hba available to client code

2015-01-28 Thread Andrew Dunstan
On 01/28/2015 04:26 PM, David Fetter wrote: On Wed, Jan 28, 2015 at 04:10:42PM -0500, Tom Lane wrote: David Fetter writes: While investigating another project, namely adding pg_hba.conf support to pgbouncer, I ran into a stumbling block others probably will, too: the hba code is backend-only,

Re: [HACKERS] Make hba available to client code

2015-01-28 Thread David Fetter
On Wed, Jan 28, 2015 at 04:10:42PM -0500, Tom Lane wrote: > David Fetter writes: > > While investigating another project, namely adding pg_hba.conf support > > to pgbouncer, I ran into a stumbling block others probably will, too: > > the hba code is backend-only, which means that if I were to do t

Re: [HACKERS] Make hba available to client code

2015-01-28 Thread Tom Lane
David Fetter writes: > While investigating another project, namely adding pg_hba.conf support > to pgbouncer, I ran into a stumbling block others probably will, too: > the hba code is backend-only, which means that if I were to do this > as-is, I would be cooking a batch of very unappetizing copyp

[HACKERS] Make hba available to client code

2015-01-28 Thread David Fetter
Folks, While investigating another project, namely adding pg_hba.conf support to pgbouncer, I ran into a stumbling block others probably will, too: the hba code is backend-only, which means that if I were to do this as-is, I would be cooking a batch of very unappetizing copypasta. I'm allergic to