migrating statistics without data? - Mailing list pgsql-admin

From Rob Audenaerde
Subject migrating statistics without data?
Date
Msg-id 1D020918205F334CBDD5CE7DF2038A2E15A81E7ED7@IE2RD2XVS271.red002.local
Whole thread Raw
List pgsql-admin

Hi all,

 

I am migrating a database with tables that contain over 5M rows. These tables are truncated and filled each day in a batch process. There are scripts that simply don’t run within 24hrs if the statistics are incorrect.

 

The current procedure is to run the process until it fails, then analyse all the tables that are filled sofar, and redo the batch. (As you can see the batch is not a transaction, but rather a set of scripts that follow each other in their own transactions.

 

My path of thought was to find a way to transfer the statistics somehow.

 

Is there a way to transfer the statistics of the old database to the new one, so we can reuse the statistics? Or is there a better alternative to achieve the same?

 

Kind regards,

 

-Rob

 

pgsql-admin by date:

Previous
From: Cédric Villemain
Date:
Subject: Re: rsync and streaming replication
Next
From: Jean-Armel Luce
Date:
Subject: Re: rsync and streaming replication