From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Marc Haber <mh+pgsql-general(at)zugschlus(dot)de> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Need help with quote escaping in exim for postgresql |
Date: | 2006-07-09 18:56:28 |
Message-ID: | 20060709185628.GB9762@surnet.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Marc Haber wrote:
> Please note that exim is so flexible that it is possible to implement
> mail spool storage in an SQL database. In this case, we'd write data
> which originated in an untrusted source to the database, not knowing
> about encoding at all.
If you are going to store things in multiple encodings and you don't
know (or don't want to waste time figuring out) which encoding each is
on, probably you should be using SQL_ASCII. This means Postgres itself
will never try to mess with bytes (it will never recode stuff). The
downside is that the sort order may be incorrect in some queries, but
I'm not sure if this is a great problem for a mail spool.
Otherwise you do have to declare the encoding you are going to enter
data in (using the client_encoding config option). Not doing it causes
all sort of weird problems.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From | Date | Subject | |
---|---|---|---|
Next Message | Karsten Hilbert | 2006-07-09 20:34:13 | timestamp with definable accuracy, was: Re: empty text fields |
Previous Message | Alvaro Herrera | 2006-07-09 18:48:19 | Re: Procedural language functions across servers |