~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/include/libpq/be-fsstubs.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * be-fsstubs.h
 
4
 *
 
5
 *
 
6
 *
 
7
 * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
 
8
 * Portions Copyright (c) 1994, Regents of the University of California
 
9
 *
 
10
 * $PostgreSQL: pgsql/src/include/libpq/be-fsstubs.h,v 1.23 2004-12-31 22:03:32 pgsql Exp $
 
11
 *
 
12
 *-------------------------------------------------------------------------
 
13
 */
 
14
#ifndef BE_FSSTUBS_H
 
15
#define BE_FSSTUBS_H
 
16
 
 
17
#include "fmgr.h"
 
18
 
 
19
/*
 
20
 * LO functions available via pg_proc entries
 
21
 */
 
22
extern Datum lo_import(PG_FUNCTION_ARGS);
 
23
extern Datum lo_export(PG_FUNCTION_ARGS);
 
24
 
 
25
extern Datum lo_creat(PG_FUNCTION_ARGS);
 
26
 
 
27
extern Datum lo_open(PG_FUNCTION_ARGS);
 
28
extern Datum lo_close(PG_FUNCTION_ARGS);
 
29
 
 
30
extern Datum loread(PG_FUNCTION_ARGS);
 
31
extern Datum lowrite(PG_FUNCTION_ARGS);
 
32
 
 
33
extern Datum lo_lseek(PG_FUNCTION_ARGS);
 
34
extern Datum lo_tell(PG_FUNCTION_ARGS);
 
35
extern Datum lo_unlink(PG_FUNCTION_ARGS);
 
36
 
 
37
/*
 
38
 * These are not fmgr-callable, but are available to C code.
 
39
 * Probably these should have had the underscore-free names,
 
40
 * but too late now...
 
41
 */
 
42
extern int      lo_read(int fd, char *buf, int len);
 
43
extern int      lo_write(int fd, char *buf, int len);
 
44
 
 
45
/*
 
46
 * Cleanup LOs at xact commit/abort
 
47
 */
 
48
extern void AtEOXact_LargeObject(bool isCommit);
 
49
extern void AtEOSubXact_LargeObject(bool isCommit, SubTransactionId mySubid,
 
50
                                                                        SubTransactionId parentSubid);
 
51
 
 
52
#endif   /* BE_FSSTUBS_H */