IMPORT_STATISTICS

Imports statistics from the XML file that was generated by EXPORT_STATISTICS. Imported statistics override existing statistics for all projections of the table referenced in the XML file.

Syntax

IMPORT_STATISTICS ( 'filename' ) 

Parameters

filename

The path and name of an XML input file that was generated by EXPORT_STATISTICS.

Privileges

Superuser

Restrictions

Example

Import the statistics for the VMart database that EXPORT_STATISTICS saved.

=> SELECT IMPORT_STATISTICS('/opt/vertica/examples/VMart_Schema/vmart_stats.xml');
                     IMPORT_STATISTICS
----------------------------------------------------------------------------
Importing statistics for projection date_dimension_super column date_key failure (stats did not contain row counts)
Importing statistics for projection date_dimension_super column date failure (stats did not contain row counts)
Importing statistics for projection date_dimension_super column full_date_description failure (stats did not contain row counts)
...
(1 row)

See Also