When using CREATE DATABASE TEMPLATE in PostgreSQL, will the target database preserve the statistics from the source database?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
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 |
|||
|
|
|
Yes, it's a straight file-level copy of the template database, so whatever was in there will be in the new database. |
|||||
|