Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 26C75650084 for ; Thu, 18 Dec 2008 11:58:39 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 60417-03 for ; Thu, 18 Dec 2008 11:58:36 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mail.postgresql.org (Postfix) with ESMTP id 5AA7564FCE3 for ; Thu, 18 Dec 2008 11:58:36 -0400 (AST) Received: from pd2ml1so-ssvc.prod.shaw.ca ([10.0.141.139]) by pd4mo1so-svcs.prod.shaw.ca with ESMTP; 18 Dec 2008 08:58:33 -0700 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=0 a=-xXARxezghJsqznZXAAA:9 a=dAwLFmwiRd9dzInNMMokw8hfnPMA:4 a=nDADUo6oyrYA:10 Received: from s0106001d7e686ef8.ss.shawcable.net (HELO d800) ([24.77.10.25]) by pd2ml1so-dmz.prod.shaw.ca with SMTP; 18 Dec 2008 08:58:30 -0700 Message-ID: From: "George Weaver" To: "pgsql-general" Subject: Server side large object functions Date: Thu, 18 Dec 2008 09:58:05 -0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=STOX_REPLY_TYPE=0.001 X-Spam-Level: X-Archive-Number: 200812/678 X-Sequence-Number: 141810 Hi, The PostgreSQL manual indicates that: "There are server-side functions callable from SQL that correspond to each of the client-side functions described above." In psql I can get the argument data types for lo_open: development=# \df+ lo_open List of functions Schema | Name | Result data type | Argument data types | Volatility | O wner | Language | Source code | Description ------------+---------+------------------+---------------------+------------+--- -------+----------+-------------+------------------- pg_catalog | lo_open | integer | oid, integer | volatile | po stgres | internal | lo_open | large object open (1 row) But if I try to find the same for lo_read I get: development=# \df+ lo_read List of functions Schema | Name | Result data type | Argument data types | Volatility | Owner | L anguage | Source code | Description --------+------+------------------+---------------------+------------+-------+-- --------+-------------+------------- (0 rows) Is there not a server side function for lo_read? If so, how do I determine the argument types? My objective it to read a large object into memory as opposed to exporting it to a disk file. I'm using version 8.3.3, psqlODBC 8.2.2 and vb.net. Thanks, George