このページを編集する際は、編集に関する方針に従ってください。
概要 †
- 引数fmtが示す文字列を標準エラー出力に出力する。
引数 †
実装 †
int
errmsg_internal(const char *fmt,...)
{
fprintf(stderr, "ERROR: %s\n", fmt);
return 0; /* return value does not matter */
}
int
errmsg_internal(const char *fmt,...)
{
ErrorData *edata = &errordata[errordata_stack_depth];
- ErrorData/postgresql-8.1.4 -- 以下のメンバを持つ構造体
- elevelを、intとして定義
- output_to_serverを、bool(charの別名)として定義
- output_to_clientを、bool(charの別名)として定義
- show_funcnameを、bool(charの別名)として定義
- filenameを、const charへのポインタとして定義
- linenoを、intとして定義
- funcnameを、const charへのポインタとして定義
- sqlerrcodeを、intとして定義
- messageを、charへのポインタとして定義
- detailを、charへのポインタとして定義
- hintを、charへのポインタとして定義
- contextを、charへのポインタとして定義
- cursorposを、intとして定義
- internalposを、intとして定義
- internalqueryを、charへのポインタとして定義
- saved_errnoを、intとして定義
MemoryContext oldcontext;
- MemoryContext/postgresql-8.1.4 -- 下記メンバを持つ構造体。
- 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
recursion_depth++;
CHECK_STACK_DEPTH();
oldcontext = MemoryContextSwitchTo(ErrorContext);
- MemoryContextSwitchTo()/postgresql-8.1.4
- ErrorContext/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
EVALUATE_MESSAGE(message, false);
MemoryContextSwitchTo(oldcontext);
recursion_depth--;
return 0; /* return value does not matter */
}
呼出元 †
備考 †
/*
* errmsg_internal --- add a primary error message text to the current error
*
* This is exactly like errmsg() except that strings passed to errmsg_internal
* are customarily left out of the internationalization message dictionary.
* This should be used for "can't happen" cases that are probably not worth
* spending translation effort on.
*/
履歴 †
コメント †