logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Automatically opening pdf files stored in a bytea field: msg#00027

Subject: Re: Automatically opening pdf files stored in a bytea field
Yep, I agree. Furthermore, (un)escape routines will consume so much
system CPU. If you can, try to use parameters (pg_query_params() and
pg_send_params()) in any bytea/lo storage. This makes you free from
escaping without any potential SQL Injection threats.

PostgreSQL prepared statements don't escape bytea afaik

Chris


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster



<Prev in Thread] Current Thread [Next in Thread>