Re: Query Performance after pg_restore - Mailing list pgsql-admin

From Tom Lane
Subject Re: Query Performance after pg_restore
Date
Msg-id 1615174.1703434335@sss.pgh.pa.us
Whole thread Raw
In response to Query Performance after pg_restore  (Murthy Nunna <mnunna@fnal.gov>)
Responses RE: Query Performance after pg_restore
List pgsql-admin
Murthy Nunna <mnunna@fnal.gov> writes:
> I did pg_dump of a ~20TB database followed by pg_restore. I find simple queries like select count(*) running slow. I
dida select count(*) on all tables before pg_dump which took ~4 hours. After pg_restore, same thing took 32 hours. 

My bet is that that was setting commit hint bits, and hence incurring
a lot of writes.  If the data is reasonably stable that's a one-time
expense.

            regards, tom lane



pgsql-admin by date:

Previous
From: Murthy Nunna
Date:
Subject: Query Performance after pg_restore
Next
From: Scott Ribe
Date:
Subject: Re: Timestamps in outputs