X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3AB84D1BB64 for ; Sun, 16 May 2004 09:44:38 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 20173-02 for ; Sun, 16 May 2004 09:44:19 -0300 (ADT) Received: from orion.msrvs.net (orion.msrvs.net [216.180.242.122]) by svr1.postgresql.org (Postfix) with ESMTP id F1FC5D1BAFC for ; Sun, 16 May 2004 09:44:17 -0300 (ADT) Received: from 200-221-135-171.internetturboadsl.speeduol.com.br ([200.221.135.171]) by orion.msrvs.net with asmtp (Exim 4.34) id 1BPL00-000106-75 for pgsql-odbc@postgresql.org; Sun, 16 May 2004 09:44:13 -0300 From: Andre Felipe Machado Reply-To: andremachado@techforce.com.br To: "pgsql-odbc" Subject: Re: BLOB issue(s) & questions Date: Sun, 16 May 2004 09:45:01 -0300 User-Agent: KMail/1.5.2 References: <03AF4E498C591348A42FC93DEA9661B889F26A@mail.vale-housing.co.uk> In-Reply-To: <03AF4E498C591348A42FC93DEA9661B889F26A@mail.vale-housing.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200405160945.01579.andremachado@techforce.com.br> X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orion.msrvs.net X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - techforce.com.br X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/24 X-Sequence-Number: 4048 > There are three options: > > 1) Use a bytea column. You might create a domain as an 'lo' alias to > bytea if required. This works. And very easy. But for files upt to around 2 MB. Beware. > 2) Use the /contrib/lo code. This custom datatype allows you to create a > cleanup trigger for each lo column. This works. but not easy with odbc and other apps... > > 3) Use the 'simple' ODBC lo option documented at: > http://gborg.postgresql.org/project/psqlodbc/faq/faq.php?faq_id=52 - > Please note that I haven't tried using blobs in years... > > Regards, Dave. Solution 3 does not work for Postgresql since 7.x, as I can remember. For 7.3.x is sure (I tried). The innards of Pg changed a lot and it does not allow the tricks cited. Use the solution 2, instead, for very large objects over 2MB. good luck. Andre Felipe http://www.andrefelipemachado.hpg.ig.com.br/linux/index.html