1996-07-09 08:22:35 +02:00
|
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
|
* be-fsstubs.h
|
1997-09-07 07:04:48 +02:00
|
|
|
|
*
|
1996-07-09 08:22:35 +02:00
|
|
|
|
*
|
|
|
|
|
*
|
2001-01-24 20:43:33 +01:00
|
|
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 08:22:35 +02:00
|
|
|
|
*
|
2001-10-25 07:50:21 +02:00
|
|
|
|
* $Id: be-fsstubs.h,v 1.13 2001/10/25 05:49:59 momjian Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
|
#ifndef BE_FSSTUBS_H
|
|
|
|
|
#define BE_FSSTUBS_H
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
|
#include "fmgr.h"
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* LO functions available via pg_proc entries
|
1997-05-06 09:14:34 +02:00
|
|
|
|
*/
|
2000-06-09 03:11:16 +02:00
|
|
|
|
extern Datum lo_import(PG_FUNCTION_ARGS);
|
|
|
|
|
extern Datum lo_export(PG_FUNCTION_ARGS);
|
|
|
|
|
|
|
|
|
|
extern Datum lo_creat(PG_FUNCTION_ARGS);
|
1997-05-06 09:14:34 +02:00
|
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
|
extern Datum lo_open(PG_FUNCTION_ARGS);
|
|
|
|
|
extern Datum lo_close(PG_FUNCTION_ARGS);
|
1997-05-06 09:14:34 +02:00
|
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
|
extern Datum loread(PG_FUNCTION_ARGS);
|
|
|
|
|
extern Datum lowrite(PG_FUNCTION_ARGS);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
|
extern Datum lo_lseek(PG_FUNCTION_ARGS);
|
|
|
|
|
extern Datum lo_tell(PG_FUNCTION_ARGS);
|
|
|
|
|
extern Datum lo_unlink(PG_FUNCTION_ARGS);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
|
/*
|
|
|
|
|
* These are not fmgr-callable, but are available to C code.
|
|
|
|
|
* Probably these should have had the underscore-free names,
|
|
|
|
|
* but too late now...
|
|
|
|
|
*/
|
1997-09-08 04:41:22 +02:00
|
|
|
|
extern int lo_read(int fd, char *buf, int len);
|
|
|
|
|
extern int lo_write(int fd, char *buf, int len);
|
1997-05-06 09:14:34 +02:00
|
|
|
|
|
1998-07-21 06:17:30 +02:00
|
|
|
|
/*
|
2000-06-09 03:11:16 +02:00
|
|
|
|
* Cleanup LOs at xact commit/abort [ Pascal Andr<EFBFBD> <andre@via.ecp.fr> ]
|
1998-07-21 06:17:30 +02:00
|
|
|
|
*/
|
1999-06-01 00:53:59 +02:00
|
|
|
|
extern void lo_commit(bool isCommit);
|
1998-09-01 06:40:42 +02:00
|
|
|
|
#endif /* BE_FSSTUBS_H */
|