407{
408 int32 typmod = PG_GETARG_INT32(0);
410 char *
s = (
char*)palloc(64);
412 text *stext;
413
414
415 if ( typmod < 0 || type == 0 )
416 ptr += sprintf(ptr, "Geometry");
417 else
419
420
422 ptr += sprintf(ptr, "%s", "Z");
423
424
426 ptr += sprintf(ptr, "%s", "M");
427
428 stext = cstring_to_text(
s);
430 PG_RETURN_TEXT_P(stext);
431}
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
#define TYPMOD_GET_M(typmod)
#define TYPMOD_GET_TYPE(typmod)
#define TYPMOD_GET_Z(typmod)