Eneboo - Documentación para desarrolladores
src/libpq/include/libpq/be-fsstubs.h
Ir a la documentación de este archivo.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * be-fsstubs.h
00004  *
00005  *
00006  *
00007  * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
00008  * Portions Copyright (c) 1994, Regents of the University of California
00009  *
00010  * $PostgreSQL: pgsql/src/include/libpq/be-fsstubs.h,v 1.25 2005/10/15 02:49:44 momjian Exp $
00011  *
00012  *-------------------------------------------------------------------------
00013  */
00014 #ifndef BE_FSSTUBS_H
00015 #define BE_FSSTUBS_H
00016 
00017 #include "fmgr.h"
00018 
00019 /*
00020  * LO functions available via pg_proc entries
00021  */
00022 extern Datum lo_import(PG_FUNCTION_ARGS);
00023 extern Datum lo_export(PG_FUNCTION_ARGS);
00024 
00025 extern Datum lo_creat(PG_FUNCTION_ARGS);
00026 extern Datum lo_create(PG_FUNCTION_ARGS);
00027 
00028 extern Datum lo_open(PG_FUNCTION_ARGS);
00029 extern Datum lo_close(PG_FUNCTION_ARGS);
00030 
00031 extern Datum loread(PG_FUNCTION_ARGS);
00032 extern Datum lowrite(PG_FUNCTION_ARGS);
00033 
00034 extern Datum lo_lseek(PG_FUNCTION_ARGS);
00035 extern Datum lo_tell(PG_FUNCTION_ARGS);
00036 extern Datum lo_unlink(PG_FUNCTION_ARGS);
00037 
00038 /*
00039  * These are not fmgr-callable, but are available to C code.
00040  * Probably these should have had the underscore-free names,
00041  * but too late now...
00042  */
00043 extern int      lo_read(int fd, char *buf, int len);
00044 extern int      lo_write(int fd, char *buf, int len);
00045 
00046 /*
00047  * Cleanup LOs at xact commit/abort
00048  */
00049 extern void AtEOXact_LargeObject(bool isCommit);
00050 extern void AtEOSubXact_LargeObject(bool isCommit, SubTransactionId mySubid,
00051                                                 SubTransactionId parentSubid);
00052 
00053 #endif   /* BE_FSSTUBS_H */
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'