Loading CONCEPT.csv into Postgres fails due to double quotes… everywhere
- Double quotes representing “inches” in concept_name
- Embedded quoted strings in concept_name
@priagopal Copy command fails on OSX (and I assume Linux) due to the single quote character. I replaced the single quotes with the standard ASCII characters and this works on Mac:
\copy concept(concept_id,concept_name,domain_id,vocabulary_id,concept_class_id,standard_concept,concept_code,valid_start_date,valid_end_date,invalid_reason) FROM 'CONCEPT.csv' DELIMITER E'\t' QUOTE E'\b' NULL AS '' CSV HEADER;
Another practice that I follow:
- Load the concept tables before applying contstraints, indexes and PKeys to avoid issues with load order.
Bill