dipesh
05/21/2022, 3:47 PMnew
variable available in postgres trigger function and I can access values like new.email
new.id
. I wanted to also know about value of provider through which register was done and tried with new.provider
, but couldnot retrieve.
Is there any docs available regarding new
variable or is there any way to log new
variable in function to see what is coming. Thanks for the help 🙏Needle
05/21/2022, 3:47 PMgaryaustin
05/21/2022, 10:15 PMraise log 'string'
https://www.postgresql.org/docs/current/plpgsql-errors-and-messages.htmlNeedle
05/21/2022, 10:15 PMdipesh
05/22/2022, 6:54 AMnew.raw_app_meta_data::json->'provider')
. LOG really helped. Thank you 🙇♂️Needle
05/22/2022, 6:57 AM