pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: David Wall <d.wall@computer.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: blob without largeobject api
Date: Wed, 07 Apr 2004 11:43:02 +1200
Message-ID: <40734086.3000308@opencloud.com> (raw)
In-Reply-To: <111c01c41c00$96c706a0$3201a8c0@rasta>
References: <40712C3B.4070606@expot.it>
	<4071D255.3000504@opencloud.com>
	<40729A9A.3060001@axa.it>
	<111c01c41c00$96c706a0$3201a8c0@rasta>

David Wall wrote:

[.. using LOs ..]

> And yes, you do need to wrap this in a transaction, but that should be
> standard operating procedure for anything but toy applications in my opinion
> since who wants to deal with the troubles of out of sync data.

And if you happen to be grabbing all the data you need in one SELECT, 
and the transaction is readonly.. why would you not want to use autocommit?

We had exactly this case in our (distinctly non-toy) application here, 
and it was a PITA to work around when we were using LOs. We use bytea 
now, mostly because of this lack of transparency when using LOs -- with 
a LO, the data isn't really part of the table, and it bites you in all 
sorts of strange ways if you try to treat it as if it was "just another 
field".

-O



view thread (9+ messages)  latest in thread

Message-ID: <40734086.3000308@opencloud.com>
Permalink:  ../40734086.3000308@opencloud.com/
Also on:    postgresql.org/message-id/40734086.3000308@opencloud.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-jdbc@postgresql.org
  Cc: oliver@opencloud.com, d.wall@computer.org
  Subject: Re: blob without largeobject api
  In-Reply-To: <40734086.3000308@opencloud.com>
  References: <40712C3B.4070606@expot.it> <4071D255.3000504@opencloud.com> <40729A9A.3060001@axa.it> <111c01c41c00$96c706a0$3201a8c0@rasta> <40734086.3000308@opencloud.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