Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T7woa-00020l-Su for pgsql-jdbc@postgresql.org; Sat, 01 Sep 2012 23:09:21 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T7woY-0005PL-H8 for pgsql-jdbc@postgresql.org; Sat, 01 Sep 2012 23:09:19 +0000 Received: by pbbrr13 with SMTP id rr13so6528320pbb.19 for ; Sat, 01 Sep 2012 16:09:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:x-gm-message-state; bh=bGERpExRjO5CmH/WGU6iGAVUICTFhLGGFIsR1woxhK4=; b=pGzRKRROtAVfIScmigEtE0dRNeZy6CQVmi2M0zEHPofIFkuDDcY2CQoQmlQjbG39DC Du4c08Tuj03dDB8iZ6h0g1RHqjGYSoceDLg5eFbHEHhl9nssC0e3fQvrBGfE9wcvxoGu e3lzJ9HRSM+3nQ0T9QqW3XhWLTgf1gNqQyvi6GtsglMThBOvYRfX0aitcNEjBJUdNSd9 7qt6S0KSNP4CLeUZfo8/v1/zvSfsJQS/HEhbrHESlgid29cyYB0QB3YulDCCQWPPm6H1 +ftepFOPlRUTxPez+v5v0x8XBPqSSFwvZZpANRSjV8uXTnYzLyfZ5++xrOZqDNbeRizB /D4g== Received: by 10.66.81.201 with SMTP id c9mr23925681pay.80.1346540956316; Sat, 01 Sep 2012 16:09:16 -0700 (PDT) Received: from ayaki.localdomain (203-219-208-78.static.tpgi.com.au. [203.219.208.78]) by mx.google.com with ESMTPS id vf8sm6491670pbc.27.2012.09.01.16.09.13 (version=SSLv3 cipher=OTHER); Sat, 01 Sep 2012 16:09:15 -0700 (PDT) Message-ID: <50429596.5070906@ringerc.id.au> Date: Sun, 02 Sep 2012 07:09:10 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: =?UTF-8?B?V2VybmVyIERvbm7DqQ==?= CC: "pgsql-jdbc@postgresql.org" Subject: Re: Streaming bytea implementation offered References: <6EA298B8-34D9-4832-A722-161911A22AB6@pincette.biz> <50415F0B.9020504@ringerc.id.au> In-Reply-To: Content-Type: multipart/alternative; boundary="------------050001010709040004070805" X-Gm-Message-State: ALoCoQlbOVBWdFSZaBP0yOK66rKr6FWJnxYFi0/fIRZDACkEb3pEeUTD0K0oX7v4oXNtvRP3X1BO X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201209/3 X-Sequence-Number: 23239 This is a multi-part message in MIME format. --------------050001010709040004070805 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 09/01/2012 11:13 PM, Werner Donné wrote: > > We will have to fall back on copying the byte array in case a temporary file couldn't be created, for whatever reason. That's reasonable, especially if we log the fact at debug/trace level too, to encourage people to turn the feature off if it doesn't apply in their environment. >> Do you propose to make this always-on, or configurable? > The treashold could be configurable. I think it'll need to be, if nothing else to stop people from having tempfile issues. >> How (if at all) does this interact with JDBC-standard BLOB support, and with large objects? > It has no effect on either. I suspected not, but it's good to confirm. Thanks. > I have never used git, nor have I written unit tests, but I'll have a look. If you've used any SCM like CVS, Subversion, or Perforce the principles are similar for basic use. I highly recommend it. This'll be handy: https://help.github.com/ GitHub have spent a lot of time and effort writing documentation and tutorials for git. Sorry to ask you to do that; I'd probably just grab the source tarball and pick through it, but I'm on a travelling holiday for the next couple of weeks and just trying to check in on the mailing list sometimes. -- Craig Ringer --------------050001010709040004070805 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 09/01/2012 11:13 PM, Werner Donné wrote:

We will have to fall back on copying the byte array in case a temporary file couldn't be created, for whatever reason.
That's reasonable, especially if we log the fact at debug/trace level too, to encourage people to turn the feature off if it doesn't apply in their environment.
Do you propose to make this always-on, or configurable?
The treashold could be configurable.
I think it'll need to be, if nothing else to stop people from having tempfile issues.

      
How (if at all) does this interact with JDBC-standard BLOB support, and with large objects?
It has no effect on either.
I suspected not, but it's good to confirm. Thanks.

I have never used git, nor have I written unit tests, but I'll have a look.

If you've used any SCM like CVS, Subversion, or Perforce the principles are similar for basic use. I highly recommend it. This'll be handy:

https://help.github.com/

GitHub have spent a lot of time and effort writing documentation and tutorials for git.

Sorry to ask you to do that; I'd probably just grab the source tarball and pick through it, but I'm on a travelling holiday for the next couple of weeks and just trying to check in on the mailing list sometimes.

--
Craig Ringer
--------------050001010709040004070805--