- バックアップ一覧
- 差分 を表示
- 現在との差分 を表示
- ソース を表示
- PostgreSQL/開発/include/fmgr.h へ行く。
- 1 (2017-06-01 (木) 21:50:28)
- 2 (2017-06-01 (木) 22:03:41)
- 3 (2017-06-03 (土) 13:40:28)
- 4 (2017-06-03 (土) 22:58:56)
- 5 (2017-06-04 (日) 14:59:59)
- 6 (2017-06-04 (日) 22:25:30)
- 7 (2017-06-04 (日) 23:27:37)
- 8 (2017-06-13 (火) 23:47:25)
- 9 (2017-06-16 (金) 22:37:42)
- 10 (2017-12-25 (月) 22:34:39)
- 11 (2018-01-28 (日) 09:43:58)
- 12 (2018-02-04 (日) 22:32:14)
概要 †
- 概要説明
定義 †
変数,エイリアス †
マクロ †
列挙型 †
構造体 †
Struct †
番号 | データ型 | フィールド | 説明 |
---|
関数 †
関数名 †
// 指定されたOIDの関数情報を取得する。 FmgrInfo *fmgr = palloc(sizeof(FmgrInfo)); fmgr_info((Oid)1396, fmgr); // abs(int64)の情報を構造体に格納する
- 説明
サンプルプログラム †
void test_invoke() { Datum result; FunctionCallInfoData fcinfo; FmgrInfo *fmgr = palloc(sizeof(FmgrInfo)); fmgr_info((Oid)1396, fmgr); // abs(int64); // Basic way int64 arg0 = -100; InitFunctionCallInfoData(fcinfo, fmgr, 1, 0, NULL, NULL); fcinfo.isnull = false; fcinfo.argnull[0] = false; fcinfo.arg[0] = Int64GetDatum(arg0); result = FunctionCallInvoke(&fcinfo); elog(INFO, "abs(-100) = %ld", DatumGetInt64(result)); } /* Output is the following: ------------------------------ INFO: abs(-100) = 100 */
参考・関連 †
関連