Mode database-function/PGCache: db function must be volatile for inserting to table