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
|