support for STDIN, STDOUT, and domains

These patches add support for:

* support unique indices as well as primary keys

* support for PostgreSQL domains

* command-line support for `STDIN` and `STDOUT`

*Note:* I wanted to submit these patches individually, but could not find a way to do that.