X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D0F109DC831 for ; Mon, 27 Mar 2006 11:58:04 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 96376-02 for ; Mon, 27 Mar 2006 11:58:09 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id A3BF59DC86F for ; Mon, 27 Mar 2006 11:58:02 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k2RFw7YU014806; Mon, 27 Mar 2006 10:58:07 -0500 (EST) To: "VOGLOZIN W. Amenel" cc: "pgsql-ports@postgresql.org" Subject: Re: Buffered file creation and usage In-reply-to: References: Comments: In-reply-to "VOGLOZIN W. Amenel" message dated "Mon, 27 Mar 2006 15:27:58 +0200" Date: Mon, 27 Mar 2006 10:58:07 -0500 Message-ID: <14805.1143475087@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.114 required=5 tests=[AWL=0.114] X-Spam-Score: 0.114 X-Spam-Level: X-Archive-Number: 200603/42 X-Sequence-Number: 2366 "VOGLOZIN W. Amenel" writes: > I'm implementing a module in pgsql on the server side (Win32 version, but > it's not platform-specific). I need access to a specific file whose name I > know (of course!). I'm trying to use a buffered access though the BufFile > type (header path is 'include/storage/buffile.h'). Why do you think this is a good idea? The services provided by buffile.c aren't really useful for anything except PG temporary files. AFAICS you'd be better off using fd.c directly. regards, tom lane