File: logtofile_shmem.h

package info (click to toggle)
pgauditlogtofile 1.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 288 kB
  • sloc: ansic: 1,211; makefile: 21; sql: 11; sh: 7
file content (27 lines) | stat: -rw-r--r-- 828 bytes parent folder | download
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
/*-------------------------------------------------------------------------
 *
 * logtofile_shmem.h
 *      Functions to manage shared memory
 *
 * Copyright (c) 2020-2025, Francisco Miguel Biete Banon
 *
 * This code is released under the PostgreSQL licence, as given at
 *  http://www.postgresql.org/about/licence/
 *-------------------------------------------------------------------------
 */
#ifndef _LOGTOFILE_SHMEM_H_
#define _LOGTOFILE_SHMEM_H_

#include <postgres.h>

/* Hook functions */
extern void PgAuditLogToFile_shmem_startup(void);
extern void PgAuditLogToFile_shmem_shutdown(int code, Datum arg);
#if (PG_VERSION_NUM >= 150000)
extern void PgAuditLogToFile_shmem_request(void);
#endif

extern void PgAuditLogToFile_calculate_current_filename(void);
extern bool PgAuditLogToFile_needs_rotate_file(void);

#endif