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 1sg3SF-00EyTn-CZ for pgsql-sql@arkaria.postgresql.org; Mon, 19 Aug 2024 14:33:55 +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 1sg3SD-004Pht-65 for pgsql-sql@arkaria.postgresql.org; Mon, 19 Aug 2024 14:33:53 +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 1sg3SC-004Phl-MY for pgsql-sql@lists.postgresql.org; Mon, 19 Aug 2024 14:33:53 +0000 Received: from mail-westusazlp170100001.outbound.protection.outlook.com ([2a01:111:f403:c000::1] helo=BYAPR05CU005.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 1sg3SA-000Pzu-BJ for pgsql-sql@lists.postgresql.org; Mon, 19 Aug 2024 14:33:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=et2t0EiCrk14xyu3LdAuYqPDYzJr+qOLvubDjochxReEsmaDLbB9nSQEYZTTQYnYVuy/WYpQHTXr1MRiIUvKmb7dUzopom3Bi0EGbww9xy6iDpBLglBv1vS5j+fX3w9/YH+RTD0CntBts5x9eUasTGzFe87cB+nYkp/L2Rv6Dj7WLnmC9Zb8RVRgrt0jn7gJeOK0bWn3TBWeuLm1BGpYg9cjYD1O0VYsACCaopX1M7lE1RkXEssaVxRJ6AmoumrBRg9Q365HsexqYJwteCzziHXbnGgeeiXh/zFjqs8tA1AUnDt54SvU+ctSU6/T100oJjs259y1dkAz6+QeMo5Y0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=d2TREz8Csto+gCornoN4cclSiIuOXa1KWQ/QIuqDVII=; b=r9nMWWD+9QiJLq/p5UYsZAFUTDsE8Wf3j3/B2IvBi5acard4vo5SxRlo+Fp5bLvohvGxm2YsOXsyrL2PnUa2Qf9NAF6OFNIs38IuvxdIcVS9YGvp3TacqZCQNzGlpPbFUUaWrUbp+4y3e0dZLrmMySVMaZjc1sp5yPANh/2XorgScW6Do8HcNGjLcjChFvkuJ+8BZ8qQa3tMfI37pOPaj7UxuRZJTVYFDxsDjp3IP3pwddNKAcsV2JQI4fG3rkpzJPHVyL0NjolowmE6reC6Vx2iv7CfFy7urEaRrq27Ud5LpkvMOmWscU7CV+ll1G102JuFNMdadS97Q8iaBh5VzA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=shoeicanada.com; dmarc=pass action=none header.from=shoeicanada.com; dkim=pass header.d=shoeicanada.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shoeicanada.onmicrosoft.com; s=selector2-shoeicanada-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d2TREz8Csto+gCornoN4cclSiIuOXa1KWQ/QIuqDVII=; b=GWMi/HEw7NUSRWxEmldvmgBZ1LY1O2bwW6kiNOvj9zzRJZbJw6GPAVNeYgEUf1ENYjDKhHDUYpiPIaKedppEx8Z055tw/Y0w+qp/3PMg4hfjko5dKgoyB/FQjk+hPvVSQ/jDogKIrh3vDABfHaNV89w/1YDClZTcj8k4lFLbrIY= Received: from BL3PR05MB9236.namprd05.prod.outlook.com (2603:10b6:208:38c::5) by CO1PR05MB8021.namprd05.prod.outlook.com (2603:10b6:303:d5::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Mon, 19 Aug 2024 14:33:45 +0000 Received: from BL3PR05MB9236.namprd05.prod.outlook.com ([fe80::f70d:170d:a23a:24a8]) by BL3PR05MB9236.namprd05.prod.outlook.com ([fe80::f70d:170d:a23a:24a8%5]) with mapi id 15.20.7875.019; Mon, 19 Aug 2024 14:33:45 +0000 From: Frank Komsic To: "pgsql-sql@lists.postgresql.org" Subject: Powerfailure caused a reduction in INSERT performance of version 12 database. Thread-Topic: Powerfailure caused a reduction in INSERT performance of version 12 database. Thread-Index: AQHa8BmrA3Z6t2X3jkqdRcLXpvH5zw== Date: Mon, 19 Aug 2024 14:33:04 +0000 Message-ID: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=shoeicanada.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL3PR05MB9236:EE_|CO1PR05MB8021:EE_ x-ms-office365-filtering-correlation-id: 9d11236b-c86d-4e26-108e-08dcc05bee71 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?mDtVBcmUWRWkMXpmtyDL4MwZf8Udpl+1W1XOtSQbLTLGYRYJEbwqxNqsyKNJ?= =?us-ascii?Q?vEdV9Az7qFx8dU46pw5ICXqtDmh/Bq1rd6t6xSNrM9ojnLSPB4QnG5jKU0xE?= =?us-ascii?Q?AngUiTayAaqMvlq02pArm6oRgAvvJfSnnxyssSuxGHaJUapOPj9gR+W3foR4?= =?us-ascii?Q?htetkm3iqrDTUQkEnrkfq1uvKkI6bu97HoP+DvJYzDzilSQKy25W/vKbIK1x?= =?us-ascii?Q?UV6XQ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kwyAtp?= =?us-ascii?Q?64rNaalOnPnCeUIfaHbPd0pcbsBmR7PB3R1LX8NPt3OGBV2TRnQntJD34b7C?= =?us-ascii?Q?bZVVppv5Gzu1cUjKUiXZzbOcbJky9XRQNXnISbWl7gSMdtb0pyBshoGmDMeA?= =?us-ascii?Q?IRmgxNVt8b7W+ZJd+DZ9k5i3ugpIqweEf6cU5d8Rk83L4K2qXsIWDNDqWrlk?= =?us-ascii?Q?MXKZtaOEmkII1olVFYcODEUxpwcoFcRuAE5fZ3G2eD2cvgp+g05ZtrwtnCZf?= =?us-ascii?Q?0AO4QseuhKSSkBErbqOKN6KATuxIeox4AUZ6aUB6HtnXij5Leg=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL3PR05MB9236.namprd05.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(1800799024)(38070700018);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?VWG5JqtUI2po31KLqz+/jdrV5Cg3j6/t+bMuRwtcLYXDYHNF4p1rJi5S1OyF?= =?us-ascii?Q?6lktrizckcg3WFVuOCSsedRP2Q6jd3mxcy6Kk+MiKzM92NeHswlvNrYrjn3s?= =?us-ascii?Q?CuE7D1G65glCihAxthtzkHozaE1bBGzAJifdQGlT3eNs15+BwhSwyTarCGuj?= =?us-ascii?Q?4gYUrFIDe1xsJ1NVdMQtZFJG36QPHVLKrSg1r5oCa+5ahrivtrrLWgxVEZFt?= =?us-ascii?Q?kJ4W4OS2W4+5rxhsnt9lRX4KJdKxV+Vkb707tBjFVjjYM/ZCdiwNjiCPi7FC?= =?us-ascii?Q?scArecBqU+xcVnCO2Kb8FgGTcptANVCUQCQ0/MGzJo8BLsFTw4ZARxDtvCcS?= =?us-ascii?Q?0F3dw1b9udby8X1begf1A8jPVuFrKF7PNkF9YI8eL0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O+KsioyyMDm5OkkgT+/t3ZopUAITMsoZGBcWx?= =?us-ascii?Q?hA6RRlOGsS6TKs115w+0OL7qcnF7f3FKdEkr0uSbDJy9kyBfjfXWO/2lCOkF?= =?us-ascii?Q?5qpijHvP1sRiVTikay7v/OiLNYfesVLb0SJYcy0BsbMFJaGoBmu5L5qY8LzT?= =?us-ascii?Q?kdLADIpLRHXGDZtZo0YpHNhPTzmCBKaGm6liVHIEHJJ2XP1e7zDa7ZwNiW5A?= =?us-ascii?Q?1n9c+uL6FMs+v0FTTvq1kcKYVsHzXCQJyH1xwHVkVfdplXPPGbKaDeF/0VpB?= =?us-ascii?Q?N4JmW9b++um4MEvFFh1gNaOoKH6FAjluj+qXu0OEiA9nqKvw7mq7WF7REi0h?= =?us-ascii?Q?Aw=3D=3D?= Content-Type: multipart/alternative; boundary="_000_BL3PR05MB9236F587AD7551AD63B2C65AB3812BL3PR05MB9236namp_" MIME-Version: 1.0 X-OriginatorOrg: shoeicanada.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL3PR05MB9236.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9d11236b-c86d-4e26-108e-08dcc05bee71 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2024 14:33:21.2984 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 01347b42-4202-49b1-8efe-675406351eed X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: l4/0mMBob5O3djhCCpIUC7bjoqvdWsNd/MpacOb/vmN43hh27NBoDozTRxUnxw+wVcDYNc6mr4MjAWyD+8lyzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR05MB8021 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_BL3PR05MB9236F587AD7551AD63B2C65AB3812BL3PR05MB9236namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable HI, Not sure if this is the place to write to. We have a database running on version 12.2 of postgresql. We have experien= ced an extended power failure and our backup systems did not work as intend= ed resulting in a sudden shutdown of the database server (Windows 2012). A= fter restarting the system it had performed some automated recovery and the= database was functional. Unfortunately, the database speed had slowed dow= n significantly, particularly in the INSERT commands in an UploadData appli= cation we have on our production machines that uploads 139 columns of data. The data is inserted into partitioned tables and there is a trigger functio= n updating additional tables. I have noticed that this additional table al= though small in records (2500 records with 18 columns) it take about 4-6 se= conds to visualize the table using PGADMIN 8.10. The data in this table is= being updated by multiple UlpadData applications. So the last 10 records = the date columns are constantly being updated. Visualizing the data before the latest 15 records it appears withing 1 seco= nd or less. The latest 15 records can take 2-4 seconds to visualize. Then= visualizing the entire table take 5-7 seconds. This is too long if this o= ccurs for every record that is inserted. If every record is 2 seconds of d= ata, the application can never keep up with the updates. Performed a full vacuum on this table with a little improvement. Is there anything I can do to see what is going on? Thank you Frank Komsic Shoei Canada Coproration 514-949-6319 --_000_BL3PR05MB9236F587AD7551AD63B2C65AB3812BL3PR05MB9236namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

HI,

 

Not sure if this is the place to write to.

 

We have a database running on version 12.2 of postgr= esql.  We have experienced an extended power failure and our backup sy= stems did not work as intended resulting in a sudden shutdown of the databa= se server (Windows 2012).  After restarting the system it had performed some automated recovery and the database was f= unctional.  Unfortunately, the database speed had slowed down signific= antly, particularly in the INSERT commands in an UploadData application we = have on our production machines that uploads 139 columns of data.

 

The data is inserted into partitioned tables and the= re is a trigger function updating additional tables.  I have noticed t= hat this additional table although small in records (2500 records with 18 c= olumns) it take about 4-6 seconds to visualize the table using PGADMIN 8.10.  The data in this table is being update= d by multiple UlpadData applications.  So the last 10 records the date= columns are constantly being updated.

 

Visualizing the data before the latest 15 records it= appears withing 1 second or less.  The latest 15 records can take 2-4= seconds to visualize.  Then visualizing the entire table take 5-7 sec= onds.  This is too long if this occurs for every record that is inserted.  If every record is 2 seconds of data, the a= pplication can never keep up with the updates.

 

Performed a full vacuum on this table with a little = improvement. 

 

Is there anything I can do to see what is going on?<= o:p>

 

Thank you

 

Frank Komsic

Shoei Canada Coproration

514-949-6319

 

 

--_000_BL3PR05MB9236F587AD7551AD63B2C65AB3812BL3PR05MB9236namp_--