Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TrJUA-0000uO-Hf for pgsql-docs@arkaria.postgresql.org; Sat, 05 Jan 2013 02:27:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TrJU9-00059K-H7 for pgsql-docs@arkaria.postgresql.org; Sat, 05 Jan 2013 02:27:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TrJU7-000599-Lu for pgsql-docs@postgresql.org; Sat, 05 Jan 2013 02:27:43 +0000 Received: from mail-vc0-f173.google.com ([209.85.220.173]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TrJU1-00051j-2Y for pgsql-docs@postgresql.org; Sat, 05 Jan 2013 02:27:43 +0000 Received: by mail-vc0-f173.google.com with SMTP id f13so17417325vcb.32 for ; Fri, 04 Jan 2013 18:27:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=qhxBca5WJ56CbOLhWbYD/IMD0RrjcpyJXG4WtW4gGw0=; b=Y8Cb5JCnwmGl29upvUyZ/7MfL73pUd49J/Rf/f8PXzIc/XQgt8VftGhRj+mdsGz4s1 9VDwRg7+F6VakjK/oHrz3KOpJLOPB6msmwhKZXFdZLdPuynIYOjb++SOt9y67OXD/Zv2 zbKT+Zit7kX5NNHC6LcbGOFDKpyjhqfdIscRAIDmZ5ryjecNcm8rq5pUXpZzdqtmf6BJ StUfSmayhctPJrHGrtqpzVnprGajozPJQ3ubXMNcQEj1ELP2i5WripWYCs5mFwWTgUbQ DFEAKo0TCjUFmPJcQwHXZygoLXA56o92SCH7MVviiv33LfGPhjVObofv/gfsfvaBdzR/ U86A== Received: by 10.220.8.138 with SMTP id h10mr76848015vch.35.1357352855450; Fri, 04 Jan 2013 18:27:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.85.41 with HTTP; Fri, 4 Jan 2013 18:27:14 -0800 (PST) From: Josh Kupershmidt Date: Fri, 4 Jan 2013 19:27:14 -0700 Message-ID: Subject: old testlo example code To: pgsql-docs Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org This documentation page: http://www.postgresql.org/docs/current/static/lo-examplesect.html contains a hardcoded copy of ./src/test/examples/testlo.c, and it seems like this version hasn't been updated along with its source. The version from the docs no longer compiles for me, at least not when I drop it into the place of the current ./src/test/examples/testlo.c. That's easy enough to fix, though I have a historical question about this code. Building the unmodified code in ./src/test/examples, I see: testlo.c:35: warning: =91importFile=92 defined but not used testlo.c:151: warning: =91exportFile=92 defined but not used ... testlo64.c:35: warning: =91importFile=92 defined but not used testlo64.c:173: warning: =91exportFile=92 defined but not used since the calls to those functions are commented out in favor of lo_import() and lo_export(). I'm wondering if there is some reason to leave those importFile() and exportFile() definitions in this example code if they're not used? The code has apparently been like this (at least for testlo.c, and I guess testlo64.c just copy-pasted from its older sibling) since the first commit, d31084e9. Josh --=20 Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs