Revision 12655
Added by Aaron Marcuse-Kubitza over 10 years ago
util.sql | ||
---|---|---|
679 | 679 |
|
680 | 680 |
|
681 | 681 |
-- |
682 |
-- Name: auto_rm_freq(regclass, text); Type: FUNCTION; Schema: util; Owner: - |
|
683 |
-- |
|
684 |
|
|
685 |
CREATE FUNCTION auto_rm_freq(table_ regclass, freq_col text DEFAULT 'copies'::text) RETURNS void |
|
686 |
LANGUAGE sql |
|
687 |
AS $_$ |
|
688 |
SELECT CASE WHEN util.freq_always_1($1, $2) THEN util.drop_column(($1, $2)) END |
|
689 |
$_$; |
|
690 |
|
|
691 |
|
|
692 |
-- |
|
682 | 693 |
-- Name: cluster_index(regclass); Type: FUNCTION; Schema: util; Owner: - |
683 | 694 |
-- |
684 | 695 |
|
Also available in: Unified diff
schemas/util.sql: added auto_rm_freq(regclass)