Thanks a lot for reviewing the patches and for the encouraging feedback Sorry for the late reply — I missed the mail since I wasn’t CC’d and noticed it only now.
Good point about the TAP tests. I'll be adding tab-completion tests in src/bin/psql/t/010_tab_completion.pl for both Ian’s patch and the SET/RESET cases from my patch shortly.