このページを編集する際は、編集に関する方針に従ってください。
概要 †
引数 †
- sz -- 内部にて CurrentMemoryContext->methods->alloc で指定されている関数をコールする際に与える引数。
実装 †
#ifdef FRONTEND
#undef palloc
#define palloc malloc
#endif
#define palloc(sz) MemoryContextAlloc(CurrentMemoryContext, (sz))
- MemoryContextAlloc()/postgresql-8.1.4 -- 引数 CurrentMemoryContext 配下の関数ポインタ context->methods->alloc で指定されている関数をコールして、戻り値を返す。
- CurrentMemoryContext/postgresql-8.1.4 -- 下記メンバを持つ構造体MemoryContextDataへのポインタ型のグローバル変数。
- NodeTag列挙型の変数type
- 下記メンバを持つ構造体型MemoryContextMethodsへのポインタmethods
- void*型の関数ポインタalloc
- void型の関数ポインタfree_p
- void*型の関数ポインタrealloc
- void型の関数ポインタinit
- void型の関数ポインタreset
- void型の関数ポインタdelete
- Size型の関数ポインタget_chunk_space
- bool型の関数ポインタis_empty
- void型の関数ポインタstats
- void型の関数ポインタcheck
- MemoryContextDataへのポインタparent(再帰的使用)
- MemoryContextDataへのポインタfirstchild(再帰的使用)
- MemoryContextDataへのポインタnextchild(再帰的使用)
- char型へのポインタname
呼出元 †
備考 †
履歴 †
コメント †