Re: Picture with Postgres and Delphi - Mailing list pgsql-general

From Jonathan Bartlett
Subject Re: Picture with Postgres and Delphi
Date
Msg-id Pine.GSU.4.44.0309091953370.11193-100000@eskimo.com
Whole thread Raw
In response to Re: Picture with Postgres and Delphi  (Jeff Eckermann <jeff_eckermann@yahoo.com>)
Responses Re: Picture with Postgres and Delphi
Re: Picture with Postgres and Delphi
List pgsql-general
> For the education of me and maybe others too, why was
> that?  i.e. what problems did you run into, that bytea avoids?
>

Compared to the filesystem, bytea provides data integrity.

Bytea gives you remote access, which you can cache if needed.

Bytea gives you the same permissions as anything else in Postgres, so you
don't have to worry about that separately.

Compared to BLOBs, bytea's are just simpler.  You can select them with a
single statement, you don't have to worry about leaving unreferenced
BLOBs, and, after 4 billion inserts, byteas are still meaningful while
BLOBs might not be. (due to OID problems).

Jon


> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>


pgsql-general by date:

Previous
From: expect
Date:
Subject: SUMMARY mysql -> psql
Next
From: Bruno Wolff III
Date:
Subject: Re: How to convert a UnixTimestamp to a PostgreSQL date without using ::abstime ?