SECURITY INVOKERindicates that the function is to be executed with the privileges of the user that calls it. That is the default.SECURITY DEFINERspecifies that the function is to be executed with the privileges of the user that owns it. For information on how to writeSECURITY DEFINERfunctions safely, see below.-- from