Thread

  1. Re: [SQL] Slow Inserts Again

    Herouth Maoz <herouth@oumail.openu.ac.il> — 1999-05-03T14:27:25Z

    At 17:10 +0300 on 03/05/1999, Frank Morton wrote:
    
    
    > Is there a doc somewhere about what characters are treated
    > in some special way when doing a copy?
    
    Yes, the documentation of the COPY command. The essence is that if you use
    the default delimiter (tab), you need to put a backslash before each tab,
    newline and backslash in each of the text fields. Oh, and null fields
    should be converted to \N.
    
    It's all in the docs. Why don't you try to copy some of the rows into a
    temporary table, and dump that table using pg_dump -a -t table_name dbname?
    It may give you a clue.
    
    Herouth
    
    --
    Herouth Maoz, Internet developer.
    Open University of Israel - Telem project
    http://telem.openu.ac.il/~herutma