#ifndef __CC_VOLATILE_FUNCTIONS /\* No volatile function support, remove code */ #define VOLFUNC #else
#define VOLFUNC volatile #endif
Similarly stable functions could have results cached. You might also note that PostgreSQL assumes any undeclared function is volatile.