Add test demonstrating bug in datetime array encoding.
Ignore DateTimeArray test, add comment explaining it.
Speed tests

Add test metrics class to help track and report speed test results.
Add tests.
Array text encoding

Encode text arrays using the '{"", ""}' syntax, rather than the array['', ''] syntax.
Restructure plain text backend encoder using a hash table rather than a big nested if/then construct.
Replace the dynamic hash table with a very simple static one, negating the need for hash key comparisons in lookup operations.
String and bytea encoding optimization

Expand use of the hash table to control all aspects of string and bytea quoting and escaping.
Optimize the hash function to make as few decisions as possible on current PG version.
Merge pull request #80 from glenebob/array_handling

Array text encoding

I ran the test suite against 7.3.21, and discovered that array text encoding did not work, because the array[] construct was new in 7.4. So, I re-wrote the array text value encoding code, yet again. What is that, 37 times now? Now it uses the more universal '{"", ""}' syntax. The result is that the array tests run cleanly on all final revisions back to 7.3.21.

The different quoting and escaping combinations with plain text encoding will drive a person crazy.

-Glen
Merge pull request #79 from glenebob/speed_tests

Speed tests

I added a couple more speed tests, and added a metrics class to help track time and CPU usage and report results. I stole your "using()" idea :)

-Glen
Fix encoding bug caused by commit 54a0160c06fca6ef35eaf9b48875fedf83cb0d85

Add tests exposing bad quoting of types other than text and bytea.
Fix generic quoting code.
Merge pull request #81 from glenebob/backend_text_encoding

Fix encoding bug caused by PR #80
Merge pull request #76 from glenebob/bug_datetime_array

Add test demonstrating bug in datetime array encoding.
Fix DateTime.Parse() call for non-U.S. cultures.
Merge pull request #84 from glenebob/tests_datetime_parse_fix

Fix DateTime.Parse() call for non-U.S. cultures.
Release connection into pool with "Discard All"
This is a new patch to replace PR54
add comments for extra_float_digits
add two speed tests for connection and disconnection
execute all inital queries in one muti-statment
Merge pull request #74 from ChenHuajun/discardall2

Release connection into pool with "Discard All"(new)
Merge pull request #87 from ChenHuajun/connecttest

add two speed tests for connection and disconnection