Copying the code is fine, but remember that you're now disconnected from any bug fixes or enhancements I may add in the future. (I've already updated the Pg array parsing code at least once since it was created (to account for a variant of the literal array value that I did not know Postgres might return). It could happen again.