File: logtofile_execution_memory.h

package info (click to toggle)
pgauditlogtofile 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 324 kB
  • sloc: ansic: 1,568; makefile: 26; sql: 12; sh: 7
file content (26 lines) | stat: -rw-r--r-- 1,004 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
/*-------------------------------------------------------------------------
 *
 * logtofile_execution_memory.h
 *      Partial hooks to measure memory footprint of execution
 *
 * Copyright (c) 2026, Francisco Miguel Biete Banon
 *
 * This code is released under the PostgreSQL licence, as given at
 *  http://www.postgresql.org/about/licence/
 *-------------------------------------------------------------------------
 */
#ifndef _LOGTOFILE_EXECUTION_MEMORY_H_
#define _LOGTOFILE_EXECUTION_MEMORY_H_

#include <postgres.h>
#include <executor/executor.h>

extern void PgAuditLogToFile_ExecutorStart_Memory(QueryDesc *queryDesc, int eflags);
extern void PgAuditLogToFile_ExecutorEnd_Memory(QueryDesc *queryDesc);
#if (PG_VERSION_NUM >= 180000)
extern void PgAuditLogToFile_ExecutorRun_Memory(QueryDesc *queryDesc, ScanDirection direction, uint64 count);
#else
extern void PgAuditLogToFile_ExecutorRun_Memory(QueryDesc *queryDesc, ScanDirection direction, uint64 count, bool execute_once);
#endif

#endif