Unmark gen_random_uuid() function leakproof.
[pgsql.git] / src / include / fe_utils / recovery_gen.h
blob73c1aa8e59e1aad175a26498387013a2c5595bfc
1 /*-------------------------------------------------------------------------
3 * Generator for recovery configuration
5 * Portions Copyright (c) 2011-2024, PostgreSQL Global Development Group
7 * src/include/fe_utils/recovery_gen.h
9 *-------------------------------------------------------------------------
11 #ifndef RECOVERY_GEN_H
12 #define RECOVERY_GEN_H
14 #include "libpq-fe.h"
15 #include "pqexpbuffer.h"
18 * recovery configuration is part of postgresql.conf in version 12 and up, and
19 * in recovery.conf before that.
21 #define MINIMUM_VERSION_FOR_RECOVERY_GUC 120000
23 extern PQExpBuffer GenerateRecoveryConfig(PGconn *pgconn,
24 const char *replication_slot,
25 char *dbname);
26 extern void WriteRecoveryConfig(PGconn *pgconn, const char *target_dir,
27 PQExpBuffer contents);
29 #endif /* RECOVERY_GEN_H */