only allow some characters into pg:psqlcommandhelper