Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WJYku-0001TH-AX for pgsql-bugs@arkaria.postgresql.org; Sat, 01 Mar 2014 01:30:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WJYks-0004md-QO for pgsql-bugs@arkaria.postgresql.org; Sat, 01 Mar 2014 01:30:18 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WJ7I6-0001Ah-AL for pgsql-bugs@postgresql.org; Thu, 27 Feb 2014 20:10:46 +0000 Received: from mail-yh0-f45.google.com ([209.85.213.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WJ7I1-00047a-5H for pgsql-bugs@postgresql.org; Thu, 27 Feb 2014 20:10:45 +0000 Received: by mail-yh0-f45.google.com with SMTP id i57so3267091yha.4 for ; Thu, 27 Feb 2014 12:10:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:reply-to:organization :user-agent:mime-version:to:cc:subject:content-type; bh=L/SrhpwYtj9x5G/C6Rg10NTU3Wz/4ZCon4c/bNlM6d4=; b=JOCpKPEqNJsY6IK2hzvFK5q5OyhSvfTvqdLdMBTgMS/4EhhdvbCGs+4bg1aBho5fpG yor/XY72Zr810zlsfGJIHGvq3eOiuBZn9oiAk6DXZNpZIMhFdHG4achK+lKwbdQREuZn 8eBWrFCKgJxRv1Qr6KLwhXqEFlslI62ZgciVmv7mm5tAnGAB/unaYEaF7qepgfLHL675 vZtTeOw2xJ22fSyG9tx1qHmQgLYdCpSpSF88cNEc3GrnflWXt+L6/qegXhhrb/BVq/NJ 4fg540dyTC7IjM/xsF0v9tQGUrzL819sJSeWMb7RThx81OVuo/mbhzvE3TalX91jov7q EDWg== X-Gm-Message-State: ALoCoQlZDSS8oI8yYbB1E/0jzFF53N63j4I3wSAom/IE02ihvs0hbpdOJ9zMJp0vYOLQ9/Prs+IQ X-Received: by 10.236.36.16 with SMTP id v16mr487345yha.153.1393531839983; Thu, 27 Feb 2014 12:10:39 -0800 (PST) Received: from [192.168.1.11] ([12.218.78.23]) by mx.google.com with ESMTPSA id 23sm16983775yhj.5.2014.02.27.12.10.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Feb 2014 12:10:39 -0800 (PST) Message-ID: <530F9BC0.2020406@thorntonbrothers.biz> Date: Thu, 27 Feb 2014 15:10:40 -0500 From: Jeremy Thornton Reply-To: consolity@outlook.com Organization: Thornton Brothers Construction LLC User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org CC: pgsql-odbc@postgresql.org Subject: UUID, UUID-OSSP extension, and ODBC issue Content-Type: multipart/alternative; boundary="------------040505090507090109000300" X-Pg-Spam-Score: -1.2 (-) 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 This is a multi-part message in MIME format. --------------040505090507090109000300 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In using pgsqlODBC 09.03.0200 or any version prior that we have tested we seem to be having a performance decrease to only 625 inserts per second when using UUID as the primary key and using the UUID-OSSP to generate the default value of uuid_generate_v1() whereas if we generate the UUID client side for the primary key and send it with the values in the insert transaction we can increase it to 1500 inserts per second bypassing the UUID-OSSP extension. This is consistent and repeatable. The only change being made is Postgres generating the UUID using the extension or us passing the value in the insert statement. If Postgres generates it internally while inserting using PgAdmin then it can generate at near 2000 inserts per second so uuid-ossp shouldn't be the problem since it can keep up, but when used over default settings in ODBC it is 2/3 slower. The data being tested is the same in all cases. I am using a default System DSN on Windows 8.1 Pro (no special settings). Is this a bug or a settings adjustment that needs to be made? Spec summary: ODBC: pgsql 09.03.0200 with default settings; OS: Windows 8.1 Pro; Postgres version: 9.3.3; --------------040505090507090109000300 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit In using pgsqlODBC 09.03.0200 or any version prior that we have tested we seem to be having a performance decrease to only 625 inserts per second when using UUID as the primary key and using the UUID-OSSP to generate the default value of uuid_generate_v1() whereas if we generate the UUID client side for the primary key and send it with the values in the insert transaction we can increase it to 1500 inserts per second bypassing the UUID-OSSP extension. This is consistent and repeatable. The only change being made is Postgres generating the UUID using the extension or us passing the value in the insert statement. If Postgres generates it internally while inserting using PgAdmin then it can generate at near 2000 inserts per second so uuid-ossp shouldn't be the problem since it can keep up, but when used over default settings in ODBC it is 2/3 slower. The data being tested is the same in all cases. I am using a default System DSN on Windows 8.1 Pro (no special settings). Is this a bug or a settings adjustment that needs to be made?

Spec summary:
ODBC: pgsql 09.03.0200 with default settings;
OS: Windows 8.1 Pro;
Postgres version: 9.3.3;


--------------040505090507090109000300--