Skip to content

Commit 53dbf62

Browse files
author
Masahiro Ikeda
committed
Add notes about importing statistics to different major versions
1 parent e041b7c commit 53dbf62

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

doc/pg_dbms_stats-en.md

+2
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ CAVEAT: The base script uses binary format of COPY command so import
317317
might fail if the format is incompatible with the export side. See [COPY
318318
command](http://www.postgresql.jp/document/current/html/sql-copy.html) for details.
319319

320+
Import of exported statistics into PostgreSQL servers of different major versions is not supported. Even if the import appears to be successful, there is a good chance that the subsequent server operation will be unstable and the expected execution plan will not be obtained.
321+
320322
## RESTRICTIONS
321323

322324
There are some important poins and restrictions to use pg_dbms_stats.

doc/pg_dbms_stats-ja.md

+2
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,8 @@ backup_xxx() と restore_xxx() 関数を使用します。
324324

325325
また、エクスポートファイルにはCOPYのバイナリフォーマットを利用しているため、エクスポート元とインポート先でアーキテクチャやPostgreSQLバージョンに差がある場合は正常に動作しない場合があります。詳しくは、[COPYコマンドのドキュメント](http://www.postgresql.jp/document/current/html/sql-copy.html)を参照して下さい。
326326

327+
エクスポートされた統計情報の、異なるメジャーバージョンのPostgreSQLサーバーへのインポートはサポートしていません。 見かけ上インポートできたように見えた場合も、その後のサーバー動作が不安定化したり、期待される実行計画が得られない可能性が十分にあります。
328+
327329
## 使用上の注意と制約
328330

329331
pg_dbms_stats を使用する際には、以下の使用上の注意と制約があります。

0 commit comments

Comments
 (0)