Revision 14261
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
4070 | 4070 |
|
4071 | 4071 |
|
4072 | 4072 |
-- |
4073 |
-- Name: pg_get_expr(pg_node_tree, oid, boolean); Type: FUNCTION; Schema: util; Owner: - |
|
4074 |
-- |
|
4075 |
|
|
4076 |
CREATE FUNCTION pg_get_expr(node_tree pg_node_tree, table_ oid, pretty_print boolean DEFAULT false) RETURNS text |
|
4077 |
LANGUAGE sql STABLE |
|
4078 |
SET search_path TO pg_temp |
|
4079 |
AS $$ |
|
4080 |
SELECT pg_catalog.pg_get_expr(node_tree, table_, pretty_print) |
|
4081 |
$$; |
|
4082 |
|
|
4083 |
|
|
4084 |
-- |
|
4073 | 4085 |
-- Name: pg_get_viewdef(regclass); Type: FUNCTION; Schema: util; Owner: - |
4074 | 4086 |
-- |
4075 | 4087 |
|
Also available in: Unified diff
schemas/util.sql: added pg_get_expr() wrapper, which sets search_path to pg_temp