Greenbone Vulnerability Manager  22.4.0~dev1
Functions
manage_pg_server.c File Reference

GVM management layer: Postgres server-side functions. More...

#include "manage_utils.h"
#include "postgres.h"
#include "fmgr.h"
#include "executor/spi.h"
#include "glib.h"
#include <gvm/base/hosts.h>

Functions

 PG_FUNCTION_INFO_V1 (sql_hosts_contains)
 Define function for Postgres.
 
 __attribute__ ((deprecated))
 Return if argument 1 matches regular expression in argument 2. More...
 
 PG_FUNCTION_INFO_V1 (sql_level_max_severity)
 Define function for Postgres.
 
 PG_FUNCTION_INFO_V1 (sql_level_min_severity)
 Define function for Postgres.
 
 PG_FUNCTION_INFO_V1 (sql_next_time)
 Define function for Postgres.
 
 PG_FUNCTION_INFO_V1 (sql_next_time_ical)
 Define function for Postgres.
 
 PG_FUNCTION_INFO_V1 (sql_max_hosts)
 Define function for Postgres.
 
 PG_FUNCTION_INFO_V1 (sql_severity_matches_ov)
 Define function for Postgres.
 
 PG_FUNCTION_INFO_V1 (sql_regexp)
 Define function for Postgres.
 
 PG_FUNCTION_INFO_V1 (sql_valid_db_resource_type)
 Define function for Postgres.
 

Detailed Description

GVM management layer: Postgres server-side functions.

This file contains a server-side module for Postgres, that defines SQL functions for the management layer that need to be implemented in C.

Function Documentation

◆ __attribute__()

__attribute__ ( (deprecated)  )

Return if argument 1 matches regular expression in argument 2.

Return max severity of level.

Return number of hosts.

Get the next time given schedule times.

Dummy function to allow restoring gvmd-9.0 dumps.

This is a callback for a SQL function of two arguments.

Returns
Postgres Datum.
Deprecated:
This function will be removed once direct migration compatibility with gvmd 9.0 is no longer required
Returns
Postgres NULL Datum.
Deprecated:
This function will be removed once direct migration compatibility with gvmd 9.0 is no longer required
Returns
Postgres NULL Datum.
Deprecated:
This function will be removed once direct migration compatibility with gvmd 9.0 is no longer required
Returns
Postgres NULL Datum.

This is a callback for a SQL function of one to three arguments.

Returns
Postgres Datum.

This is a callback for a SQL function of one argument.

Returns
Postgres Datum.
Deprecated:
This function will be removed once direct migration compatibility with gvmd 9.0 is no longer required
Returns
Postgres NULL Datum.