Bruce,

> Yep, you have to double backslahses coming in as data so we can use
> backslash for marking null, delimiters, etc.  I see no way around that,
> and no one since Berkeley has come up with one either.  If you have an
> idea, we would _love_ to hear it.

Apropos to the previous thread on escape processing, IMEO it needs to be
switchable (e.g. No default of "\" as the escape character, escape
processing not done by default).  Otherwise lots of data loading scenarios
(e.g. virtually all weblog sources) break in nasty ways.

The remedy to date has been to perform extended preprocessing of the data to
"pre-escape process" the data so that it will pass through the default
escape processing of the PostgreSQL copy processing.

I propose an extended syntax to COPY with a change in semantics to remove
the default of "WITH ESCAPE '\'".

- Luke



---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
      joining column's datatypes do not match

Reply via email to