aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/flatfiles.h
blob: 5faf35db57bf7f6eab43bd09692f8b389d912720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*-------------------------------------------------------------------------
 *
 * flatfiles.h
 *	  Routines for maintaining "flat file" images of the shared catalogs.
 *
 *
 * $PostgreSQL: pgsql/src/include/utils/flatfiles.h,v 1.5 2005/06/28 05:09:13 tgl Exp $
 *
 *-------------------------------------------------------------------------
 */
#ifndef FLATFILES_H
#define FLATFILES_H

#include "fmgr.h"

extern void database_file_update_needed(void);
extern void auth_file_update_needed(void);

extern char *database_getflatfilename(void);
extern char *auth_getflatfilename(void);

extern void BuildFlatFiles(bool database_only);

extern void AtPrepare_UpdateFlatFiles(void);
extern void AtEOXact_UpdateFlatFiles(bool isCommit);
extern void AtEOSubXact_UpdateFlatFiles(bool isCommit,
										SubTransactionId mySubid,
										SubTransactionId parentSubid);

extern Datum flatfile_update_trigger(PG_FUNCTION_ARGS);

extern void flatfile_twophase_postcommit(TransactionId xid, uint16 info,
										 void *recdata, uint32 len);

#endif   /* FLATFILES_H */