I'm writing a C user defined extension function for Postgres and would like to get the value of parameter that I set in SQL level in my C code.
For example, in SQL, I have something like:
CREATE FUNCTION my_test_function(text) RETURNS text AS 'path_to_so', 'my_function' LANGUAGE C STRICT SET some_boolean TO true;
The question is how can I get the value of some_boolean variable in my C code?
Datum my_test_function(PG_FUNCTION_ARGS) {
// try to get some_boolean here
}