I have not worked with BLOBs in PostgreSQL, but I have inserted large obejects into the database. In PostgreSQL 7.1 and later (maybe 7.0 also, I forget) the text field can hold really large data pieces. I have stored photos in text fields. They were thumbnail size of about 20-30 kb in size. Text fields only hold text so I used MIME::Base64 to convert my images to/from text at write/read time.

In short, there are situations where the overhead of blob processing is unneeded. I have in testing put Base64 text of over a megabyte in a PostgreSQL field.

One caveat is SELECT * from table; with these monster fields embedded in the table.Also the object will have to exist in your programs data space both on insert and extract whereas blobs can be loaded directly to and from flat files.


In reply to Re: DBI and BLOBs by dga
in thread DBI and BLOBs by Improv

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.