File: logtofile_string_format.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 (25 lines) | stat: -rw-r--r-- 733 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
/*-------------------------------------------------------------------------
 *
 * logtofile_string_format.h
 *      Functions to format data as strings
 *
 * Copyright (c) 2020-2026, Francisco Miguel Biete Banon
 *
 * This code is released under the PostgreSQL licence, as given at
 *  http://www.postgresql.org/about/licence/
 *-------------------------------------------------------------------------
 */
#ifndef _LOGTOFILE_STRING_FORMAT_H_
#define _LOGTOFILE_STRING_FORMAT_H_

#include <postgres.h>
#include <datatype/timestamp.h>
#include <portability/instr_time.h>

#define FORMATTED_TS_LEN 64
#define FORMATTED_NUMLINE_LEN 32

extern void PgAuditLogToFile_format_instr_time_nanos(instr_time t, char *buf, size_t len);


#endif