Page 1 of 1

Protocol 2 vs 3

Posted: Wed 04 Jun 2008 16:14
by dhoernig
On other posts, I've seen the following advice:
Protocol 3.0 doesn't support multiple query execution.
To enable this, set Protocol=2.0 in your connection string.
I'm converting an app from using ODBC driver to PostgreSQLDirect .NET and in many cases use multiple select statements separated by ';'
Setting Protocol=2 in my connection string solves the problem, but am I losing other benefits or features by doing this?

Posted: Thu 05 Jun 2008 07:32
by Alexey.mdr
The main changes between protocols 2.0 and 3.0 are described here:
http://www.postgresql.org/docs/8.2/inte ... anges.html
It's likely your application can gain some performance with protocol 3.0, but in this case you should change the code.