#ifndef DBMS_RANDOM_INTERNAL_HPP #define DBMS_RANDOM_INTERNAL_HPP extern "C" { #include "postgres.h" #include "fmgr.h" #include "utils/builtins.h" #include "utils/numeric.h" #include "utils/date.h" #include "utils/timestamp.h" #include "utils/array.h" #include "catalog/pg_type.h" #include "executor/spi.h" } // extern "C" extern "C" { Datum dbms_random_initialize(PG_FUNCTION_ARGS); Datum dbms_random_terminate(PG_FUNCTION_ARGS); Datum dbms_random_normal(PG_FUNCTION_ARGS); Datum dbms_random_random(PG_FUNCTION_ARGS); Datum dbms_random_record_random_number(PG_FUNCTION_ARGS); Datum dbms_random_replay_random_number(PG_FUNCTION_ARGS); Datum dbms_random_seconds_since_epoch(PG_FUNCTION_ARGS); Datum dbms_random_seed_ovr1(PG_FUNCTION_ARGS); Datum dbms_random_seed_ovr2(PG_FUNCTION_ARGS); Datum dbms_random_string(PG_FUNCTION_ARGS); Datum dbms_random_value_ovr1(PG_FUNCTION_ARGS); Datum dbms_random_value_ovr2(PG_FUNCTION_ARGS); Datum dbms_random_get_version(PG_FUNCTION_ARGS); } // extern "C" #endif // DBMS_RANDOM_INTERNAL_HPP