PostgreSQL解読室:
ErrorData/postgresql-8.1.4
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
このページを編集する際は、[[編集に関する方針]]に従ってく...
*概要 [#t24a6df8]
-対象:8.1.4
-言語:C
-[[postgresql-8.1.4/src/include/utils/elog.h]]にて定義
-以下のメンバを持つ構造体
--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として定義
*実装 [#g865a361]
typedef struct ErrorData
{
int elevel; /* error level */
bool output_to_server; /* will report to server log? */
-charの別名。詳細は[[bool/postgresql-8.1.4]]参照。
bool output_to_client; /* will report to client? */
-charの別名。詳細は[[bool/postgresql-8.1.4]]参照。
bool show_funcname; /* true to force funcname inclusion...
-charの別名。詳細は[[bool/postgresql-8.1.4]]参照。
const char *filename; /* __FILE__ of ereport() call */
int lineno; /* __LINE__ of ereport() call */
const char *funcname; /* __func__ of ereport() call */
int sqlerrcode; /* encoded ERRSTATE */
char *message; /* primary error message */
char *detail; /* detail error message */
char *hint; /* hint message */
char *context; /* context message */
int cursorpos; /* cursor index into query string */
int internalpos; /* cursor index into internalquery */
char *internalquery; /* text of internally-generated ...
int saved_errno; /* errno at entry */
} ErrorData;
*呼出元 [#p73ec906]
-[[elog_start()/postgresql-8.1.4]]
*備考 [#v4f75a92]
* ErrorData holds the data accumulated during any one er...
* Any non-NULL pointers must point to palloc'd data.
* (The const pointers are an exception; we assume they p...
* constant strings.)
*履歴 [#ta8a914b]
-作者:[[testnoda/ページ作者]]
-日付:2006/11/11
|更新日|更新者|更新内容|
||||
*コメント [#va099906]
#comment
終了行:
このページを編集する際は、[[編集に関する方針]]に従ってく...
*概要 [#t24a6df8]
-対象:8.1.4
-言語:C
-[[postgresql-8.1.4/src/include/utils/elog.h]]にて定義
-以下のメンバを持つ構造体
--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として定義
*実装 [#g865a361]
typedef struct ErrorData
{
int elevel; /* error level */
bool output_to_server; /* will report to server log? */
-charの別名。詳細は[[bool/postgresql-8.1.4]]参照。
bool output_to_client; /* will report to client? */
-charの別名。詳細は[[bool/postgresql-8.1.4]]参照。
bool show_funcname; /* true to force funcname inclusion...
-charの別名。詳細は[[bool/postgresql-8.1.4]]参照。
const char *filename; /* __FILE__ of ereport() call */
int lineno; /* __LINE__ of ereport() call */
const char *funcname; /* __func__ of ereport() call */
int sqlerrcode; /* encoded ERRSTATE */
char *message; /* primary error message */
char *detail; /* detail error message */
char *hint; /* hint message */
char *context; /* context message */
int cursorpos; /* cursor index into query string */
int internalpos; /* cursor index into internalquery */
char *internalquery; /* text of internally-generated ...
int saved_errno; /* errno at entry */
} ErrorData;
*呼出元 [#p73ec906]
-[[elog_start()/postgresql-8.1.4]]
*備考 [#v4f75a92]
* ErrorData holds the data accumulated during any one er...
* Any non-NULL pointers must point to palloc'd data.
* (The const pointers are an exception; we assume they p...
* constant strings.)
*履歴 [#ta8a914b]
-作者:[[testnoda/ページ作者]]
-日付:2006/11/11
|更新日|更新者|更新内容|
||||
*コメント [#va099906]
#comment
ページ名: