Add num_done counter to the pg_stat_checkpointer view.
[pgsql.git] / src / include / common / restricted_token.h
blobaa83eb2cd0f070efe2581728254eba28cf080564
1 /*
2 * restricted_token.h
3 * helper routine to ensure restricted token on Windows
5 * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
8 * src/include/common/restricted_token.h
9 */
10 #ifndef COMMON_RESTRICTED_TOKEN_H
11 #define COMMON_RESTRICTED_TOKEN_H
14 * On Windows make sure that we are running with a restricted token,
15 * On other platforms do nothing.
17 void get_restricted_token(void);
19 #ifdef WIN32
20 /* Create a restricted token and execute the specified process with it. */
21 HANDLE CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo);
22 #endif
24 #endif /* COMMON_RESTRICTED_TOKEN_H */