Removed static allocations from methods in `output_pgsql_t`.
Don't need extern any more.
Add very simple escaping test.
Reserve correct amount of space for pgsql escaping.