Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VGSLz-0004vl-P2 for pgsql-odbc@arkaria.postgresql.org; Mon, 02 Sep 2013 11:31:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VGSLy-0007IE-JF for pgsql-odbc@arkaria.postgresql.org; Mon, 02 Sep 2013 11:31:30 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VGSLw-0007I5-LK for pgsql-odbc@postgresql.org; Mon, 02 Sep 2013 11:31:28 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VGSLs-0006iv-DB for pgsql-odbc@postgresql.org; Mon, 02 Sep 2013 11:31:26 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id F27212929A for ; Mon, 2 Sep 2013 04:31:23 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id EF6C8402C1 for ; Mon, 2 Sep 2013 04:31:23 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id D59FA120030 for ; Mon, 2 Sep 2013 04:38:10 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA for ; Mon, 2 Sep 2013 04:38:09 -0700 (PDT) Message-ID: <52247708.9030100@vmware.com> Date: Mon, 02 Sep 2013 14:31:20 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: "pgsql-odbc@postgresql.org" Subject: VACUUM cannot be run in a transaction block Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -6.6 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Hi, If you try to run VACUUM with SQLPrepare/SQLExecute, and auto-commit is disabled, and UseServerSidePrepare=1 (which is now the default in git master), you get an error: ERROR: VACUUM cannot run inside a transaction block There is some code in place to avoid this in UseServerSidePrepare=0 mode. The driver looks at the statement type (by looking at the first word of the statement) and skips the implicit BEGIN if it's a VACUUM or one of the other commands that cannot be run in a transaction block. However, the extended query protocol code path didn't do that. I just pushed a fix for that, but I thought this warranted to be mentioned on the mailing list. PS. Can we get 9.3 version packaged very soon? The server 9.3.0 server version will be wrapped today, and will be announced on Monday Sep 9th. We really should have a 9.3 labeled version of the driver available by then. - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc