pgsql: Restructure hba.c to replace 3 parallel lists with single list o

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Restructure hba.c to replace 3 parallel lists with single list o
Date: 2017-01-27 18:43:05
Message-ID: E1cXBUH-0006HY-BF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Restructure hba.c to replace 3 parallel lists with single list of structs.

tokenize_file() now returns a single list of TokenizedLine structs,
carrying the same information as before. We were otherwise going to grow a
fourth list to deal with error messages, and that was getting a bit silly.

Haribabu Kommi, revised a bit by me

Discussion: https://postgr.es/m/CAJrrPGfbgbKsjYp=bgZXhMcgxoaGSoBb9fyjrDoOW_YymXv1Kw@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/350cb921ae2ced8674e098d0645f2493e5757ad1

Modified Files
--------------
src/backend/libpq/hba.c | 134 +++++++++++++++++++++++++-----------------------
1 file changed, 70 insertions(+), 64 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-01-27 21:30:46 pgsql: Refactor bitmap heap scan estimation of heap pages fetched.
Previous Message Tom Lane 2017-01-27 15:02:12 pgsql: Improve comments about ProcessUtility's queryString parameter.