Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgsSm-0000kX-SR for pgsql-odbc@arkaria.postgresql.org; Wed, 12 May 2021 17:16:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lgsSl-0008FG-RL for pgsql-odbc@arkaria.postgresql.org; Wed, 12 May 2021 17:15:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lg8Lq-0000cY-1d for pgsql-odbc@lists.postgresql.org; Mon, 10 May 2021 16:01:46 +0000 Received: from mail-eopbgr660048.outbound.protection.outlook.com ([40.107.66.48] helo=CAN01-QB1-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lg8Ll-0000PY-0W for pgsql-odbc@lists.postgresql.org; Mon, 10 May 2021 16:01:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DBG+iuCG0onOtzphNT+38ACL7mLc7ECaGtUbhaB+lWN9wSIB7fnfYuJYJkdC4ZHyVJHxkPfba0QoheEHs4ZppTk18vxlTHIUQYuZY6BbPVO+F8yM3XU9NMW22KekCrRU5mD7UW51hchg+ThFfOJIrGxfd98CTKWTm1zXnYNwG6m8+pOVKvGfwRb0p5eau9WznPbsTbu3SzMdnMfdFYo5CLBQcMkkYWFnjxVFhXHBDcVFkD2Gv2z6dUmBmxKgwdc5Av5gPEDVg+hMETbiyim+9tXHY0abrltv6mxpvgNCCNxK8p5VM3L+P8iRxhyFdUBpjN93JeIzbPZXyUxMwznKxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UZ8DFFUem3bc0rRZdssH+gYXjm8W1Guu9nhzYL/oMzw=; b=kVZfPsVc0IacBERWnnUIYbQOQ8cRMJ/OSfHsdVaxo+FsjLrrQ47EUmRyj3gysz/ehh/5HAABvekxXfWpkElXwWpYIhPSpbJFZppNaqJeYVI28BF+ZiqH7sd/mcS0fchghoaeLQ1LNIjFgoFUatNTrvaRBftsz4P+JUrk55NFOU/kqOznUWReHG+iddhtsmEtBXz+ngiXsyKOJ7hFcXu3AMFpl/fzdfdxM8xLGhkn1Wx/Ocu2HArEoj8s7gQAEOtQojbSjf5jtHfa+CvKufU+oQc3j8IPGKenmWUlEZ3ZCmMEaJ/18LrG+7WUXIgIxGrGzTy3Eien2FJRuPsfi07TNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=axper.com; dmarc=pass action=none header.from=axper.com; dkim=pass header.d=axper.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axper.onmicrosoft.com; s=selector2-axper-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UZ8DFFUem3bc0rRZdssH+gYXjm8W1Guu9nhzYL/oMzw=; b=RxC3poe0gnVsvrQcyIhX1QAYhfE9z2KEp1w7hX+qXq8WuUZzooGXZLnKI8It3PI137bi9N/azts7pBIHMy7kAj1RvSytkfTDYQ9fRYCv/KELUvlEdxBqCJW/FgcT9K4BDRMEXtIpu7Gxj7BFlgPltDIu4QwDTBslUuh2iTwL7ZU= Received: from QB1PR01MB3681.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:32::16) by YQXPR01MB4310.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:11::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.31; Mon, 10 May 2021 16:01:38 +0000 Received: from QB1PR01MB3681.CANPRD01.PROD.OUTLOOK.COM ([fe80::c807:c909:b437:721e]) by QB1PR01MB3681.CANPRD01.PROD.OUTLOOK.COM ([fe80::c807:c909:b437:721e%4]) with mapi id 15.20.4108.031; Mon, 10 May 2021 16:01:36 +0000 From: ScheduleReports Monitoring To: "pgsql-odbc@lists.postgresql.org" Subject: ODBC Get-Data using FIll() gets timeout after 2 hours half of the time Thread-Topic: ODBC Get-Data using FIll() gets timeout after 2 hours half of the time Thread-Index: AddFtDxeOv0svYgdS2afYC7h1BUD2g== Date: Mon, 10 May 2021 16:01:36 +0000 Message-ID: Accept-Language: fr-CA, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.postgresql.org; dkim=none (message not signed) header.d=none;lists.postgresql.org; dmarc=none action=none header.from=axper.com; x-originating-ip: [208.88.110.10] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 97b17786-d581-4c37-c71e-08d913cce3de x-ms-traffictypediagnostic: YQXPR01MB4310: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: u+8Z0N4haL3nBBxTcRa3h9QJNfY1MPp8VJfK54Dtl8RTnlCc44NWDG80Kt9JJ2mv9e2ZNfzP0d/Yfu45YW/5Sdqid8G4tp8E3qUJcoYdv4Ks+nvr0BTKKAobvvTx7ZEz4jUkWNLJyesAFbqptDosAZm44Ru+sxi1aWDWf7OA2jEj9xfsf0oK2yij2CTVELgJ/arj7i31dqY8b8tyZWaoTADD0ClDLnv7U1hwSowOCI/QfsVdq+J7gCcCro/xJ1S+SO7cIN8387/A2yXTg4uAmCkGZFJ/p7a5++7NakGI+kczblRtKn8KypaUB6y/WqaL4Q9gS9aecvRVZINPwsI5o7SziCH1tH9xOOs74bW5sZ34c3p+DG+Tt6F3bSyAX2H2a8pxhDdin6olqPULpSl6uZaj58tGKNBYjAJBrNvcZTd9a4OK68sO7bVK1jxsmzD2fTIa3n7g6l+N/AFJQKA4IT7opJ61Halpeh5ezjr3b8TijXr3GrhGg670REqgsvRnij53TZ/Ax4qXTBIWyf6JvyLle+kSNaEPvU3gQzBUn00DQV29lOP/6jE7hPI/01Ft/GLFie2Pv/Oda2f9kcW/DfVWBF+kwpSP5UT0awC+x+E= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:QB1PR01MB3681.CANPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(39850400004)(376002)(396003)(136003)(366004)(346002)(6916009)(7696005)(8936002)(38100700002)(26005)(64756008)(52536014)(66446008)(66476007)(76116006)(66556008)(2906002)(66946007)(71200400001)(478600001)(316002)(5660300002)(122000001)(83380400001)(86362001)(55016002)(8676002)(6506007)(9686003)(33656002)(186003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?PKUNcIaEx1qP6yMUrhSB6qVEw9RVf7qHV/qmxlRURelIpOc9gm/74G0q6mgM?= =?us-ascii?Q?rQ9Z4vW6Nd2tZszfMB3kWTSwrbBo07/rUAXX5ofvN7Z41ztTBWgcGmVzbgHc?= =?us-ascii?Q?v8Qk2/W/80y7b9TD2N5dqMHnYyeFugWW3QRTA2SB9YrmX1a5jyhab6lmVLlM?= =?us-ascii?Q?oVOUCot2JpSa7DyCaxv3O6iDK0orh02IMkjd1zx9ZebyNt0VeB1/vOACjEkz?= =?us-ascii?Q?53Ad3TjbdR5gtEiu1kRF1ZlMbESfkhbpZSqeznB2K+FHMBCyCeIk9xGVERx2?= =?us-ascii?Q?2AAMV5AiU433BnsD7EldQblsuK8zzJr1Ceo+343m3oNwrTRccLnm3Pmg5sUq?= =?us-ascii?Q?5o4WrT+vevkYD4CoYmju9YwIaT85bh/54UydVKUCjkrnboLKtNRE8U40aHRK?= =?us-ascii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faCqm9ynXZ5MjvJqg0ahrkXrJ2?= =?us-ascii?Q?DBMtOO8RviOeehg39u7liAI+?= x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_QB1PR01MB36818619C4E7797EE63A4836DB549QB1PR01MB3681CANP_" MIME-Version: 1.0 X-OriginatorOrg: axper.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: QB1PR01MB3681.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 97b17786-d581-4c37-c71e-08d913cce3de X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2021 16:01:36.6120 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 25a5f507-f32a-4534-ba73-9466da238c43 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BcNHA9GkSnXKGQ5DiFd9BJrsgwomDAhm/XplTsNZy8K0dkm2kU1ohXo5xk+Lvj9IgcXyF6t03KjlPeQmtqHU06xosBi1Occz+aLq/wNIOs8J4hn1J3YIHMhhHKnvgzMl X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQXPR01MB4310 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_QB1PR01MB36818619C4E7797EE63A4836DB549QB1PR01MB3681CANP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'm using PostgreSQL 12.3 (Ubuntu 12.3-1.pgdg18.04+1) on x86_64-pc-linux-g= nu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit I have a daily scheduled job that calls a PowerShell script. This ps1 scrip= t do a big SELECT on an ODBC connection to postgresql server above. The que= ry itself completes between 3 and 6 minutes and return around 3500 records.= We looked on the postgres logs for this. 50% of the time I can say, the job takes 2:00:30 to run and failed. However= , in the postgres logs, we can see that the query completed in less than 6 = minutes. Also, when it fails, it gives this: Executed as user: NT Service\SQLSERVERAGENT. A job step received an error a= t line 94 in a PowerShell script. The corresponding line is '(New-Object sy= stem.Data.odbc.odbcDataAdapter($cmd)).fill($ds) | out-null '. Correct the = script and reschedule the job. The error information returned by PowerShell= is: 'Exception calling "Fill" with "1" argument(s): "The connection has be= en disabled." '. Process Exit Code -1. I assume the query is fine. All my other ps1 script with smaller queries an= d ODBC Fill() seem to work fine always, event those taking 2-3 minutes. I don't know what I should check or what could be related to this. Any idea what we should look at? Thanks a lot David Parenteau --_000_QB1PR01MB36818619C4E7797EE63A4836DB549QB1PR01MB3681CANP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I’m using  PostgreSQL 12.3 (Ubuntu 12.3-1= .pgdg18.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu= 1~18.04) 7.5.0, 64-bit

 

I have a daily scheduled job that calls a PowerShell= script. This ps1 script do a big SELECT on an ODBC connection to postgresq= l server above. The query itself completes between 3 and 6 minutes and retu= rn around 3500 records. We looked on the postgres logs for this.

50% of the time I can say, the job takes 2:00:30 to = run and failed. However, in the postgres logs, we can see that the query co= mpleted in less than 6 minutes. Also, when it fails, it gives this:

 

Executed as user: NT Service\SQLSERVERAGENT. A job s= tep received an error at line 94 in a PowerShell script. The corresponding = line is '(New-Object system.Data.odbc.odbcDataAdapter($cmd)).fill($ds) | ou= t-null  '. Correct the script and reschedule the job. The error information returned by PowerShell is: 'Exce= ption calling "Fill" with "1" argument(s): "The co= nnection has been disabled."  '.  Process Exit Code -1.=

 

I assume the query is fine. All my other ps1 script = with smaller queries and ODBC Fill() seem to work fine always, event those = taking 2-3 minutes.

I don’t know what I should check or what could= be related to this.

Any idea what we should look at?

Thanks a lot

David Parenteau

--_000_QB1PR01MB36818619C4E7797EE63A4836DB549QB1PR01MB3681CANP_--