Add test for pgsql output.

This includes cloning the output, and turned up a couple of bugs with initialising `table_t` as a copy.
Are we better off reading the bzip2, as PBF support is, strictly speaking, optional?