358{
359 int32 typmod = PG_GETARG_INT32(0);
361 char *
s = (
char*)palloc(64);
363 text *stext;
364
365
366 if ( typmod < 0 || type == 0 )
367 ptr += sprintf(ptr, "Geometry");
368 else
370
371
373 ptr += sprintf(ptr, "%s", "Z");
374
375
377 ptr += sprintf(ptr, "%s", "M");
378
379 stext = cstring_to_text(
s);
381 PG_RETURN_TEXT_P(stext);
382}
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)