psql enhancements