Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WJQL7-00014I-F0 for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Feb 2014 16:31:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WJQL6-0001ec-AV for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Feb 2014 16:31:08 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WJQL5-0001eR-5S; Fri, 28 Feb 2014 16:31:07 +0000 Received: from col0-omc1-s16.col0.hotmail.com ([65.55.34.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WJQL1-0000GB-AD; Fri, 28 Feb 2014 16:31:06 +0000 Received: from COL128-W44 ([65.55.34.8]) by col0-omc1-s16.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 28 Feb 2014 08:31:02 -0800 X-TMN: [L3b7ydeFjSyFDOSU/mYNVvNBUG8LGrQE] X-Originating-Email: [consolity@outlook.com] Message-ID: Content-Type: multipart/alternative; boundary="_a5643cca-2fea-464d-b1a2-3c6773532ea4_" From: Jeremy Thornton To: "pgsql-bugs@postgresql.org" CC: "pgsql-odbc@postgresql.org" Subject: UUID, UUID-OSSP extension, and ODBC issue Date: Fri, 28 Feb 2014 11:31:02 -0500 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 28 Feb 2014 16:31:02.0898 (UTC) FILETIME=[788E6D20:01CF34A2] X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --_a5643cca-2fea-464d-b1a2-3c6773532ea4_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ODBC: pgsql 09.03.0200=3BOS: Windows 8.1 Pro=3BPostgres version: 9.3.3=3B In using pgsqlODBC 09.03.0200=0A= or any version prior that we have tested we seem to be having a=0A= performance decrease to only 625 inserts per second when=0A= using UUID as the primary key and using the UUID-OSSP to generate=0A= the default value of uuid_generate_v1() whereas if we generate the=0A= UUID client side for the primary key and send it with the values in=0A= the insert transaction we can increase it to 1500 inserts per second=0A= bypassing the UUID-OSSP extension. This is consistent and=0A= repeatable. The only change being made is Postgres generating the=0A= UUID using the extension or us passing the value in the insert=0A= statement. If Postgres generates it internally while inserting using a = script through PgAdmin then it can generate at near 2000 inserts per second= so=0A= uuid-ossp shouldn't be the problem since it can keep up inside PgAdmin= =2C but when=0A= used over default settings in ODBC it is 2/3 slower. The data being=0A= tested is the same in all cases. I am using a default System DSN on=0A= Windows 8.1 Pro (no special settings). Is this a bug=2C expected behavi= or=2C or a settings=0A= adjustment that needs to be made?=20 =0A= =20 DSN settings: AB =3D 0BI =3D 0BoolsAsChar =3D 1ByteaAsLongVarbinary =3D 1CancelAsFreeStmt= =3D 0CommLog =3D 0Debug =3D 0DisallowPremature =3D 0Driver =3D 0903\bin\ps= qlodbc30a.dllExtraSysTablePrefixes =3D dd_=3BFakeOidIndex =3D 0Fetch =3D 10= 0GssAuthUseGSS =3D 0Ksqo =3D 1LFConversion =3D 1LowerCaseIdentifier =3D 0Ma= xLongVarcharSize =3D 8190MaxVarCharSize =3D 255Optimizer =3D 0Parse =3D 0Po= rt =3D 5432Protocol =3D 7.4-1ReadOnly =3D 0RowVersioning =3D 0ShowOidColumn= =3D 0ShowSystemTables =3D 0SSLmode =3D allowTextAsLongVarchar =3D 1TurelsM= inus1 =3D 0UniqueIndex =3D 1UnknownsAsLongVarChar =3D 1UnkownSizes =3D 0Upd= atableCursors =3D 1UseDeclareFetch =3D 0UseServerSidePrepare =3D 1XaOpt =3D= 1 = --_a5643cca-2fea-464d-b1a2-3c6773532ea4_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
ODBC: pgsql 09.03.0200=3B
OS: Windows 8.1 Pro=3B
Postgres version: 9.3.3=3B

In usi= ng pgsqlODBC 09.03.0200=0A= or any version prior that we have tested we seem to be having a=0A= performance decrease to only 625 inserts per second when=0A= using UUID as the primary key and using the UUID-OSSP to generate=0A= the default value of uuid_generate_v1() whereas if we generate the=0A= UUID client side for the primary key and send it with the values in=0A= the insert transaction we can increase it to 1500 inserts per second=0A= bypassing the UUID-OSSP extension. This is consistent and=0A= repeatable. The only change being made is Postgres generating the=0A= UUID using the extension or us passing the value in the insert=0A= statement. If Postgres generates it internally while inserting using a = script through PgAdmin then it can generate at near 2000 inserts per second= so=0A= uuid-ossp shouldn't be the problem since it can keep up inside PgAdmin= =2C but when=0A= used over default settings in ODBC it is 2/3 slower. The data being=0A= tested is the same in all cases. I am using a default System DSN on=0A= Windows 8.1 Pro (no special settings). Is this a bug=2C expected behavi= or=2C or a settings=0A= adjustment that needs to be made?
=0A=
DSN settings:
AB =3D 0
BI =3D 0
BoolsAsChar =3D 1
ByteaAsLongVarbinary =3D 1
CancelAsFreeStmt =3D 0
CommLog =3D 0
D= ebug =3D 0
DisallowPrematu= re =3D 0
Driver =3D 0903\b= in\psqlodbc30a.dll
ExtraSy= sTablePrefixes =3D dd_=3B
= FakeOidIndex =3D 0
Fetch = =3D 100
GssAuthUseGSS =3D = 0
Ksqo =3D 1
<= div>LFConversion =3D 1
LowerCaseIdentifier =3D 0
MaxLongVarcharSize =3D 8190
<= font face=3D"Arial" size=3D"3">MaxVarCharSize =3D 255
Optimizer =3D 0
Parse =3D 0
Port =3D 5432
Protocol= =3D 7.4-1
ReadOnly =3D 0<= /font>
RowVersioning =3D 0=
ShowOidColumn =3D 0
=
ShowSystemTables =3D 0
SSLmode =3D allow
TextAsLongVarchar =3D 1
TurelsMinus1 =3D 0
UniqueIndex =3D 1
UnknownsAsLongVarChar =3D 1
UnkownSizes =3D 0
UpdatableCursors =3D 1
= UseDeclareFetch =3D 0
UseS= erverSidePrepare =3D 1
XaO= pt =3D 1

=

= --_a5643cca-2fea-464d-b1a2-3c6773532ea4_--