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 28 29 30 31 32 33 34 35
|
/*-------------------------------------------------------------------------
*
* logtofile_guc.c
* GUC variables for logtofile
*
* Copyright (c) 2020-2024, Francisco Miguel Biete Banon
*
* This code is released under the PostgreSQL licence, as given at
* http://www.postgresql.org/about/licence/
*-------------------------------------------------------------------------
*/
#include "logtofile_guc.h"
#include <datatype/timestamp.h>
#include <port.h>
#include "logtofile_shmem.h"
#include "logtofile_vars.h"
/**
* @brief GUC Callback pgaudit.log_directory check path
* @param newval: new value
* @param extra: extra
* @param source: source
* @return bool: true if path is valid
*/
bool guc_check_directory(char **newval, void **extra, GucSource source)
{
/*
* Since canonicalize_path never enlarges the string, we can just modify
* newval in-place.
*/
canonicalize_path(*newval);
return true;
}
|