- バックアップ一覧
- ソース を表示
- PostgreSQL/外部テーブル操作 は削除されています。
- 1 (2017-05-11 (木) 22:39:24)
- 2 (2017-05-11 (木) 22:41:58)
- 3 (2017-05-11 (木) 22:48:09)
外部テーブル情報の取得 †
view source on doxygen.postgresql.org
#include "foreign/foreign.h" /* [Sample] CREATE FOREIGN TABLE T (....) SERVER postgres_server OPTIONS (table_name 'warehouse', schema_name 'sales'); */ ListCell *lc; ForeignTable *table = GetForeignTable(foreigntableid); foreach(lc, table->options) { // オプション情報の取得 DefElem *def = (DefElem *) lfirst(lc); // オプション名とオプション値の表示 elog(NOTICE, "%s = %s", def->defname, defGetString(def)); // table_name = warehouse // schema_name = sales }