diff options
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/builtins.h | 1 | ||||
| -rw-r--r-- | src/include/utils/expandedstring.h | 31 |
2 files changed, 31 insertions, 1 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 477fde1f81..c1609639c8 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -843,7 +843,6 @@ extern Datum pg_column_size(PG_FUNCTION_ARGS); extern Datum bytea_string_agg_transfn(PG_FUNCTION_ARGS); extern Datum bytea_string_agg_finalfn(PG_FUNCTION_ARGS); extern Datum string_agg_transfn(PG_FUNCTION_ARGS); -extern Datum string_agg_finalfn(PG_FUNCTION_ARGS); extern Datum text_concat(PG_FUNCTION_ARGS); extern Datum text_concat_ws(PG_FUNCTION_ARGS); diff --git a/src/include/utils/expandedstring.h b/src/include/utils/expandedstring.h new file mode 100644 index 0000000000..bb03d89415 --- /dev/null +++ b/src/include/utils/expandedstring.h @@ -0,0 +1,31 @@ +/*------------------------------------------------------------------------- + * + * expandedstring.h + * Expand a varlena into a StringInfo for faster in-memory manipulation. + * + * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * src/include/utils/expandedstring.h + * + *------------------------------------------------------------------------- + */ + +#ifndef EXPANDEDSTRING_H +#define EXPANDEDSTRING_H + +#include "lib/stringinfo.h" +#include "utils/expandeddatum.h" + +typedef struct ExpandedStringInfoHeader +{ + /* Standard header for expanded objects */ + ExpandedObjectHeader hdr; + + /* String info */ + StringInfoData buf; +} ExpandedStringInfoHeader; + +extern ExpandedStringInfoHeader *GetExpandedStringInfo(void); + +#endif |
