- バックアップ一覧
- 差分 を表示
- 現在との差分 を表示
- ソース を表示
- PostgreSQL/開発/include/utils/palloc.h へ行く。
- 1 (2017-05-16 (火) 21:40:21)
- 2 (2017-05-16 (火) 22:14:41)
- 3 (2017-05-18 (木) 00:00:43)
- 4 (2017-05-18 (木) 22:50:59)
- 5 (2017-05-20 (土) 01:06:24)
- 6 (2017-05-20 (土) 10:21:14)
- 7 (2017-05-20 (土) 23:18:19)
- 8 (2017-05-21 (日) 10:40:03)
- 9 (2017-05-21 (日) 22:20:16)
- 10 (2018-02-04 (日) 22:32:14)
- 11 (2020-01-03 (金) 08:55:02)
概要 †
- メモリ操作のためのAPI
- メモリはchunkと呼ばれる塊単位で扱われ,context(chunkを管理)に紐づくようになっている
- contextは木構造で管理されており,上位のcontextを破棄することで,下位のcontextの領域もまとめて解放することができる
定義 †
マクロ †
列挙型 †
構造体 †
MemoryContextCallback †
番号 | データ型 | フィールド | 説明 |
---|---|---|---|
1 | MemoryContextCallbackFunction | func | コールバック関数 |
2 | void* | arg | コールバック関数に渡される引数 |
3 | struct MemoryContextCallback | next | コールバック関数リストの次ノード。 コールバック関数はリスト構造で管理されており複数のコールバック関数を登録できる。 |
関数 †
関数名 †
// 引数1:アロケーションサイズ palloc0fast(sz)
- 説明
サンプルプログラム †
typedef struct MemoryContextData *MemoryContext;