How do IMMUTABLE, STABLE and VOLATILE keywords effect behaviour of function?
The key word IMMUTABLE is never added automatically by pgAdmin or Postgres. Whoever created or replaced the function did that. The correct volatility for the given function is VOLATILE (also the default), not STABLE – or it wouldn’t make sense to use clock_timestamp() which is VOLATILE in contrast to now() or CURRENT_TIMESTAMP which are STABLE: … Read more