C++ new and delete Operators | Standard C Library Functions | Teradata Vantage - 17.10 - C++ new and delete Operators - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1147-171K
Language
English (United States)

For C++ UDFs and external procedures, you can use the C++ new or delete operators. Teradata overwrites them by using FNC_malloc and FNC_free. The UDF or external procedure must catch the std::bad_alloc exception in the case where Teradata cannot fulfill a memory allocation request. Note that some new operator calls may be implicitly hidden in a C++ library, so you must ensure that the UDF or external procedure will catch exceptions from those library functions also.