Add support for setting a tag on each query

Set the value of pg_commandhistory.tag (using a regular SET) to get
a tag shown on each line in the logfile.