When using CREATE DATABASE TEMPLATE in PostgreSQL, will the target database preserve the statistics from the source database?
|
feedback
|
|
I do not believe so -- You will get a copy of the tables/triggers/etc., but they will have new OIDs, and the statistics will need to be regenerated. It's possible that the statistics will be populated for you (equivalent of doing an | |||
|
feedback
|
|
Yes, it's a straight file-level copy of the template database, so whatever was in there will be in the new database. | |||||
feedback
|