Revision 10366
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/runscripts/table.run | ||
---|---|---|
63 | 63 |
SELECT util.reset_map_table('$map_table'); |
64 | 64 |
ALTER TABLE $map_table DISABLE TRIGGER map_filter_insert; |
65 | 65 |
\copy $map_table FROM 'map.csv' CSV HEADER; |
66 |
SELECT util.set_col_names_with_metadata('"$table"', '$map_table'::regclass);
|
|
66 |
SELECT util.set_col_names_with_metadata('"$table"', '$map_table'); |
|
67 | 67 |
EOF |
68 | 68 |
} |
69 | 69 |
|
Also available in: Unified diff
lib/runscripts/table.run: map_table(): util.set_col_names_with_metadata(): removed unnecessary cast to regclass, which is performed implicitly. this used to be needed when the polymorphic util.rename_cols() was used instead.