1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* be-fsstubs.h
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
2023-01-02 21:00:37 +01:00
|
|
|
* Portions Copyright (c) 1996-2023, 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
|
|
|
*
|
2010-09-20 22:08:53 +02:00
|
|
|
* src/include/libpq/be-fsstubs.h
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef BE_FSSTUBS_H
|
|
|
|
#define BE_FSSTUBS_H
|
|
|
|
|
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...
|
|
|
|
*/
|
1996-07-09 08:22:35 +02:00
|
|
|
extern int lo_read(int fd, char *buf, int len);
|
2006-09-07 17:37:25 +02:00
|
|
|
extern int lo_write(int fd, const char *buf, int len);
|
1997-05-06 09:14:34 +02:00
|
|
|
|
1998-07-21 06:17:30 +02:00
|
|
|
/*
|
2004-07-28 16:23:31 +02:00
|
|
|
* Cleanup LOs at xact commit/abort
|
1998-07-21 06:17:30 +02:00
|
|
|
*/
|
2004-07-28 16:23:31 +02:00
|
|
|
extern void AtEOXact_LargeObject(bool isCommit);
|
2004-09-16 18:58:44 +02:00
|
|
|
extern void AtEOSubXact_LargeObject(bool isCommit, SubTransactionId mySubid,
|
|
|
|
SubTransactionId parentSubid);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
1996-07-09 08:22:35 +02:00
|
|
|
#endif /* BE_FSSTUBS_H */
|