Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qNuSi-006JKW-FS for pgsql-odbc@arkaria.postgresql.org; Mon, 24 Jul 2023 12:14:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qNuSg-009uko-UB for pgsql-odbc@arkaria.postgresql.org; Mon, 24 Jul 2023 12:14:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qNuCB-009qDm-9q for pgsql-odbc@lists.postgresql.org; Mon, 24 Jul 2023 11:57:47 +0000 Received: from mail-dm6nam10on2061b.outbound.protection.outlook.com ([2a01:111:f400:7e88::61b] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qNuC5-001FSb-Bu for pgsql-odbc@postgresql.org; Mon, 24 Jul 2023 11:57:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Liv7yITvofmaOOn10y/DoUIku5bJP6EPQ1UO1exSvjJAnqSU9LEXtPkpN47yzzZUHTI+207JBH4b3vIYmwWuOFiEKaBw/+M8VqdLIxEX347S+lbDdkjugXnVBc0RxDyRF3m9ymYZ18QZsK+KVBW7LbFgTFxE3Yij30767Hgvzite80vC/XQ5PFZoNGTbVZZznCIcGM04G0XYjTOFzdNDsm0FH5vN1ymXeGHw83P9gZS5Q/HM8jc1iaI+FvFPu3MCSIKas5/YV4AHJvvIloLCL4e9g/bmAx9V37LeyBpg29WyBmiDbvmkzOxZ/0cpUc3wK3E+3y11OazZXDSemMQppw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2CCgLE9cD6WFOD8ahVlxuB29+CZ/kVRdjUEVVW/TFKY=; b=dIUJprMuz4569fDR6LSIy8BYUIhYT3YC04Qq4Nqd41WKX9mjNfkyZoY1/qmCiqZ5FUdP7bOrPux9+GnIoULi6Xi7mvtG7OGd0+ttq3+pgv75JIxOSMUFny5bqYJHymAbQ2liBqrBf/awo7iAz8yyv0eCSEP7mXsXPNgGMAe/mBaELY7jWj+iNpEk/yeMMo1whP2pAGBfUVnGoliMBcJW+LGsNAY1MIlSHKw+KdaEelql6d/c7GaEs2oFQ2meU8/tW9RReYhlAZLO0y3rKVQ1UlB0swDPFbS+L2vjOnFXQM+XeT5VpcYLEGmdKEg5eR/ysCayhRtAR4+C7c60OCMRrg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=netapp.com; dmarc=pass action=none header.from=netapp.com; dkim=pass header.d=netapp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netapp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2CCgLE9cD6WFOD8ahVlxuB29+CZ/kVRdjUEVVW/TFKY=; b=vLcDuRAvEcoLEQX9K7lh43FINyM//PjdUXB80iMA6cwAZwHUydkiYVBX4gyTIU2MuR1bOMnzUBc05qZD+M81JYluS30vIBHe5ecrWo5SPkr+m2yoWpumj3h+q0s6z5wz7Kpiq79acCAswU2mJWhL8PJs9YZkBgzGTk5C1XBBCJRIix8FtJwXuxqntEIdFhhchacRo4hvm9BGZioid9f4LYP3VagmuysanFhI6NX4oWBY8GgDAqUStuqGH+XCsI6y2g8Quhil/R5VUnYV+/09ebvIM4jpZztcMmkTACiZx+hwg86I1caqp8wUyiZpHhN8pc6vja7CfjYpO35zTGRJbA== Received: from SN4PR0601MB8613.namprd06.prod.outlook.com (2603:10b6:806:215::21) by SJ0PR06MB8678.namprd06.prod.outlook.com (2603:10b6:a03:3e9::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.31; Mon, 24 Jul 2023 11:57:38 +0000 Received: from SN4PR0601MB8613.namprd06.prod.outlook.com ([fe80::3285:1be3:10d0:1eb4]) by SN4PR0601MB8613.namprd06.prod.outlook.com ([fe80::3285:1be3:10d0:1eb4%3]) with mapi id 15.20.6609.031; Mon, 24 Jul 2023 11:57:38 +0000 From: "M, Anbazhagan" To: "pgsql-odbc@postgresql.org" Subject: Reg: libpq support in pgODBC driver Thread-Topic: Reg: libpq support in pgODBC driver Thread-Index: AQHZviTGRLmCd5bJXEGGkzDJ6+wbKA== Date: Mon, 24 Jul 2023 11:57:38 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=netapp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN4PR0601MB8613:EE_|SJ0PR06MB8678:EE_ x-ms-office365-filtering-correlation-id: 14da657d-f8c8-4166-351b-08db8c3d2d56 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: M8kj9DlbOOangM6ApOP7MJSed2haIIInsFdB7f2+dGHAyAzYStff8x0rUrx/OqAyRRblXULzAfLWelMffVdCUPVMKnNzU203ZQEz7W8m0iyuYxISYK9U/beT0H7xtif7vRwCKx7jmqsZGKuRGvrhclIZchqaAEsrTtg/FNZ/G5Wgb7nh28c5XIoFCA3lR2BCh8R9pFod6ILR5pr1GeqIkbiU65W1WD8lvULbpeVX0uvNfOAn14giMVWVNCyppH7FI9iT8ogN2a+8qo2k6xDyqp+2KSrBjLYxfurGg9ByuCySxLwa09LvDimTmTP20aqL/ukhk9kMc8knhOYKMqeLQjf4hTVaQVsqefyzjwUZ63K2xd2Yv67gjU1tpk7s4BZhNEKQaxVSAOQSPmDl4IEYEaJoqpj5+t9ROP7Ov51PVQjrYDrkba6B+jHKNQS34bsfbeUI2WYQIts4KFEBxFMebOL2s6d2bkTPSmnZyiCyotS0R8F7kv83UiLUtX59gYH5T8CbhN96yllor+ELKDlKY5EDUG68XXLeESDpf0X0ZrExW5gk1glPbXnEmmG3GUwh0jaVDsc0Q7nudpoaa1/DawN1VkdMAkovLnKKinKf4mzJj23M5z56PBCB7IitTw3J x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN4PR0601MB8613.namprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(376002)(39860400002)(396003)(366004)(451199021)(66899021)(83380400001)(38100700002)(122000001)(52536014)(38070700005)(86362001)(33656002)(55016003)(4744005)(478600001)(2906002)(186003)(26005)(6506007)(7696005)(9686003)(71200400001)(8936002)(5660300002)(8676002)(91956017)(316002)(76116006)(41300700001)(66446008)(64756008)(66476007)(6916009)(66556008)(66946007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?eES9jZm8LSb5a9PLrIIOg7Uff87Nlmv4eRlHNk71fCBatX6oMtLGj6Bz?= =?Windows-1252?Q?1uhsuUrs0YzOFSrVc1EKx2m3pyuD/mFe9992XoqCY3F811c5cYCDGduA?= =?Windows-1252?Q?e3NeMN/XbAStVU6R9Uh3gCMukaCKl1B0aqYJbYb2WRvGDDKGLml6sF0z?= =?Windows-1252?Q?BNs3i09lcfZFx6hXV5Kfi0RDYtZn2YUtDX+2VIRYF6Y9B5KHJVR5dLLY?= =?Windows-1252?Q?JNO2H5/J+nWEnE+C6UkA8KPtLEDGj4MqikTe7BwqdKKinvg2TpyzF5E+?= =?Windows-1252?Q?C+g9w+GM0418HDC3Tz0cu1L3sArAJIdV1evxNOpEr86ZrvJe6wnxb/zU?= =?Windows-1252?Q?Rz96+bFGmQwDiU+VEsdbWRnnwvchP2LOfXrm82oh93fTeO04sM5E9FUq?= =?Windows-1252?Q?Q636LNL7hvrXblBqOX/z0ufLWcNlr1WTajuLqVhFcnOUoziNHdmlMGFR?= =?Windows-1252?Q?7FAk/bVdxt8NGTddDl+vKoX+qU8/08Xxrj5srLRN1DqgyNw+GCWMnUGM?= =?Windows-1252?Q?Yc4mmozKpa334tLX9EgT6N6hdJp5PPMSgGuckLUZqR2qf0oBiZEQqQ+5?= =?Windows-1252?Q?K4a30rL7SxyO509TwH0/W7N+0N6Ldc4aH8pqA+cbkG8MeQQOUB4PvRrN?= =?Windows-1252?Q?ba7m6lN4vz5ZU7DokiHThP0Hy2vYX/LA4y7E4fo8Ed5TmsUB7Gcsokg4?= =?Windows-1252?Q?FtjjLY7KvNwMWxm6FZRkYGVd6p6bWsbtNOj83MaYiqN2knQzwsGWFWpZ?= =?Windows-1252?Q?EKOCvPtTqH8CKCyYEshWrsmbcyD4YCJJzG99AwMO5HAExsHuzKDG5VQY?= =?Windows-1252?Q?F+jVJ5or20/mFZAFb3dw/6Iidk99dv+jB3xOfodqwcGkIvCTu1UiKXvi?= =?Windows-1252?Q?2pJEBcs8wfLsjNlkfQUUueFBSDEQapIIVF2d+uUHNzCwl27m9rCGvog9?= =?Windows-1252?Q?MonQRK4rB56MOkQPBmUivbQZmZ85E8owLSW2qihEajS+EU6HnnA8T4sM?= =?Windows-1252?Q?EjMaRG5W7Fo7mWgY8DriWdnrumNp4ORsl5bHbSY04ZiVBVt8/5LVgGFH?= =?Windows-1252?Q?W5+2XcpEI2yktSJssaiOuOnGXwOD6iaDs3l8IxDItr8w0iHd6OsAyFny?= =?Windows-1252?Q?59XcxmV1QwyR24akUAQn6J2X18Up2dJ1Zom2UWlaDqJB0DBxsoQ7OFpg?= =?Windows-1252?Q?QCrGU3tANRMHW0PqV4BC75zdIINLjQM3AET2ZzJcqWFZ6wQ3PwLBeoar?= =?Windows-1252?Q?zikGfny3sRE/g7OMWWBrq0DnpW2/w+/nEl5XAiRgggBUwGTnvCxumnHO?= =?Windows-1252?Q?6hoL+4c0Hma3XKavuoHDGKtdvmYxcsJhtSMhS4HkbMLNrL3rR0l89szv?= =?Windows-1252?Q?WIf6AUE+5eGFm+y/EwN08yd5TMMtVFloLQLtxkn0VWfzrH6XNXUbJ450?= =?Windows-1252?Q?Gciczmn8JRoDFlR+V14ygOSFmBffYKwkeOZfQaS9Gkotd3ry6T8lcqII?= =?Windows-1252?Q?y/se1OZnpHaW0HHKxCloUo3ApwLZ+se7LM1IVV2BGwUaaMQwwp0knuCr?= =?Windows-1252?Q?SCjjSlwR8Linn2HMRm73ngLzF4Nk0iroqOMj0KtkjVr8FFAnHZTF8eG7?= =?Windows-1252?Q?xdGy7a5JOrlOBWsXwuVtMNjQJyvaQn42ff8SDF3Gj9332Js/fpfZJWpA?= =?Windows-1252?Q?kdiOvK1rzlyvgCTWZlaGMJnGRUcp3VKCf0rIyYO4ZjXLKeNuByBZwA?= =?Windows-1252?Q?=3D=3D?= Content-Type: multipart/alternative; boundary="_000_SN4PR0601MB861386378F09DA8BA1E956EFFF02ASN4PR0601MB8613_" MIME-Version: 1.0 X-OriginatorOrg: netapp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN4PR0601MB8613.namprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 14da657d-f8c8-4166-351b-08db8c3d2d56 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jul 2023 11:57:38.4570 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4b0911a0-929b-4715-944b-c03745165b3a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SwIRAYphFjjDEIgDq0xTDSclWzDn5Dw+5k9Aa/4sk83a13J4P+flnVZY5XIiZseIJQwRIE3gLsjLmf0YrVl66w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR06MB8678 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_SN4PR0601MB861386378F09DA8BA1E956EFFF02ASN4PR0601MB8613_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Dear Team, We are currently trying to connect to postgresql database with target_sessi= on_attrs, we could see that pgODBC supports libpq. Hence we tried to utiliz= e the benefit of using target_session_attrs. Sample connecting string used, "Driver=3D{PostgreSQL Unicode};Server=3Dhostname1,hostname2,hostname3;Datab= ase=3Dpostgres;Uid=3Dodbc_user;Pwd=3DWelcome;Port=3D5432;sslmode=3Drequire;= target_session_attrs=3Dread-write;=94 But it is always connecting to hostname1 mentioned under =93Server=94 . Is = it possible to mention the multiple hosts under parameter called =93host=94= as in libpq psql in the connection string and ensure it honours the target= _session_attrs parameter value ? --_000_SN4PR0601MB861386378F09DA8BA1E956EFFF02ASN4PR0601MB8613_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Dear Team,

 

We are currently trying to conn= ect to postgresql database with target_session_attrs, we could see that pgO= DBC supports libpq. Hence we tried to utilize the benefit of using target_s= ession_attrs.

 

Sample connecting string used, "Driver=3D{PostgreSQL Unicode};Server=3Dhostnam= e1,hostname2,hostname3;Database=3Dpostgres;Uid=3Dodbc_user;Pwd=3DWelcome;Po= rt=3D5432;sslmode=3Drequire;target_session_attrs=3Dread-write;=94

But it is always connecting to hostname1 mentioned und= er =93Server=94 . Is it possible to mention the multiple hosts under parame= ter called =93host=94 as in libpq psql in the connection string and ensure = it honours the target_session_attrs parameter value ?

--_000_SN4PR0601MB861386378F09DA8BA1E956EFFF02ASN4PR0601MB8613_--