Revision 11831
Added by Aaron Marcuse-Kubitza about 11 years ago
util.sql | ||
---|---|---|
1104 | 1104 |
|
1105 | 1105 |
|
1106 | 1106 |
-- |
1107 |
-- Name: explain2table(regclass, text); Type: FUNCTION; Schema: util; Owner: - |
|
1108 |
-- |
|
1109 |
|
|
1110 |
CREATE FUNCTION explain2table(table_ regclass, sql text) RETURNS void |
|
1111 |
LANGUAGE sql |
|
1112 |
AS $_$ |
|
1113 |
SELECT util.eval($$INSERT INTO $$||$1||$$ SELECT util.explain( |
|
1114 |
$$||quote_nullable($2)||$$ |
|
1115 |
)$$) |
|
1116 |
$_$; |
|
1117 |
|
|
1118 |
|
|
1119 |
-- |
|
1107 | 1120 |
-- Name: fix_array(anyarray); Type: FUNCTION; Schema: util; Owner: - |
1108 | 1121 |
-- |
1109 | 1122 |
|
Also available in: Unified diff
schemas/util.sql: added explain2table()