Fix error with statistics restore when statistics already exist
Previously, if pg_statistic already contains statistics for
a given table column, attempting to insert those statistics
again during the restore would give a primary key error and
statistics would not be correctly restored.
Now, existing statistics are deleted just before inserting the
restore statistics, so there is no collision.
Signed-off-by: NJamie McAtamney <jmcatamney@pivotal.io>
Showing
想要评论请 注册 或 登录