pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John DeSoi <jdesoi@gmail.com>
To: tigran2-postgres@riatest.com
Cc: pgsql-php@postgresql.org
Subject: Re: Storing large files in multiple schemas: BLOB or BYTEA
Date: Thu, 11 Oct 2012 08:59:13 -0400
Message-ID: <EFC71856-826E-4F87-834B-F624BFD8C5B9@gmail.com> (raw)
In-Reply-To: <006d01cda6cf$b5e642e0$21b2c8a0$@riatest.com>
References: <006d01cda6cf$b5e642e0$21b2c8a0$@riatest.com>


On Oct 10, 2012, at 6:12 AM, tigran2-postgres@riatest.com wrote:

> 2. BYTEA. These are correctly stored per schema so pg_dump –n works correctly however I cannot seem to find a way to stream the data. This means that there is no way to access the data from PHP if it is larger than memory limit.

You can get the octet length and then use the substring function to grab large columns in chunks. See

http://www.postgresql.org/docs/current/interactive/functions-binarystring.html


John DeSoi, Ph.D.





view thread (3+ messages)  latest in thread

Message-ID: <EFC71856-826E-4F87-834B-F624BFD8C5B9@gmail.com>
Permalink:  ../EFC71856-826E-4F87-834B-F624BFD8C5B9@gmail.com/
Also on:    postgresql.org/message-id/EFC71856-826E-4F87-834B-F624BFD8C5B9@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: jdesoi@gmail.com, tigran2-postgres@riatest.com
  Subject: Re: Storing large files in multiple schemas: BLOB or BYTEA
  In-Reply-To: <EFC71856-826E-4F87-834B-F624BFD8C5B9@gmail.com>
  References: <006d01cda6cf$b5e642e0$21b2c8a0$@riatest.com> <EFC71856-826E-4F87-834B-F624BFD8C5B9@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