Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVJx5-0004EH-3q for pgsql-interfaces@arkaria.postgresql.org; Wed, 12 Jul 2017 15:53:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dVJx4-0001pu-BL for pgsql-interfaces@arkaria.postgresql.org; Wed, 12 Jul 2017 15:53:22 +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 1dVJx1-0001lh-Lo for pgsql-interfaces@postgresql.org; Wed, 12 Jul 2017 15:53:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dVJwz-0000iG-Aa for pgsql-interfaces@postgresql.org; Wed, 12 Jul 2017 15:53:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v6CFrF2Y005245; Wed, 12 Jul 2017 11:53:15 -0400 From: Tom Lane To: Scott Beil cc: pgsql-interfaces@postgresql.org Subject: Re: Sporadic "relation does not exist" errors with psqlODBC In-reply-to: <1136454500-180960@mail.800link.com> References: <1136454500-180960@mail.800link.com> Comments: In-reply-to Scott Beil message dated "Tue, 11 Jul 2017 19:29:47 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <5243.1499874795.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 12 Jul 2017 11:53:15 -0400 Message-ID: <5244.1499874795@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-interfaces Precedence: bulk Sender: pgsql-interfaces-owner@postgresql.org Scott Beil writes: > Every once in a while I get this error: > ERROR: column "column_name" of relation "table_name" does not exist > - The problem only occurs when under load.=C2=A0 > - The database version is=C2=A09.6.3 > - The problem exists in ODBC versions=C2=A009.03.0300 and=C2=A009.06.0310= , but not in=C2=A009.00.0310 (versions not mentioned have not been tested) > - Two identical applications are running simultaneously. One uses 09.06.0= 310, the other uses 09.00.0310. The one using 09.06.0310 exhibits the error= , the one using 09.00.0310 does not. By the way, the app using 09.00.0310 t= hat does not produce the error is typically under a heavier load than the o= ne that does. > - The column name in the error is one I recognize, but it belongs to anot= her table than the one reported in the error. > - To the best of my knowledge, only inserts and updates are affected. It seems unlikely to me that the ODBC version has much to do with this. I can imagine server bugs that would cause it ... but actually finding such a bug, if it exists, is harder. Have you checked that the statements suffering the error are sane (that is, they actually name valid table/column combinations)? Is there any other commonality in the statements suffering the error? Can you correlate occurrences of the error with DDL being executed in other sessions? > Of course the big problem here is how to reproduce or capture the problem= in a log when it is sporadic and only occurs under load. I would like to s= ee this problem resolved and am willing to do my part. What I'd think about is trying to boil down/sanitize your workload into something you can submit as a self-contained test case. If you can do anything that increases the frequency of the error, better yet. regards, tom lane --=20 Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-interfaces