PostgreSQL Source Code
git master
|
Go to the source code of this file.
Variables | |
static PLpgSQL_nsitem * | ns_top = NULL |
static int | dump_indent |
|
static |
Definition at line 1466 of file pl_funcs.c.
References PLpgSQL_stmt_assert::cond, dump_expr(), dump_ind(), dump_indent, PLpgSQL_stmt_assert::message, and printf.
Referenced by dump_stmt().
|
static |
Definition at line 974 of file pl_funcs.c.
References dump_expr(), dump_ind(), PLpgSQL_stmt_assign::expr, printf, and PLpgSQL_stmt_assign::varno.
Referenced by dump_stmt().
|
static |
Definition at line 933 of file pl_funcs.c.
References PLpgSQL_exception::action, PLpgSQL_stmt_block::body, PLpgSQL_exception::conditions, PLpgSQL_condition::condname, dump_ind(), dump_stmts(), PLpgSQL_exception_block::exc_list, PLpgSQL_stmt_block::exceptions, PLpgSQL_stmt_block::label, lfirst, name, PLpgSQL_condition::next, and printf.
Referenced by dump_stmt(), and plpgsql_dumptree().
|
static |
Definition at line 1288 of file pl_funcs.c.
References dump_expr(), dump_ind(), PLpgSQL_stmt_call::expr, PLpgSQL_stmt_call::is_call, and printf.
Referenced by dump_stmt().
|
static |
Definition at line 1013 of file pl_funcs.c.
References PLpgSQL_stmt_case::case_when_list, dump_expr(), dump_ind(), dump_indent, dump_stmts(), PLpgSQL_stmt_case::else_stmts, PLpgSQL_case_when::expr, PLpgSQL_stmt_case::have_else, lfirst, printf, PLpgSQL_case_when::stmts, PLpgSQL_stmt_case::t_expr, and PLpgSQL_stmt_case::t_varno.
Referenced by dump_stmt().
|
static |
Definition at line 1272 of file pl_funcs.c.
References PLpgSQL_stmt_close::curvar, dump_ind(), and printf.
Referenced by dump_stmt().
|
static |
Definition at line 1297 of file pl_funcs.c.
References PLpgSQL_stmt_commit::chain, dump_ind(), and printf.
Referenced by dump_stmt().
|
static |
Definition at line 1238 of file pl_funcs.c.
References PLpgSQL_stmt_fetch::direction, dump_expr(), dump_ind(), dump_indent, PLpgSQL_stmt_fetch::expr, FETCH_ABSOLUTE, FETCH_BACKWARD, FETCH_FORWARD, FETCH_RELATIVE, PLpgSQL_stmt_fetch::how_many, and printf.
Referenced by dump_fetch().
|
static |
Definition at line 1504 of file pl_funcs.c.
References PLpgSQL_variable::dno, dump_expr(), dump_ind(), dump_indent, i, lfirst, NIL, PLpgSQL_stmt_dynexecute::params, printf, PLpgSQL_stmt_dynexecute::query, PLpgSQL_variable::refname, PLpgSQL_stmt_dynexecute::strict, and PLpgSQL_stmt_dynexecute::target.
Referenced by dump_stmt().
|
static |
Definition at line 1541 of file pl_funcs.c.
References PLpgSQL_stmt_dynfors::body, dump_expr(), dump_ind(), dump_indent, dump_stmts(), i, lfirst, NIL, PLpgSQL_stmt_dynfors::params, printf, PLpgSQL_stmt_dynfors::query, PLpgSQL_variable::refname, and PLpgSQL_stmt_dynfors::var.
Referenced by dump_stmt().
|
static |
Definition at line 1485 of file pl_funcs.c.
References PLpgSQL_variable::dno, dump_expr(), dump_ind(), dump_indent, printf, PLpgSQL_variable::refname, PLpgSQL_stmt_execsql::sqlstmt, PLpgSQL_stmt_execsql::strict, and PLpgSQL_stmt_execsql::target.
Referenced by dump_stmt().
|
static |
Definition at line 1317 of file pl_funcs.c.
References PLpgSQL_stmt_exit::cond, dump_expr(), dump_ind(), PLpgSQL_stmt_exit::is_exit, PLpgSQL_stmt_exit::label, and printf.
Referenced by dump_stmt().
|
static |
Definition at line 1592 of file pl_funcs.c.
References printf, and PLpgSQL_expr::query.
Referenced by dump_assert(), dump_assign(), dump_call(), dump_case(), dump_cursor_direction(), dump_dynexecute(), dump_dynfors(), dump_execsql(), dump_exit(), dump_forc(), dump_foreach_a(), dump_fori(), dump_fors(), dump_if(), dump_open(), dump_perform(), dump_raise(), dump_return(), dump_return_next(), dump_return_query(), dump_while(), and plpgsql_dumptree().
|
static |
Definition at line 1212 of file pl_funcs.c.
References PLpgSQL_stmt_fetch::curvar, PLpgSQL_variable::dno, dump_cursor_direction(), dump_ind(), dump_indent, PLpgSQL_stmt_fetch::is_move, printf, PLpgSQL_variable::refname, and PLpgSQL_stmt_fetch::target.
Referenced by dump_stmt().
|
static |
Definition at line 1121 of file pl_funcs.c.
References PLpgSQL_stmt_forc::argquery, PLpgSQL_stmt_forc::body, PLpgSQL_stmt_forc::curvar, dump_expr(), dump_ind(), dump_indent, dump_stmts(), printf, PLpgSQL_variable::refname, and PLpgSQL_stmt_forc::var.
Referenced by dump_stmt().
|
static |
Definition at line 1144 of file pl_funcs.c.
References PLpgSQL_stmt_foreach_a::body, dump_expr(), dump_ind(), dump_stmts(), PLpgSQL_stmt_foreach_a::expr, printf, PLpgSQL_stmt_foreach_a::slice, and PLpgSQL_stmt_foreach_a::varno.
Referenced by dump_stmt().
|
static |
Definition at line 1077 of file pl_funcs.c.
References PLpgSQL_stmt_fori::body, dump_expr(), dump_ind(), dump_indent, dump_stmts(), PLpgSQL_stmt_fori::lower, printf, PLpgSQL_var::refname, PLpgSQL_stmt_fori::reverse, PLpgSQL_stmt_fori::step, PLpgSQL_stmt_fori::upper, and PLpgSQL_stmt_fori::var.
Referenced by dump_stmt().
|
static |
Definition at line 1107 of file pl_funcs.c.
References PLpgSQL_stmt_fors::body, dump_expr(), dump_ind(), dump_stmts(), printf, PLpgSQL_stmt_fors::query, PLpgSQL_variable::refname, and PLpgSQL_stmt_fors::var.
Referenced by dump_stmt().
|
static |
Definition at line 1572 of file pl_funcs.c.
References PLpgSQL_stmt_getdiag::diag_items, dump_ind(), PLpgSQL_stmt_getdiag::is_stacked, PLpgSQL_diag_item::kind, lfirst, list_head(), plpgsql_getdiag_kindname(), printf, and PLpgSQL_diag_item::target.
Referenced by dump_stmt().
|
static |
Definition at line 983 of file pl_funcs.c.
References PLpgSQL_stmt_if::cond, PLpgSQL_if_elsif::cond, dump_expr(), dump_ind(), dump_stmts(), PLpgSQL_stmt_if::else_body, PLpgSQL_stmt_if::elsif_list, lfirst, NIL, printf, PLpgSQL_if_elsif::stmts, and PLpgSQL_stmt_if::then_body.
Referenced by dump_stmt().
|
static |
Definition at line 820 of file pl_funcs.c.
References dump_indent, i, and printf.
Referenced by dump_assert(), dump_assign(), dump_block(), dump_call(), dump_case(), dump_close(), dump_commit(), dump_cursor_direction(), dump_dynexecute(), dump_dynfors(), dump_execsql(), dump_exit(), dump_fetch(), dump_forc(), dump_foreach_a(), dump_fori(), dump_fors(), dump_getdiag(), dump_if(), dump_loop(), dump_open(), dump_perform(), dump_raise(), dump_return(), dump_return_next(), dump_return_query(), dump_rollback(), and dump_while().
|
static |
Definition at line 1051 of file pl_funcs.c.
References PLpgSQL_stmt_loop::body, dump_ind(), dump_stmts(), and printf.
Referenced by dump_stmt().
|
static |
Definition at line 1161 of file pl_funcs.c.
References PLpgSQL_stmt_open::argquery, PLpgSQL_stmt_open::curvar, dump_expr(), dump_ind(), dump_indent, PLpgSQL_stmt_open::dynquery, i, lfirst, NIL, PLpgSQL_stmt_open::params, printf, and PLpgSQL_stmt_open::query.
Referenced by dump_stmt().
|
static |
Definition at line 1279 of file pl_funcs.c.
References dump_expr(), dump_ind(), PLpgSQL_stmt_perform::expr, and printf.
Referenced by dump_stmt().
|
static |
Definition at line 1397 of file pl_funcs.c.
References PLpgSQL_stmt_raise::condname, dump_expr(), dump_ind(), dump_indent, PLpgSQL_stmt_raise::elog_level, PLpgSQL_raise_option::expr, i, lfirst, PLpgSQL_stmt_raise::message, PLpgSQL_raise_option::opt_type, PLpgSQL_stmt_raise::options, PLpgSQL_stmt_raise::params, PLPGSQL_RAISEOPTION_COLUMN, PLPGSQL_RAISEOPTION_CONSTRAINT, PLPGSQL_RAISEOPTION_DATATYPE, PLPGSQL_RAISEOPTION_DETAIL, PLPGSQL_RAISEOPTION_ERRCODE, PLPGSQL_RAISEOPTION_HINT, PLPGSQL_RAISEOPTION_MESSAGE, PLPGSQL_RAISEOPTION_SCHEMA, PLPGSQL_RAISEOPTION_TABLE, and printf.
Referenced by dump_stmt().
|
static |
Definition at line 1332 of file pl_funcs.c.
References dump_expr(), dump_ind(), PLpgSQL_stmt_return::expr, printf, and PLpgSQL_stmt_return::retvarno.
Referenced by dump_stmt().
|
static |
Definition at line 1346 of file pl_funcs.c.
References dump_expr(), dump_ind(), PLpgSQL_stmt_return_next::expr, printf, and PLpgSQL_stmt_return_next::retvarno.
Referenced by dump_stmt().
|
static |
Definition at line 1360 of file pl_funcs.c.
References dump_expr(), dump_ind(), dump_indent, PLpgSQL_stmt_return_query::dynquery, i, lfirst, NIL, PLpgSQL_stmt_return_query::params, printf, and PLpgSQL_stmt_return_query::query.
Referenced by dump_stmt().
|
static |
Definition at line 1307 of file pl_funcs.c.
References PLpgSQL_stmt_rollback::chain, dump_ind(), and printf.
Referenced by dump_stmt().
|
static |
Definition at line 829 of file pl_funcs.c.
References PLpgSQL_stmt::cmd_type, PLpgSQL_stmt_block::cmd_type, dump_assert(), dump_assign(), dump_block(), dump_call(), dump_case(), dump_close(), dump_commit(), dump_dynexecute(), dump_dynfors(), dump_execsql(), dump_exit(), dump_fetch(), dump_forc(), dump_foreach_a(), dump_fori(), dump_fors(), dump_getdiag(), dump_if(), dump_loop(), dump_open(), dump_perform(), dump_raise(), dump_return(), dump_return_next(), dump_return_query(), dump_rollback(), dump_while(), elog(), ERROR, PLpgSQL_stmt::lineno, PLPGSQL_STMT_ASSERT, PLPGSQL_STMT_ASSIGN, PLPGSQL_STMT_BLOCK, PLPGSQL_STMT_CALL, PLPGSQL_STMT_CASE, PLPGSQL_STMT_CLOSE, PLPGSQL_STMT_COMMIT, PLPGSQL_STMT_DYNEXECUTE, PLPGSQL_STMT_DYNFORS, PLPGSQL_STMT_EXECSQL, PLPGSQL_STMT_EXIT, PLPGSQL_STMT_FETCH, PLPGSQL_STMT_FORC, PLPGSQL_STMT_FOREACH_A, PLPGSQL_STMT_FORI, PLPGSQL_STMT_FORS, PLPGSQL_STMT_GETDIAG, PLPGSQL_STMT_IF, PLPGSQL_STMT_LOOP, PLPGSQL_STMT_OPEN, PLPGSQL_STMT_PERFORM, PLPGSQL_STMT_RAISE, PLPGSQL_STMT_RETURN, PLPGSQL_STMT_RETURN_NEXT, PLPGSQL_STMT_RETURN_QUERY, PLPGSQL_STMT_ROLLBACK, PLPGSQL_STMT_WHILE, and printf.
Referenced by dump_stmts().
|
static |
Definition at line 922 of file pl_funcs.c.
References dump_indent, dump_stmt(), and lfirst.
Referenced by dump_block(), dump_case(), dump_dynfors(), dump_forc(), dump_foreach_a(), dump_fori(), dump_fors(), dump_if(), dump_loop(), and dump_while().
|
static |
Definition at line 1063 of file pl_funcs.c.
References PLpgSQL_stmt_while::body, PLpgSQL_stmt_while::cond, dump_expr(), dump_ind(), dump_stmts(), and printf.
Referenced by dump_stmt().
|
static |
Definition at line 672 of file pl_funcs.c.
References PLpgSQL_stmt_assert::cond, free_expr(), and PLpgSQL_stmt_assert::message.
Referenced by free_stmt().
|
static |
Definition at line 495 of file pl_funcs.c.
References PLpgSQL_stmt_assign::expr, and free_expr().
Referenced by free_stmt().
|
static |
Definition at line 478 of file pl_funcs.c.
References PLpgSQL_exception::action, PLpgSQL_stmt_block::body, PLpgSQL_exception_block::exc_list, PLpgSQL_stmt_block::exceptions, free_stmts(), and lfirst.
Referenced by free_stmt(), and plpgsql_free_function_memory().
|
static |
Definition at line 608 of file pl_funcs.c.
References PLpgSQL_stmt_call::expr, and free_expr().
Referenced by free_stmt().
|
static |
Definition at line 518 of file pl_funcs.c.
References PLpgSQL_stmt_case::case_when_list, PLpgSQL_stmt_case::else_stmts, PLpgSQL_case_when::expr, free_expr(), free_stmts(), lfirst, PLpgSQL_case_when::stmts, and PLpgSQL_stmt_case::t_expr.
Referenced by free_stmt().
|
static |
|
static |
|
static |
Definition at line 685 of file pl_funcs.c.
References free_expr(), lfirst, PLpgSQL_stmt_dynexecute::params, and PLpgSQL_stmt_dynexecute::query.
Referenced by free_stmt().
|
static |
Definition at line 697 of file pl_funcs.c.
References PLpgSQL_stmt_dynfors::body, free_expr(), free_stmts(), lfirst, PLpgSQL_stmt_dynfors::params, and PLpgSQL_stmt_dynfors::query.
Referenced by free_stmt().
|
static |
Definition at line 679 of file pl_funcs.c.
References free_expr(), and PLpgSQL_stmt_execsql::sqlstmt.
Referenced by free_stmt().
|
static |
Definition at line 624 of file pl_funcs.c.
References PLpgSQL_stmt_exit::cond, and free_expr().
Referenced by free_stmt().
|
static |
Definition at line 715 of file pl_funcs.c.
References PLpgSQL_expr::plan, and SPI_freeplan().
Referenced by free_assert(), free_assign(), free_call(), free_case(), free_dynexecute(), free_dynfors(), free_execsql(), free_exit(), free_fetch(), free_forc(), free_foreach_a(), free_fori(), free_fors(), free_if(), free_open(), free_perform(), free_raise(), free_return(), free_return_next(), free_return_query(), free_while(), and plpgsql_free_function_memory().
|
static |
Definition at line 591 of file pl_funcs.c.
References PLpgSQL_stmt_fetch::expr, and free_expr().
Referenced by free_stmt().
|
static |
Definition at line 563 of file pl_funcs.c.
References PLpgSQL_stmt_forc::argquery, PLpgSQL_stmt_forc::body, free_expr(), and free_stmts().
Referenced by free_stmt().
|
static |
Definition at line 570 of file pl_funcs.c.
References PLpgSQL_stmt_foreach_a::body, PLpgSQL_stmt_foreach_a::expr, free_expr(), and free_stmts().
Referenced by free_stmt().
|
static |
Definition at line 547 of file pl_funcs.c.
References PLpgSQL_stmt_fori::body, free_expr(), free_stmts(), PLpgSQL_stmt_fori::lower, PLpgSQL_stmt_fori::step, and PLpgSQL_stmt_fori::upper.
Referenced by free_stmt().
|
static |
Definition at line 556 of file pl_funcs.c.
References PLpgSQL_stmt_fors::body, free_expr(), free_stmts(), and PLpgSQL_stmt_fors::query.
Referenced by free_stmt().
|
static |
|
static |
Definition at line 501 of file pl_funcs.c.
References PLpgSQL_stmt_if::cond, PLpgSQL_if_elsif::cond, PLpgSQL_stmt_if::else_body, PLpgSQL_stmt_if::elsif_list, free_expr(), free_stmts(), lfirst, PLpgSQL_if_elsif::stmts, and PLpgSQL_stmt_if::then_body.
Referenced by free_stmt().
|
static |
Definition at line 534 of file pl_funcs.c.
References PLpgSQL_stmt_loop::body, and free_stmts().
Referenced by free_stmt().
|
static |
Definition at line 577 of file pl_funcs.c.
References PLpgSQL_stmt_open::argquery, PLpgSQL_stmt_open::dynquery, free_expr(), lfirst, PLpgSQL_stmt_open::params, and PLpgSQL_stmt_open::query.
Referenced by free_stmt().
|
static |
Definition at line 602 of file pl_funcs.c.
References PLpgSQL_stmt_perform::expr, and free_expr().
Referenced by free_stmt().
|
static |
Definition at line 655 of file pl_funcs.c.
References PLpgSQL_raise_option::expr, free_expr(), lfirst, PLpgSQL_stmt_raise::options, and PLpgSQL_stmt_raise::params.
Referenced by free_stmt().
|
static |
Definition at line 630 of file pl_funcs.c.
References PLpgSQL_stmt_return::expr, and free_expr().
Referenced by free_stmt().
|
static |
Definition at line 636 of file pl_funcs.c.
References PLpgSQL_stmt_return_next::expr, and free_expr().
Referenced by free_stmt().
|
static |
Definition at line 642 of file pl_funcs.c.
References PLpgSQL_stmt_return_query::dynquery, free_expr(), lfirst, PLpgSQL_stmt_return_query::params, and PLpgSQL_stmt_return_query::query.
Referenced by free_stmt().
|
static |
|
static |
Definition at line 375 of file pl_funcs.c.
References PLpgSQL_stmt::cmd_type, PLpgSQL_stmt_block::cmd_type, elog(), ERROR, free_assert(), free_assign(), free_block(), free_call(), free_case(), free_close(), free_commit(), free_dynexecute(), free_dynfors(), free_execsql(), free_exit(), free_fetch(), free_forc(), free_foreach_a(), free_fori(), free_fors(), free_getdiag(), free_if(), free_loop(), free_open(), free_perform(), free_raise(), free_return(), free_return_next(), free_return_query(), free_rollback(), free_while(), PLPGSQL_STMT_ASSERT, PLPGSQL_STMT_ASSIGN, PLPGSQL_STMT_BLOCK, PLPGSQL_STMT_CALL, PLPGSQL_STMT_CASE, PLPGSQL_STMT_CLOSE, PLPGSQL_STMT_COMMIT, PLPGSQL_STMT_DYNEXECUTE, PLPGSQL_STMT_DYNFORS, PLPGSQL_STMT_EXECSQL, PLPGSQL_STMT_EXIT, PLPGSQL_STMT_FETCH, PLPGSQL_STMT_FORC, PLPGSQL_STMT_FOREACH_A, PLPGSQL_STMT_FORI, PLPGSQL_STMT_FORS, PLPGSQL_STMT_GETDIAG, PLPGSQL_STMT_IF, PLPGSQL_STMT_LOOP, PLPGSQL_STMT_OPEN, PLPGSQL_STMT_PERFORM, PLPGSQL_STMT_RAISE, PLPGSQL_STMT_RETURN, PLPGSQL_STMT_RETURN_NEXT, PLPGSQL_STMT_RETURN_QUERY, PLPGSQL_STMT_ROLLBACK, and PLPGSQL_STMT_WHILE.
Referenced by free_stmts().
|
static |
Definition at line 467 of file pl_funcs.c.
References free_stmt(), and lfirst.
Referenced by free_block(), free_case(), free_dynfors(), free_forc(), free_foreach_a(), free_fori(), free_fors(), free_if(), free_loop(), and free_while().
|
static |
Definition at line 540 of file pl_funcs.c.
References PLpgSQL_stmt_while::body, PLpgSQL_stmt_while::cond, free_expr(), and free_stmts().
Referenced by free_stmt().
void plpgsql_dumptree | ( | PLpgSQL_function * | func | ) |
Definition at line 1598 of file pl_funcs.c.
References PLpgSQL_function::action, PLpgSQL_type::atttypmod, PLpgSQL_var::cursor_explicit_argrow, PLpgSQL_var::cursor_explicit_expr, PLpgSQL_var::datatype, PLpgSQL_function::datums, PLpgSQL_var::default_val, PLpgSQL_datum::dtype, PLpgSQL_rec::dtype, dump_block(), dump_expr(), dump_indent, fflush(), PLpgSQL_row::fieldnames, PLpgSQL_function::fn_signature, i, PLpgSQL_var::isconst, j, PLpgSQL_stmt_block::lineno, PLpgSQL_function::ndatums, PLpgSQL_row::nfields, PLpgSQL_var::notnull, PLPGSQL_DTYPE_PROMISE, PLPGSQL_DTYPE_REC, PLPGSQL_DTYPE_RECFIELD, PLPGSQL_DTYPE_ROW, PLPGSQL_DTYPE_VAR, PLPGSQL_PROMISE_NONE, printf, PLpgSQL_var::promise, PLpgSQL_var::refname, PLpgSQL_row::refname, generate_unaccent_rules::stdout, PLpgSQL_type::typname, PLpgSQL_type::typoid, and PLpgSQL_row::varnos.
Referenced by do_compile().
void plpgsql_free_function_memory | ( | PLpgSQL_function * | func | ) |
Definition at line 725 of file pl_funcs.c.
References PLpgSQL_function::action, Assert(), PLpgSQL_var::cursor_explicit_expr, PLpgSQL_function::datums, PLpgSQL_var::default_val, PLpgSQL_rec::default_val, PLpgSQL_datum::dtype, elog(), ERROR, PLpgSQL_function::fn_cxt, free_block(), free_expr(), i, MemoryContextDelete(), PLpgSQL_function::ndatums, PLPGSQL_DTYPE_PROMISE, PLPGSQL_DTYPE_REC, PLPGSQL_DTYPE_RECFIELD, PLPGSQL_DTYPE_ROW, PLPGSQL_DTYPE_VAR, and PLpgSQL_function::use_count.
Referenced by delete_function(), and plpgsql_inline_handler().
const char* plpgsql_getdiag_kindname | ( | PLpgSQL_getdiag_kind | kind | ) |
Definition at line 300 of file pl_funcs.c.
References PLPGSQL_GETDIAG_COLUMN_NAME, PLPGSQL_GETDIAG_CONSTRAINT_NAME, PLPGSQL_GETDIAG_CONTEXT, PLPGSQL_GETDIAG_DATATYPE_NAME, PLPGSQL_GETDIAG_ERROR_CONTEXT, PLPGSQL_GETDIAG_ERROR_DETAIL, PLPGSQL_GETDIAG_ERROR_HINT, PLPGSQL_GETDIAG_MESSAGE_TEXT, PLPGSQL_GETDIAG_RETURNED_SQLSTATE, PLPGSQL_GETDIAG_ROW_COUNT, PLPGSQL_GETDIAG_SCHEMA_NAME, and PLPGSQL_GETDIAG_TABLE_NAME.
Referenced by dump_getdiag().
void plpgsql_ns_additem | ( | PLpgSQL_nsitem_type | itemtype, |
int | itemno, | ||
const char * | name | ||
) |
Definition at line 92 of file pl_funcs.c.
References Assert(), PLpgSQL_nsitem::itemno, PLpgSQL_nsitem::itemtype, name, PLpgSQL_nsitem::name, ns_top, palloc(), PLPGSQL_NSTYPE_LABEL, and PLpgSQL_nsitem::prev.
Referenced by add_parameter_name(), plpgsql_build_record(), plpgsql_build_variable(), and plpgsql_ns_push().
PLpgSQL_nsitem* plpgsql_ns_find_nearest_loop | ( | PLpgSQL_nsitem * | ns_cur | ) |
Definition at line 214 of file pl_funcs.c.
References PLpgSQL_nsitem::itemno, PLpgSQL_nsitem::itemtype, PLPGSQL_LABEL_LOOP, PLPGSQL_NSTYPE_LABEL, and PLpgSQL_nsitem::prev.
void plpgsql_ns_init | ( | void | ) |
Definition at line 43 of file pl_funcs.c.
References ns_top.
Referenced by do_compile(), and plpgsql_compile_inline().
PLpgSQL_nsitem* plpgsql_ns_lookup | ( | PLpgSQL_nsitem * | ns_cur, |
bool | localmode, | ||
const char * | name1, | ||
const char * | name2, | ||
const char * | name3, | ||
int * | names_used | ||
) |
Definition at line 130 of file pl_funcs.c.
References PLpgSQL_nsitem::itemtype, PLpgSQL_nsitem::name, PLPGSQL_NSTYPE_LABEL, PLPGSQL_NSTYPE_VAR, and PLpgSQL_nsitem::prev.
Referenced by add_parameter_name(), plpgsql_param_ref(), plpgsql_parse_cwordtype(), plpgsql_parse_dblword(), plpgsql_parse_tripword(), plpgsql_parse_word(), plpgsql_parse_wordtype(), and resolve_column_ref().
PLpgSQL_nsitem* plpgsql_ns_lookup_label | ( | PLpgSQL_nsitem * | ns_cur, |
const char * | name | ||
) |
Definition at line 195 of file pl_funcs.c.
References PLpgSQL_nsitem::itemtype, name, PLpgSQL_nsitem::name, PLPGSQL_NSTYPE_LABEL, and PLpgSQL_nsitem::prev.
void plpgsql_ns_pop | ( | void | ) |
Definition at line 67 of file pl_funcs.c.
References Assert(), PLpgSQL_nsitem::itemtype, ns_top, PLPGSQL_NSTYPE_LABEL, and PLpgSQL_nsitem::prev.
void plpgsql_ns_push | ( | const char * | label, |
PLpgSQL_label_type | label_type | ||
) |
Definition at line 54 of file pl_funcs.c.
References label, plpgsql_ns_additem(), and PLPGSQL_NSTYPE_LABEL.
Referenced by do_compile(), and plpgsql_compile_inline().
PLpgSQL_nsitem* plpgsql_ns_top | ( | void | ) |
Definition at line 81 of file pl_funcs.c.
References ns_top.
Referenced by add_parameter_name(), plpgsql_parse_cwordtype(), plpgsql_parse_dblword(), plpgsql_parse_tripword(), plpgsql_parse_word(), and plpgsql_parse_wordtype().
const char* plpgsql_stmt_typename | ( | PLpgSQL_stmt * | stmt | ) |
Definition at line 232 of file pl_funcs.c.
References _, PLpgSQL_stmt::cmd_type, PLPGSQL_STMT_ASSERT, PLPGSQL_STMT_ASSIGN, PLPGSQL_STMT_BLOCK, PLPGSQL_STMT_CALL, PLPGSQL_STMT_CASE, PLPGSQL_STMT_CLOSE, PLPGSQL_STMT_COMMIT, PLPGSQL_STMT_DYNEXECUTE, PLPGSQL_STMT_DYNFORS, PLPGSQL_STMT_EXECSQL, PLPGSQL_STMT_EXIT, PLPGSQL_STMT_FETCH, PLPGSQL_STMT_FORC, PLPGSQL_STMT_FOREACH_A, PLPGSQL_STMT_FORI, PLPGSQL_STMT_FORS, PLPGSQL_STMT_GETDIAG, PLPGSQL_STMT_IF, PLPGSQL_STMT_LOOP, PLPGSQL_STMT_OPEN, PLPGSQL_STMT_PERFORM, PLPGSQL_STMT_RAISE, PLPGSQL_STMT_RETURN, PLPGSQL_STMT_RETURN_NEXT, PLPGSQL_STMT_RETURN_QUERY, PLPGSQL_STMT_ROLLBACK, and PLPGSQL_STMT_WHILE.
Referenced by plpgsql_exec_error_callback().
|
static |
Definition at line 784 of file pl_funcs.c.
Referenced by dump_assert(), dump_case(), dump_cursor_direction(), dump_dynexecute(), dump_dynfors(), dump_execsql(), dump_fetch(), dump_forc(), dump_fori(), dump_ind(), dump_open(), dump_raise(), dump_return_query(), dump_stmts(), and plpgsql_dumptree().
|
static |
Definition at line 35 of file pl_funcs.c.
Referenced by plpgsql_ns_additem(), plpgsql_ns_init(), plpgsql_ns_pop(), and plpgsql_ns_top().