Skip site navigation (1) Skip section navigation (2)

Buffered file creation and usage

From: "VOGLOZIN W(dot) Amenel" <amenel(dot)voglozin(at)univ-nantes(dot)fr>
To: "pgsql-ports(at)postgresql(dot)org" <pgsql-ports(at)postgresql(dot)org>
Subject: Buffered file creation and usage
Date: 2006-03-27 13:27:58
Message-ID: op.s62qcwstxwch8s@pc-saintpaul.irin.sciences.univ-nantes.prive (view raw, whole thread or download thread mbox)
Lists: pgsql-ports
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').
The problem is that there is only one constructor for data type BufFile  
(namely 'extern BufFile *BufFileCreateTemp(bool interXact);'). The other  
possible constructors I found were in buffile.c but the only one that  
allows me to specify a file is protected by an  'ifdef NOT_USED'.

My questions are:
1- is it possible to have a buffered access to a file initially external  
to the database ? If yes, how can I do that ?
2- what is the meaning of the NOT_USED define ? A text search showed it is  
used in more than 40 files.


pgsql-ports by date

Next:From: Tom LaneDate: 2006-03-27 15:58:07
Subject: Re: Buffered file creation and usage
Previous:From: VOGLOZIN W. AmenelDate: 2006-03-27 12:56:23
Subject: Re: Building PostgreSQL 8.1.3 on Windows with MinGW

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group