Statement splitter for postgresql with some dollar-quoted support

This will work for multiline dollar quoted strings, but not single line dollar quoted strings.