1 /*-------------------------------------------------------------------------
7 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
12 *-------------------------------------------------------------------------
20 * LO functions available via pg_proc entries
22 extern Datum
lo_import(PG_FUNCTION_ARGS
);
23 extern Datum
lo_import_with_oid(PG_FUNCTION_ARGS
);
24 extern Datum
lo_export(PG_FUNCTION_ARGS
);
26 extern Datum
lo_creat(PG_FUNCTION_ARGS
);
27 extern Datum
lo_create(PG_FUNCTION_ARGS
);
29 extern Datum
lo_open(PG_FUNCTION_ARGS
);
30 extern Datum
lo_close(PG_FUNCTION_ARGS
);
32 extern Datum
loread(PG_FUNCTION_ARGS
);
33 extern Datum
lowrite(PG_FUNCTION_ARGS
);
35 extern Datum
lo_lseek(PG_FUNCTION_ARGS
);
36 extern Datum
lo_tell(PG_FUNCTION_ARGS
);
37 extern Datum
lo_unlink(PG_FUNCTION_ARGS
);
38 extern Datum
lo_truncate(PG_FUNCTION_ARGS
);
41 * These are not fmgr-callable, but are available to C code.
42 * Probably these should have had the underscore-free names,
45 extern int lo_read(int fd
, char *buf
, int len
);
46 extern int lo_write(int fd
, const char *buf
, int len
);
49 * Cleanup LOs at xact commit/abort
51 extern void AtEOXact_LargeObject(bool isCommit
);
52 extern void AtEOSubXact_LargeObject(bool isCommit
, SubTransactionId mySubid
,
53 SubTransactionId parentSubid
);
55 #endif /* BE_FSSTUBS_H */