On Wed, Jun 27, 2012 at 4:27 PM, Tom Lane <t...@sss.pgh.pa.us> wrote: > Magnus Hagander <mag...@hagander.net> writes: >> On Wed, Jun 27, 2012 at 4:14 PM, Tom Lane <t...@sss.pgh.pa.us> wrote: >>> cases where people are modifying the wrong hba file. Can we show >>> the source text of the hba line? > >> We don't currently keep the full source text around - but we certainly >> could do that if we wanted to. > > If we're concerned about providing a message like this, I think it'd be > well worthwhile. We presumably would only store the active lines not > comment lines, so the extra memory space would be negligible in just > about any real use-case.
Turned out to be a bit more work than I thought, since the current parser reads pg_hba byte by byte, and not line by line. So I had to change that. See attached, seems reasonable? -- Magnus Hagander Me: http://www.hagander.net/ Work: http://www.redpill-linpro.com/
hba_line2.patch
Description: Binary data
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers