Revision 14340
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
5685 | 5685 |
LANGUAGE sql |
5686 | 5686 |
AS $_$ |
5687 | 5687 |
-- save data before truncating main table |
5688 |
SELECT util.copy_types_and_data($1, 'pg_temp.__copy');
|
|
5688 |
SELECT util.copy($1, 'pg_temp.__copy'); |
|
5689 | 5689 |
|
5690 | 5690 |
-- repopulate main table w/ copies column |
5691 | 5691 |
SELECT util.truncate($1); |
Also available in: Unified diff
schemas/util.sql: to_freq(): use util.copy() instead of util.copy_types_and_data() to avoid a dependency on util.copy_types_and_data()