Restructure hba.c to replace 3 parallel lists with single list of structs.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 27 Jan 2017 18:43:00 +0000 (13:43 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 27 Jan 2017 18:43:00 +0000 (13:43 -0500)
commit350cb921ae2ced8674e098d0645f2493e5757ad1
tree7a997a5d707dabc22187e1c1012caf87abcab72b
parentfde5c037925b01b937923606c39460d94965672e
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
src/backend/libpq/hba.c