#include "postgres.h"
#include "libpq/pqformat.h"
#include "utils/array.h"
#include "utils/builtins.h"
#include "utils/rangetypes.h"
Go to the source code of this file.
Functions | |
Datum | cstring_in (PG_FUNCTION_ARGS) |
Datum | cstring_out (PG_FUNCTION_ARGS) |
Datum | cstring_recv (PG_FUNCTION_ARGS) |
Datum | cstring_send (PG_FUNCTION_ARGS) |
Datum | any_in (PG_FUNCTION_ARGS) |
Datum | any_out (PG_FUNCTION_ARGS) |
Datum | anyarray_in (PG_FUNCTION_ARGS) |
Datum | anyarray_out (PG_FUNCTION_ARGS) |
Datum | anyarray_recv (PG_FUNCTION_ARGS) |
Datum | anyarray_send (PG_FUNCTION_ARGS) |
Datum | anyenum_in (PG_FUNCTION_ARGS) |
Datum | anyenum_out (PG_FUNCTION_ARGS) |
Datum | anyrange_in (PG_FUNCTION_ARGS) |
Datum | anyrange_out (PG_FUNCTION_ARGS) |
Datum | void_in (PG_FUNCTION_ARGS) |
Datum | void_out (PG_FUNCTION_ARGS) |
Datum | void_recv (PG_FUNCTION_ARGS) |
Datum | void_send (PG_FUNCTION_ARGS) |
Datum | trigger_in (PG_FUNCTION_ARGS) |
Datum | trigger_out (PG_FUNCTION_ARGS) |
Datum | event_trigger_in (PG_FUNCTION_ARGS) |
Datum | event_trigger_out (PG_FUNCTION_ARGS) |
Datum | language_handler_in (PG_FUNCTION_ARGS) |
Datum | language_handler_out (PG_FUNCTION_ARGS) |
Datum | fdw_handler_in (PG_FUNCTION_ARGS) |
Datum | fdw_handler_out (PG_FUNCTION_ARGS) |
Datum | internal_in (PG_FUNCTION_ARGS) |
Datum | internal_out (PG_FUNCTION_ARGS) |
Datum | opaque_in (PG_FUNCTION_ARGS) |
Datum | opaque_out (PG_FUNCTION_ARGS) |
Datum | anyelement_in (PG_FUNCTION_ARGS) |
Datum | anyelement_out (PG_FUNCTION_ARGS) |
Datum | anynonarray_in (PG_FUNCTION_ARGS) |
Datum | anynonarray_out (PG_FUNCTION_ARGS) |
Datum | shell_in (PG_FUNCTION_ARGS) |
Datum | shell_out (PG_FUNCTION_ARGS) |
Datum | pg_node_tree_in (PG_FUNCTION_ARGS) |
Datum | pg_node_tree_out (PG_FUNCTION_ARGS) |
Datum | pg_node_tree_recv (PG_FUNCTION_ARGS) |
Datum | pg_node_tree_send (PG_FUNCTION_ARGS) |
Datum any_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 91 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type any"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum any_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 104 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot display a value of type any"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum anyarray_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 118 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type anyarray"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum anyarray_out | ( | PG_FUNCTION_ARGS | ) |
Datum anyarray_recv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 146 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type anyarray"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum anyarray_send | ( | PG_FUNCTION_ARGS | ) |
Definition at line 161 of file pseudotypes.c.
References array_send().
{ return array_send(fcinfo); }
Datum anyelement_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 434 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type anyelement"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum anyelement_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 447 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot display a value of type anyelement"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum anyenum_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 171 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type anyenum"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum anyenum_out | ( | PG_FUNCTION_ARGS | ) |
Datum anynonarray_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 460 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type anynonarray"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum anynonarray_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 473 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot display a value of type anynonarray"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum anyrange_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 195 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type anyrange"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum anyrange_out | ( | PG_FUNCTION_ARGS | ) |
Datum cstring_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 37 of file pseudotypes.c.
References PG_GETARG_CSTRING, PG_RETURN_CSTRING, and pstrdup().
{ char *str = PG_GETARG_CSTRING(0); PG_RETURN_CSTRING(pstrdup(str)); }
Datum cstring_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 51 of file pseudotypes.c.
References PG_GETARG_CSTRING, PG_RETURN_CSTRING, and pstrdup().
{ char *str = PG_GETARG_CSTRING(0); PG_RETURN_CSTRING(pstrdup(str)); }
Datum cstring_recv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 62 of file pseudotypes.c.
References buf, StringInfoData::cursor, StringInfoData::len, PG_GETARG_POINTER, PG_RETURN_CSTRING, and pq_getmsgtext().
{ StringInfo buf = (StringInfo) PG_GETARG_POINTER(0); char *str; int nbytes; str = pq_getmsgtext(buf, buf->len - buf->cursor, &nbytes); PG_RETURN_CSTRING(str); }
Datum cstring_send | ( | PG_FUNCTION_ARGS | ) |
Definition at line 76 of file pseudotypes.c.
References buf, PG_GETARG_CSTRING, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), and pq_sendtext().
{ char *str = PG_GETARG_CSTRING(0); StringInfoData buf; pq_begintypsend(&buf); pq_sendtext(&buf, str, strlen(str)); PG_RETURN_BYTEA_P(pq_endtypsend(&buf)); }
Datum event_trigger_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 299 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type event_trigger"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum event_trigger_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 312 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot display a value of type event_trigger"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum fdw_handler_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 353 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type fdw_handler"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum fdw_handler_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 366 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot display a value of type fdw_handler"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum internal_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 380 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type internal"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum internal_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 393 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot display a value of type internal"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum language_handler_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 326 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type language_handler"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum language_handler_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 339 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot display a value of type language_handler"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum opaque_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 407 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type opaque"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum opaque_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 420 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot display a value of type opaque"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum pg_node_tree_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 517 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ /* * We disallow input of pg_node_tree values because the SQL functions that * operate on the type are not secure against malformed input. */ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type pg_node_tree"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum pg_node_tree_out | ( | PG_FUNCTION_ARGS | ) |
Datum pg_node_tree_recv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 545 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type pg_node_tree"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum pg_node_tree_send | ( | PG_FUNCTION_ARGS | ) |
Datum shell_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 486 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of a shell type"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum shell_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 499 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot display a value of a shell type"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum trigger_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 272 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot accept a value of type trigger"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum trigger_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 285 of file pseudotypes.c.
References ereport, errcode(), errmsg(), ERROR, and PG_RETURN_VOID.
{ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot display a value of type trigger"))); PG_RETURN_VOID(); /* keep compiler quiet */ }
Datum void_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 223 of file pseudotypes.c.
References PG_RETURN_VOID.
{ PG_RETURN_VOID(); /* you were expecting something different? */ }
Datum void_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 234 of file pseudotypes.c.
References PG_RETURN_CSTRING, and pstrdup().
{ PG_RETURN_CSTRING(pstrdup("")); }
Datum void_recv | ( | PG_FUNCTION_ARGS | ) |
Datum void_send | ( | PG_FUNCTION_ARGS | ) |
Definition at line 258 of file pseudotypes.c.
References buf, PG_RETURN_BYTEA_P, pq_begintypsend(), and pq_endtypsend().
{ StringInfoData buf; /* send an empty string */ pq_begintypsend(&buf); PG_RETURN_BYTEA_P(pq_endtypsend(&buf)); }