pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: François Delpierre <pgsql@pivert.org>
To: pgsql-php@postgresql.org
Subject: Re: How to store files into the DB with PHP. (bytea ?)
Date: Mon, 2 Feb 2009 15:13:10 +0100
Message-ID: <200902021513.11175.pgsql@pivert.org> (raw)
In-Reply-To: <5713.193.179.187.70.1233580658.squirrel@sq.gransy.com>
References: <200902021102.06157.pgsql@pivert.org>
	<200902021355.35100.pgsql@pivert.org>
	<5713.193.179.187.70.1233580658.squirrel@sq.gransy.com>

On Monday 02 February 2009 14:17:38 tv@fuzzy.cz wrote:
>
> But I am just guessing - about a month ago I wrote an article about ways
> to store files in a PostgreSQL database:
>
> http://www.fuzzy.cz/en/articles/storing-files-in-a-postgresql-database/
>
> The site is still under construction, so a lot of stuff is missing there
> (sorry), but the last section might give you a hint how to mimic LOBs, get
> rid of some of the BYTEA / LOB disadvantages.
Thanks for this address, this clearly expose the problem. It looks like there 
is no perfect solution. As I can live with a file size limit of 15Mo for a 
memory_limit of 64Mo in PHP, I'll certainly go to BYTEA. Anyway, if I use 
stored procedures to enforce security, the PHP pg_lo_xxx functions will be 
useless.

Thanks a lot,

François Delpierre



view thread (7+ messages)  latest in thread

Message-ID: <200902021513.11175.pgsql@pivert.org>
Permalink:  ../200902021513.11175.pgsql@pivert.org/
Also on:    postgresql.org/message-id/200902021513.11175.pgsql@pivert.org

 · 

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: pgsql@pivert.org
  Subject: Re: How to store files into the DB with PHP. (bytea ?)
  In-Reply-To: <200902021513.11175.pgsql@pivert.org>
  References: <200902021102.06157.pgsql@pivert.org> <200902021355.35100.pgsql@pivert.org> <5713.193.179.187.70.1233580658.squirrel@sq.gransy.com> <200902021513.11175.pgsql@pivert.org>

* 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