Powerfailure caused a reduction in INSERT performance of version 12 database. - Mailing list pgsql-sql

From Frank Komsic
Subject Powerfailure caused a reduction in INSERT performance of version 12 database.
Date
Msg-id BL3PR05MB9236F587AD7551AD63B2C65AB3812@BL3PR05MB9236.namprd05.prod.outlook.com
Whole thread Raw
Responses Re: Powerfailure caused a reduction in INSERT performance of version 12 database.
List pgsql-sql

HI,

 

Not sure if this is the place to write to.

 

We have a database running on version 12.2 of postgresql.  We have experienced an extended power failure and our backup systems did not work as intended resulting in a sudden shutdown of the database server (Windows 2012).  After restarting the system it had performed some automated recovery and the database was functional.  Unfortunately, the database speed had slowed down significantly, 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 there is a trigger function updating additional tables.  I have noticed that this additional table although small in records (2500 records with 18 columns) it take about 4-6 seconds 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 second 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 occurs for every record that is inserted.  If every record is 2 seconds of data, 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

 

 

pgsql-sql by date:

Previous
From: Achilleas Mantzios
Date:
Subject: Re: Using replication to upgrade db from 12 to 16
Next
From: Steve Midgley
Date:
Subject: Re: Powerfailure caused a reduction in INSERT performance of version 12 database.