PostgreSQL から Zilliz Cloud への移行
このトピックでは、PostgreSQL から移行する際のデータ型マッピング、コレクション命名規則、および考慮事項について Zilliz Cloud がどのように処理するかを説明します。
前提条件
PostgreSQL から Zilliz Cloud への移行を開始する前に、以下の要件を満たしていることを確認してください。
PostgreSQL の要件
Requirement | Details |
|---|---|
ネットワーク access | Source PostgreSQL database must be accessible from the public internet |
データベース access | Valid database endpoint, username, and password with necessary permissions |
pgvector extension | Tables must use pgvector extension for vector data storage |
Vector field requirement | Each source table must contain at least one vector field, and ベクトルフィールド cannot contain null values. |
データ availability | Source tables must contain data. Empty tables cannot be migrated. |
Zilliz Cloud の要件
Requirement | Details |
|---|---|
User role | 組織オーナー or プロジェクト管理者 |
Cluster capacity | Sufficient storage and compute resources (use the CU calculator to estimate CU size) |
ネットワーク access | Add Zilliz Cloud IPs to allowlists if using network restrictions |
データ型マッピング
PostgreSQL のデータ型が Zilliz Cloud にどのようにマッピングされるかを理解することは、移行計画において重要です。
PostgreSQL Field Type | Zilliz Cloud Field Type | Description |
|---|---|---|
Primary key | Primary key / 自動ID |
|
vector | FLOAT_VECTOR | Vector dimensions remain unchanged. |
text/varchar/date/time | VARCHAR | Stored as a string. |
bigint | INT64 | - |
integer | INT32 | - |
smallint | INT16 | - |
double precision | DOUBLE | - |
real | FLOAT | - |
boolean | BOOL | - |
array | ARRAY | - |
json | JSON | - |
PostgreSQL 固有の処理規則
コレクション命名規則
PostgreSQL のテーブル名は、以下の考慮事項を踏まえて Zilliz Cloud に転送されます。
Scenario | Impact | ソリューション |
|---|---|---|
Default naming | Collection names match source table names exactly | Names are preserved as-is from PostgreSQL |
名前の競合 | Cannot submit job if a collection with the same name already exists | Delete existing collection, choose a different database, or rename during migration configuration |
Collection name modification | Supported during migration | You can rename collections during the migration configuration process |
移行時の考慮事項
以下の機能は、PostgreSQL からの移行においてサポートされていません。
制限ation | Impact | Alternative |
|---|---|---|
Dynamic to fixed field conversion | Cannot convert existing dynamic fields to fixed types | Fields maintain their original dynamic nature |
Add more fields | Cannot add new fields during migration | Only existing Elasticsearch fields are migrated |