Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZfYS-0008Cv-15 for pgsql-odbc@arkaria.postgresql.org; Mon, 24 Jul 2017 15:45:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dZfYR-000125-Jt for pgsql-odbc@arkaria.postgresql.org; Mon, 24 Jul 2017 15:45:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dYxTH-00049I-KL for pgsql-odbc@postgresql.org; Sat, 22 Jul 2017 16:41:39 +0000 Received: from mail.800link.com ([64.37.76.8]) by makus.postgresql.org with esmtps (TLS1.1:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dYxTE-00017c-Iv for pgsql-odbc@postgresql.org; Sat, 22 Jul 2017 16:41:37 +0000 X-Footer: ODAwbGluay5jb20= Received: from [75.132.156.105] ([75.132.156.105]) (authenticated user sbeil@800link.com) by mail.800link.com (Kerio Connect 9.2.4) with ESMTPSA for pgsql-odbc@postgresql.org; Sat, 22 Jul 2017 11:41:33 -0500 Date: Sat, 22 Jul 2017 11:41:33 -0500 Subject: Static buffer is not thread safe X-Mailer: Kerio Connect 9.2.4/Kerio Connect Client X-User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 Message-ID: <877641750-63580@mail.800link.com> From: Scott Beil To: pgsql-odbc@postgresql.org X-Priority: 3 Importance: Normal MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-wqoxFi2jy9UxOKxC+QfF" 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 --=-wqoxFi2jy9UxOKxC+QfF Content-Type: text/plain; charset="utf-8" Hi psqlODBC Team, A few days ago, I sent an email with the subject '"relation does not exist" errors with psqlODBC' which described an intermittent error I observed and included a demo project to recreate the problem. The error was 'column "column_name" of relation "table_name" does not exist'. I haven't heard anything back so I don't know what the status is, but I have found the source of the problem. In the misc.c source file, the function quote_table() declares a static buffer that is not thread safe: static char buf[200]; Thanks, Scott --=-wqoxFi2jy9UxOKxC+QfF Content-Type: text/html; charset="utf-8"
Hi psqlODBC Team,

A few days ago, I sent an email with the subject '"relation does not exist" errors with psqlODBC' which described an intermittent error I observed and included a demo project to recreate the problem. The error was 'column "column_name" of relation "table_name" does not exist'.

I haven't heard anything back so I don't know what the status is, but I have found the source of the problem. In the misc.c source file, the function quote_table() declares a static buffer that is not thread safe:

static char buf[200];

Thanks,

Scott
--=-wqoxFi2jy9UxOKxC+QfF--