pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Volkan YAZICI <volkan.yazici@gmail.com>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: Adam Witney <awitney@sgul.ac.uk>
Cc: pgsql-php <pgsql-php@postgresql.org>
Subject: Re: Automatically opening pdf files stored in a bytea field
Date: Wed, 12 Oct 2005 20:08:29 +0300
Message-ID: <7104a7370510121008h198d5013vdd29c30394984855@mail.gmail.com> (raw)
In-Reply-To: <434C66E0.8060801@familyhealth.com.au>
References: <BF715966.4EE66%awitney@sgul.ac.uk>
	<434C66E0.8060801@familyhealth.com.au>

Hi,

On 10/12/05, Christopher Kings-Lynne <chriskl@familyhealth.com.au> wrote:
> I'm not 100% sure you need the pg_unescape_bytea - I thought that was
> already done automatically?

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.

Regards.



view thread (9+ messages)  latest in thread

Message-ID: <7104a7370510121008h198d5013vdd29c30394984855@mail.gmail.com>
Permalink:  ../7104a7370510121008h198d5013vdd29c30394984855@mail.gmail.com/
Also on:    postgresql.org/message-id/7104a7370510121008h198d5013vdd29c30394984855@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: volkan.yazici@gmail.com, chriskl@familyhealth.com.au, awitney@sgul.ac.uk
  Subject: Re: Automatically opening pdf files stored in a bytea field
  In-Reply-To: <7104a7370510121008h198d5013vdd29c30394984855@mail.gmail.com>
  References: <BF715966.4EE66%awitney@sgul.ac.uk> <434C66E0.8060801@familyhealth.com.au> <7104a7370510121008h198d5013vdd29c30394984855@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox