1
/*-------------------------------------------------------------------------
7
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
8
* Portions Copyright (c) 1994, Regents of the University of California
10
* $PostgreSQL: pgsql/src/include/libpq/be-fsstubs.h,v 1.23 2004-12-31 22:03:32 pgsql Exp $
12
*-------------------------------------------------------------------------
20
* LO functions available via pg_proc entries
22
extern Datum lo_import(PG_FUNCTION_ARGS);
23
extern Datum lo_export(PG_FUNCTION_ARGS);
25
extern Datum lo_creat(PG_FUNCTION_ARGS);
27
extern Datum lo_open(PG_FUNCTION_ARGS);
28
extern Datum lo_close(PG_FUNCTION_ARGS);
30
extern Datum loread(PG_FUNCTION_ARGS);
31
extern Datum lowrite(PG_FUNCTION_ARGS);
33
extern Datum lo_lseek(PG_FUNCTION_ARGS);
34
extern Datum lo_tell(PG_FUNCTION_ARGS);
35
extern Datum lo_unlink(PG_FUNCTION_ARGS);
38
* These are not fmgr-callable, but are available to C code.
39
* Probably these should have had the underscore-free names,
42
extern int lo_read(int fd, char *buf, int len);
43
extern int lo_write(int fd, char *buf, int len);
46
* Cleanup LOs at xact commit/abort
48
extern void AtEOXact_LargeObject(bool isCommit);
49
extern void AtEOSubXact_LargeObject(bool isCommit, SubTransactionId mySubid,
50
SubTransactionId parentSubid);
52
#endif /* BE_FSSTUBS_H */