- 追加された行はこの色です。
- 削除された行はこの色です。
- PostgreSQL/外部テーブル操作 は削除されています。
#author("2017-05-11T22:41:58+09:00","","") [[PostgreSQL]] #author("2017-05-11T22:48:09+09:00","","") #contents * 外部テーブル情報の取得 [#ma8955ad] [[view source on doxygen.postgresql.org>https://doxygen.postgresql.org/foreign_8c.html#a3b7ac6e54e9ea1fa327c25ad83208a52]] #geshi(c){{ #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 } }}