* TypeNameToString * Produce a string representing the name of a TypeName. * * NB: this must work on TypeNames that do not describe any actual type; * it is mostly used for reporting lookup errors. */
| 475 | * it is mostly used for reporting lookup errors. |
| 476 | */ |
| 477 | char * |
| 478 | TypeNameToString(const TypeName *typeName) |
| 479 | { |
| 480 | StringInfoData string; |
| 481 | |
| 482 | initStringInfo(&string); |
| 483 | appendTypeNameToBuffer(typeName, &string); |
| 484 | return string.data; |
| 485 | } |
| 486 | |
| 487 | /* |
| 488 | * TypeNameListToString |
no test coverage detected