Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCZox-0006jc-Ld for pgsql-general@arkaria.postgresql.org; Wed, 17 Oct 2018 00:36:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gCZov-0004H1-Mt for pgsql-general@arkaria.postgresql.org; Wed, 17 Oct 2018 00:36:17 +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.89) (envelope-from ) id 1gCZou-0004Gt-HL for pgsql-general@lists.postgresql.org; Wed, 17 Oct 2018 00:36:17 +0000 Received: from sonic314-14.consmr.mail.bf2.yahoo.com ([74.6.132.124]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCZoq-0006mZ-E7 for pgsql-general@postgresql.org; Wed, 17 Oct 2018 00:36:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1539736570; bh=a3wqMzzyCXTgFUxpaVXb7UImhgmY2SUbuieEjRRkJEc=; h=From:Subject:Date:References:To:In-Reply-To:From:Subject; b=KW9pv6essiqHlEL8Xt3v1bgF3HqXfvx5FDz0w+clLJI7gOFfJIvu8QVog6DG/YNe3Zlh5QyNLIXaRZAi7mZN+EIDQ6XAmrlbzzke/SrjYqoahfC4bDWhOzorr/XIq8Q6mFMh96BgPFfehwWCnUpILwe4HS+xVc48EmDSWWyRx1fy/zU9y28fLyQAo/k3F+yThxQsFlnnilFh6IBBMIC7xKbDzHNheIt7zCy9DxXBAop0UK8ycNJ0utbEtB++gvs9xhvnp3kmXOTjggBj0jPzV4M4+Vb8qgMHkK5tkXgz47r3Py54xJVRTm2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vxs38euVNMZQXQ5i5kJS6iy 5hdOWcThY3ye7SR8DcBVXnYG5dT6fUoNdm_zhIKb0xylWZJe.iM5r Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.bf2.yahoo.com with HTTP; Wed, 17 Oct 2018 00:36:10 +0000 Received: from c-69-248-80-3.hsd1.nj.comcast.net (EHLO [10.0.0.217]) ([69.248.80.3]) by smtp401.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 25f7b6193e6b450241a3b0de2e127971 for ; Wed, 17 Oct 2018 00:36:06 +0000 (UTC) From: Ravi Krishna Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: postgres server process crashes when using odbc_fdw Date: Tue, 16 Oct 2018 20:36:04 -0400 References: <1FEA4DD2-7B6A-4444-A4FD-C7B03E96BBB6@aol.com> To: PostgreSQL Mailing Lists In-Reply-To: <1FEA4DD2-7B6A-4444-A4FD-C7B03E96BBB6@aol.com> Message-Id: <39636FD1-D9F8-4BEF-B692-D604EF5FF1E2@aol.com> X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I enabled ODBC trace . Attached trace log. Had to edit connection = details and snipped few repetitive lines as I ran the same sql multiple = times Connection Out = [DSN=3DBLUE;UID=3D*;PWD=3D***;DATABASE=3D***;HOST...] [ODBC][4248][1539734369.611042][SQLGetInfo.c][554] Entry: Connection =3D 0x2150e90 Info Type =3D SQL_IDENTIFIER_QUOTE_CHAR (29) Info Value =3D 0x7ffdaf8700ee Buffer Length =3D 2 StrLen =3D (nil) [ODBC][4248][1539734369.611055][SQLGetInfo.c][617] Exit:[SQL_SUCCESS] [ODBC][4248][1539734369.611067][SQLGetInfo.c][554] Entry: Connection =3D 0x2150e90 Info Type =3D SQL_CATALOG_NAME_SEPARATOR (41) Info Value =3D 0x7ffdaf8700ee Buffer Length =3D 2 StrLen =3D (nil) [ODBC][4248][1539734369.611075][SQLGetInfo.c][617] Exit:[SQL_SUCCESS] [ODBC][4248][1539734369.611092][SQLAllocHandle.c][540] Entry: Handle Type =3D 3 Input Handle =3D 0x2150e90 [ODBC][4248][1539734369.611122][SQLAllocHandle.c][1081] Exit:[SQL_SUCCESS] Output Handle =3D 0x2167610 [ODBC][4248][1539734369.611138][SQLExecDirect.c][240] Entry: Statement =3D 0x2167610 SQL =3D [select fld1,fld2 from = rkrishna.fdwtest][length =3D 38 (SQL_NTS)] [ODBC][4248][1539734369.612221][SQLExecDirect.c][503] Exit:[SQL_SUCCESS] [ODBC][4248][1539734369.612242][SQLNumResultCols.c][156] Entry: Statement =3D 0x2167610 Column Count =3D 0x7ffdaf87015e [ODBC][4248][1539734369.612257][SQLNumResultCols.c][248] Exit:[SQL_SUCCESS] Count =3D 0x7ffdaf87015e -> 2 [ODBC][4248][1539734369.612282][SQLFetch.c][162] Entry: Statement =3D 0x2167610 [ODBC][4248][1539734369.612303][SQLFetch.c][348] Exit:[SQL_SUCCESS] [ODBC][4248][1539734369.612314][SQLNumResultCols.c][156] Entry: Statement =3D 0x2167610 Column Count =3D 0x7ffdaf8701ca [ODBC][4248][1539734369.612321][SQLNumResultCols.c][248] Exit:[SQL_SUCCESS] Count =3D 0x7ffdaf8701ca -> 2 [ODBC][4248][1539734369.612334][SQLDescribeCol.c][247] Entry: Statement =3D 0x2167610 Column Number =3D 1 Column Name =3D 0x2164b78 Buffer Length =3D 255 Name Length =3D 0x7ffdaf8701cc Data Type =3D 0x7ffdaf8701ce Column Size =3D 0x7ffdaf8701d8 Decimal Digits =3D 0x7ffdaf8701d0 Nullable =3D 0x7ffdaf8701d2 [ODBC][4248][1539734369.612394][SQLDescribeCol.c][497] Exit:[SQL_SUCCESS] =20 Column Name =3D [FLD1] =20 Data Type =3D 0x7ffdaf8701ce -> 4 =20= Column Size =3D 0x7ffdaf8701d8 -> 10 = =20 Decimal Digits =3D 0x7ffdaf8701d0 -> 0 = =20 Nullable =3D 0x7ffdaf8701d2 -> 1 [ODBC][4248][1539734369.612409][SQLDescribeCol.c][247] Entry: Statement =3D 0x2167610 Column Number =3D 2 Column Name =3D 0x2164b78 Buffer Length =3D 255 Name Length =3D 0x7ffdaf8701cc Data Type =3D 0x7ffdaf8701ce Column Size =3D 0x7ffdaf8701d8 Decimal Digits =3D 0x7ffdaf8701d0 Nullable =3D 0x7ffdaf8701d2 [ODBC][4248][1539734369.612419][SQLDescribeCol.c][497] Exit:[SQL_SUCCESS] =20 Column Name =3D [FLD2] =20 Data Type =3D 0x7ffdaf8701ce -> 1 =20= Column Size =3D 0x7ffdaf8701d8 -> 1 = =20 Decimal Digits =3D 0x7ffdaf8701d0 -> 0 = =20 Nullable =3D 0x7ffdaf8701d2 -> 1 [ODBC][4787][1539734703.466709][__handles.c][460] Exit:[SQL_SUCCESS] Environment =3D 0x2432cd0 [ODBC][4787][1539734703.466760][SQLSetEnvAttr.c][189] Entry: Environment =3D 0x2432cd0 Attribute =3D SQL_ATTR_ODBC_VERSION Value =3D 0x3 StrLen =3D 0 [ODBC][4787][1539734703.466769][SQLSetEnvAttr.c][363] Exit:[SQL_SUCCESS] [ODBC][4787][1539734703.466776][SQLAllocHandle.c][375] Entry: Handle Type =3D 2 Input Handle =3D 0x2432cd0 [ODBC][4787][1539734703.466783][SQLAllocHandle.c][493] Exit:[SQL_SUCCESS] Output Handle =3D 0x24bc7f0 [ODBC][4787][1539734703.466794][SQLDriverConnect.c][726] Entry: Connection =3D 0x24bc7f0 Window Hdl =3D (nil) Str In =3D [DSN=3DBLUE][length =3D 8 (SQL_NTS)] Str Out =3D 0x7ffec5a2d370 Str Out Max =3D 1024 Str Out Ptr =3D 0x7ffec5a2d34e Completion =3D 1 UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE '' connection details removed. [ODBC][4787][1539734705.934065][SQLAllocHandle.c][540] Entry: Handle Type =3D 3 Input Handle =3D 0x24bc7f0 [ODBC][4787][1539734705.934091][SQLAllocHandle.c][1081] Exit:[SQL_SUCCESS] Output Handle =3D 0x24fc9e0 [ODBC][4787][1539734705.934106][SQLExecDirect.c][240] Entry: Statement =3D 0x24fc9e0 SQL =3D [select count(*) from = rkrishna.fdwtest][length =3D 37 (SQL_NTS)] [ODBC][4787][1539734705.935348][SQLExecDirect.c][503] Exit:[SQL_SUCCESS] [ODBC][4787][1539734705.935389][SQLFetch.c][162] Entry: Statement =3D 0x24fc9e0 [ODBC][4787][1539734705.935431][SQLFetch.c][348] Exit:[SQL_SUCCESS] [ODBC][4787][1539734705.935466][SQLGetData.c][237] Entry: Statement =3D 0x24fc9e0 Column Number =3D 1 Target Type =3D -27 SQL_C_SBIGINT Buffer Length =3D 0 Target Value =3D 0x7ffec5a2d7d0 StrLen Or Ind =3D 0x7ffec5a2d7d8 [ODBC][4787][1539734705.935515][SQLGetData.c][501] Exit:[SQL_SUCCESS] =20 Buffer =3D [Data...] =20 Strlen Or Ind =3D 0x7ffec5a2d7d8 -> 8 [ODBC][4787][1539734705.935552][SQLFreeHandle.c][381] Entry: Handle Type =3D 3 Input Handle =3D 0x24fc9e0 [ODBC][4787][1539734705.936176][SQLFreeHandle.c][491] Exit:[SQL_SUCCESS] [ODBC][4787][1539734705.936195][SQLFreeHandle.c][284] Entry: Handle Type =3D 2 Input Handle =3D 0x24bc7f0 [ODBC][4787][1539734705.936205][SQLFreeHandle.c][298]Error: HY010 [ODBC][4787][1539734705.936222][SQLFreeHandle.c][219] Entry: Handle Type =3D 1 Input Handle =3D 0x2432cd0 [ODBC][4787][1539734705.936233][SQLFreeHandle.c][233]Error: HY010 [ODBC][4787][1539734705.936362][__handles.c][460] Exit:[SQL_SUCCESS] Environment =3D 0x24fbb30 [ODBC][4787][1539734705.936407][SQLSetEnvAttr.c][189] Entry: Environment =3D 0x24fbb30 Attribute =3D SQL_ATTR_ODBC_VERSION Value =3D 0x3 StrLen =3D 0 [ODBC][4787][1539734705.936419][SQLSetEnvAttr.c][363] Exit:[SQL_SUCCESS] [ODBC][4787][1539734705.936431][SQLAllocHandle.c][375] Entry: Handle Type =3D 2 Input Handle =3D 0x24fbb30 [ODBC][4787][1539734705.936453][SQLAllocHandle.c][493] Exit:[SQL_SUCCESS] Output Handle =3D 0x2526b90 [ODBC][4787][1539734705.936466][SQLDriverConnect.c][726] Entry: Connection =3D 0x2526b90 Window Hdl =3D (nil) Str In =3D [DSN=3DBLUE][length =3D 8 (SQL_NTS)] Str Out =3D 0x7ffec5a2d3a0 Str Out Max =3D 1024 Str Out Ptr =3D 0x7ffec5a2d37e Completion =3D 1 UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE '' [ODBC][4787][1539734708.340223][SQLExecDirect.c][240] Entry: Statement =3D 0x24fe2e0 SQL =3D [select count(*) from = rkrishna.fdwtest][length =3D 37 (SQL_NTS)] [ODBC][4787][1539734708.380473][SQLExecDirect.c][503] Exit:[SQL_SUCCESS] [ODBC][4787][1539734708.380501][SQLFetch.c][162] Entry: Statement =3D 0x24fe2e0 [ODBC][4787][1539734708.380523][SQLFetch.c][348] Exit:[SQL_SUCCESS] [ODBC][4787][1539734708.380536][SQLGetData.c][237] Entry: Statement =3D 0x24fe2e0 Column Number =3D 1 Target Type =3D -27 SQL_C_SBIGINT Buffer Length =3D 0 Target Value =3D 0x7ffec5a2d800 StrLen Or Ind =3D 0x7ffec5a2d808 [ODBC][4787][1539734708.380555][SQLGetData.c][501] Exit:[SQL_SUCCESS] =20 Buffer =3D [Data...] =20 Strlen Or Ind =3D 0x7ffec5a2d808 -> 8 [ODBC][4787][1539734708.380567][SQLFreeHandle.c][381] Entry: Handle Type =3D 3 Input Handle =3D 0x24fe2e0 [ODBC][4787][1539734708.381263][SQLFreeHandle.c][491] Exit:[SQL_SUCCESS] [ODBC][4787][1539734708.381281][SQLFreeHandle.c][284] Entry: Handle Type =3D 2 Input Handle =3D 0x2526b90 [ODBC][4787][1539734708.381292][SQLFreeHandle.c][298]Error: HY010 [ODBC][4787][1539734708.381314][SQLFreeHandle.c][219] Entry: Handle Type =3D 1 Input Handle =3D 0x24fbb30 [ODBC][4787][1539734708.381326][SQLFreeHandle.c][233]Error: HY010 [ODBC][4787][1539734708.381400][__handles.c][460] Exit:[SQL_SUCCESS] Environment =3D 0x2519280 [ODBC][4787][1539734708.381418][SQLSetEnvAttr.c][189] Entry: Environment =3D 0x2519280 Attribute =3D SQL_ATTR_ODBC_VERSION Value =3D 0x3 StrLen =3D 0 [ODBC][4787][1539734708.381429][SQLSetEnvAttr.c][363] Exit:[SQL_SUCCESS] [ODBC][4787][1539734708.381440][SQLAllocHandle.c][375] Entry: Handle Type =3D 2 Input Handle =3D 0x2519280 [ODBC][4787][1539734708.381452][SQLAllocHandle.c][493] Exit:[SQL_SUCCESS] Output Handle =3D 0x253d320 [ODBC][4787][1539734708.381465][SQLDriverConnect.c][726] Entry: Connection =3D 0x253d320 Window Hdl =3D (nil) Str In =3D [DSN=3DBLUE][length =3D 8 (SQL_NTS)] Str Out =3D 0x7ffec5a2d5b0 Str Out Max =3D 1024 Str Out Ptr =3D 0x7ffec5a2d58e Completion =3D 1 UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE ''