Pipelines PGFS reference#

EDB Postgres AI - AIアクセラレーターパイプラインPGFSのこのリファレンスドキュメントには、 Pipelines PGFS reference 拡張機能で使用可能なファンクションとビューに関する情報が含まれています。これらの機能は、 AIDBにS3互換ファイルシステム、Google Cloud Storageバケット、ローカルファイルシステムへのアクセスを提供します。

pgfs#

ファンクション#

ファンクション#

pgfs.create_foreign_table#

データベースに外部テーブルを作成します。

パラメーター#

Parameter

Type

Default

Description

table_name

text

NA

server_name

text

NA

例#

SELECT pgfs.create_foreign_table(my_table, my_server);

pgfs.create_storage_location#

データベースに保存場所を作成します。

パラメーター#

Parameter

Type

Default

Description

name

text

保存場所の名前

url

text

この保存場所のURL接頭辞`s3:、`gs:、または`file:`

options

json

保存場所のオプションオプショナル

credentials

json

保存場所の資格情報オプショナル

または

Parameter

Type

Default

Description

name

text

保存場所の名前

url

text

この保存場所のURL接頭辞`s3:、`gs:、または`file:`

msl_id

uuid

未使用

options

json

保存場所のオプションオプショナル

credentials

json

保存場所の資格情報オプショナル

例#

SELECT pgfs.create_storage_location(my_storage,
                                    s3://my_bucket, 123e4567-e89b-12d3-a456-426614174000,
                                    {},
                                    {});

pgfs.create_storage_location_with_foreign_table#

データベースに格納場所を作成し、外部テーブルに関連付けます。

パラメーター#

Parameter

Type

Default

Description

storage_location_name

text

保存場所の名前

url

text

この保存場所のURL接頭辞`s3:、`gs:`または`file:

options

json

保存場所のオプションオプショナル

credentials

json

保存場所の資格情報オプショナル

または

Parameter

Type

Default

Description

storage_location_name

text

保存場所の名前

url

text

この保存場所のURL接頭辞`s3:、`gs:`または`file:

msl_id

uuid

未使用

options

json

保存場所のオプションオプショナル

credentials

json

保存場所の資格情報オプショナル

例#

SELECT pgfs.create_storage_location_with_foreign_table(my_storage,
                                                       s3://my_bucket, 123e4567-e89b-12d3-a456-426614174000,
                                                       {},
                                                       {});

pgfs.delete_storage_location#

データベースから保存場所を削除します。

パラメーター#

Parameter

Type

Default

Description

storage_location_name

text

保存場所の名前

例#

SELECT pgfs.delete_storage_location(my_storage);

pgfs.get_default_storage_location#

デフォルトの保存場所を返します。

返品#

Column

Type

Description

default_storage_location

text

NA

例#

SELECT * FROM pgfs.get_default_storage_location();

pgfs.get_storage_location#

保存場所に関する情報を返します。

パラメーター#

Parameter

Type

Default

Description

storage_location_name

text

保存場所の名前

返品#

Column

Type

Description

name

text

NA

url

text

NA

msl_id

uuid

NA

options

json

NA

credentials

json

NA

例#

SELECT * FROM pgfs.get_storage_location(my_storage);

pgfs.list_storage_locations#

データベース内のすべての保存場所をリストします。

返品#

Column

Type

Description

name

text

NA

url

text

NA

msl_id

uuid

NA

options

json

NA

credentials

json

NA

例#

SELECT * FROM pgfs.list_storage_locations();

pgfs.set_default_storage_location#

デフォルトの保存場所を設定します。

パラメーター#

Parameter

Type

Default

Description

storage_location_name

text

NA

例#

SELECT pgfs.set_default_storage_location(my_storage);

pgfs.update_storage_location#

データベース内の保存場所を更新します。

パラメーター#

Parameter

Type

Default

Description

name

text

NA

url

text

NA

msl_id

uuid

NA

options

json

NA

credentials

json

NA

例#

SELECT pgfs.update_storage_location(my_storage, s3://my_bucket, 123e4567-e89b-12d3-a456-426614174000, {}, {});

ビュー#

pgfs スキーマには、ユーザー向けビューがありません。

テーブル#

pgfs スキーマにはユーザー向けテーブルがありません。