Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iTAQE-0006dc-IF for pgsql-admin@arkaria.postgresql.org; Fri, 08 Nov 2019 19:59:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iTAQD-0007xN-B1 for pgsql-admin@arkaria.postgresql.org; Fri, 08 Nov 2019 19:59:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iTAQC-0007xG-Qq for pgsql-admin@lists.postgresql.org; Fri, 08 Nov 2019 19:59:53 +0000 Received: from mail-oln040092254105.outbound.protection.outlook.com ([40.92.254.105] helo=APC01-PU1-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 1iTAQ7-0001oM-Tm for pgsql-admin@postgresql.org; Fri, 08 Nov 2019 19:59:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iZ1+F/WcFXUnq56VGcmKKrBjpO5tw529b3emQCwcpoYJmNsA/ag6c5kRxNwboZ5kAKKOI7u8D29vTsL3MA0ngj4KWn3p5MLrpqHuiKwoJLIZrQenCGILykR7jYNFDoukfyVE8Nd2uFBkWk4LhYwHnMknJ/R7z6D95AOsPpmrJ859cfAlnDPzWNVkzKOieHBjKzPSNZNZI0O7RG79AYkVXLFAaUSXNgdZTi5Y59Es+VMtE1Ipf662JqDYXMxoksvLQzvjSYecd5ypQaQEuZ7WkwCe4TAjZkaC/uj+JAG1PBJobHerkUu+7chE19qsw6soMOurX0iZKRPlnEvn/pjzRg== 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=OunXHMtKLHkf61GD6BsVgG7glCD7Uti9652zFfoE1/g=; b=DQmuqulC0dkZ6F2XP61wm6PmE5BE+XAEquplWQauXds/z2Qf6H14ScdUwVH6tJhLgd8nBq6j1Rf6iDZExFafAvAf96WJ6VeYeAH6bKw3BzSsreL//gta0xgBvp3FX4e883UmhxV5ozXKjNNbQuX5hp4L3YtBciP/hkC39cXAL4eCxVObFBAZRpKeM6UfAJxR7tL6Xj1Vkr3q8IdGnFqS8E4fUkpDUSliEFcXH8svdx+CLpbLt59n99yEg9sVyp2BLYyZ1jY510OoWcnQmRW+hre3Sz3/1SwOIT65u+6SWMy6tWWhforDLLHIBwDg4JuoZp47rTMONLbuR8olv77qlw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OunXHMtKLHkf61GD6BsVgG7glCD7Uti9652zFfoE1/g=; b=DgUYZDkpxBFOSSKhLyahp+9mJaEHb8BlFEco3nfipBXt3888wOqKPdMFPg1VuaTOXCsz717WiDNAUfwybXIN3DV5hrOVQEpKaLQDWYfhT+bCwWJuCjSEZ4kLjZLzsil9fsa1zI2tbLHxAVEfeq+vwuR3Ydr7lp0fQJvVC0XZcQ5znREWVLrlUpAaDgT/8chVlrrzCam+mXO985kgy9cFgTea7oUxVee2jQdQDGpD5FPtA5p0i7mq+7pAbNSYa6/OjMtzqLPO52e42X8fy61+PsIlBS12qbRhY/QLXIa11h/kTY7zZTAUh4k5dRV83H073s3r8+i00cuxWKqmuymm7A== Received: from SG2APC01FT044.eop-APC01.prod.protection.outlook.com (10.152.250.58) by SG2APC01HT006.eop-APC01.prod.protection.outlook.com (10.152.250.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2430.22; Fri, 8 Nov 2019 19:59:43 +0000 Received: from BMXPR01MB3847.INDPRD01.PROD.OUTLOOK.COM (10.152.250.51) by SG2APC01FT044.mail.protection.outlook.com (10.152.250.239) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.22 via Frontend Transport; Fri, 8 Nov 2019 19:59:43 +0000 Received: from BMXPR01MB3847.INDPRD01.PROD.OUTLOOK.COM ([fe80::d5b1:3f5:8194:1782]) by BMXPR01MB3847.INDPRD01.PROD.OUTLOOK.COM ([fe80::d5b1:3f5:8194:1782%4]) with mapi id 15.20.2430.023; Fri, 8 Nov 2019 19:59:42 +0000 From: pradeep pandey To: Alex Balashov , "pgsql-admin@postgresql.org" Subject: Help Needed for pgbench with retry option Thread-Topic: Help Needed for pgbench with retry option Thread-Index: AQHVlm8PsDrYzNRWE0GjAwLP9bNudw== Date: Fri, 8 Nov 2019 19:59:42 +0000 Message-ID: References: <20191107193335.GA4344@tlaquepaque.localdomain> In-Reply-To: <20191107193335.GA4344@tlaquepaque.localdomain> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:49B26C540C2C4A27280D5E99A59B67A997F9DAA493A7BA75690310031C9F266A;UpperCasedChecksum:4AF78DF38C4374613E281B77C3CA46013E7BA8863FB12E64CE882B933E1317F0;SizeAsReceived:6894;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [qwdSWLK/9RmTKKYOE4x+8t+gJpRwsy6v] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 9b84517d-cfda-4a0c-5416-08d764863241 x-ms-traffictypediagnostic: SG2APC01HT006: x-ms-exchange-purlcount: 2 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lyBjkCwWcyjhoP/yMnoL1JUQCcC9PZKosAOmVSMzv5lbxUW9TocMeteWxcGVpgWWvuwDyVCH7Msvb5eqVyEd8y9UCSCkKJDzog7rivZDofPALrxgEz5OjFse51LgQOO6XbxMQUzMzI18lzC0S6A0qDK5taHT0+kqEa23MJwmIZobYKiVdovKz0PZoSrWSh1DHa+8iPC4vJjmiPFy6cQXDkQqWluANnz3WO8u2iVzpwc= x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_BMXPR01MB3847542EE8E21D98AF5A6522B87B0BMXPR01MB3847INDP_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 9b84517d-cfda-4a0c-5416-08d764863241 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2019 19:59:42.6692 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT006 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_BMXPR01MB3847542EE8E21D98AF5A6522B87B0BMXPR01MB3847INDP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Guy's I need small help on PostgreSQL testing of HA I am trying to run pgbench but once the primary goes down and secondary com= es primary , I want to know know how I can configute pgbench to retry and a= utoconnect the pgbench workload which I have been running to new Primary . the idea is to test the Retry feature of pgbench if it exists . Is pgbeach has Retry fetaure ? if yes then what is parameter for retry need= s commands . can you please help and provide the direction and link Thanks Pradeep ________________________________ From: Alex Balashov Sent: Thursday, November 7, 2019 7:33 PM To: pgsql-admin@postgresql.org Subject: Index degradation Over a period of some years, particularly in tables whose contents periodically get swapped out entirely (i.e. lots of dead rows), indexes slowly degrade, pushing query latency up. Is there a way to detect this condition short of just monitoring statement latency, so as to know when to REINDEX / build new indexes? -- Alex Balashov | Principal | Evariste Systems LLC Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ --_000_BMXPR01MB3847542EE8E21D98AF5A6522B87B0BMXPR01MB3847INDP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Guy's
I need small help on PostgreSQL testing of HA
I am trying to run pgbench but once the primary goes down and secondary com= es primary , I want to know know how I can configute pgbench to retry and a= utoconnect the pgbench workload which I have been running to new Primary .
the idea is to test the Retry feature of pgbench if it exists .

Is pgbeach has Retry fetaure ? if yes then what is parame= ter for retry needs commands .


can you please help and provide the direction and link
Thanks
Pradeep


From: Alex Balashov <a= balashov@evaristesys.com>
Sent: Thursday, November 7, 2019 7:33 PM
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org> Subject: Index degradation
 
Over a period of some years, particularly in table= s whose contents
periodically get swapped out entirely (i.e. lots of dead rows), indexes
slowly degrade, pushing query latency up.

Is there a way to detect this condition short of just monitoring
statement latency, so as to know when to REINDEX / build new indexes?

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


--_000_BMXPR01MB3847542EE8E21D98AF5A6522B87B0BMXPR01MB3847INDP_--