Luis Felipe
07/28/2021, 4:08 PMJono Yeong
07/28/2021, 4:14 PMuser
07/28/2021, 4:18 PMsilentworks
07/28/2021, 4:18 PMehesp
07/28/2021, 4:36 PMCREATE OR REPLACE FUNCTION public.handle_new_user()
returns trigger as $$
begin
insert into public.users (id, login, project) values (new.id, new.user_metadata->'user_name', '');
return new;
end;
$$ language plpgsql security definer;
This is erroring - how do I access new.user_metadata->'user_name'
?Bryan K.
07/28/2021, 4:44 PMsilentworks
07/28/2021, 4:45 PMBryan K.
07/28/2021, 4:46 PMsilentworks
07/28/2021, 4:51 PMBryan K.
07/28/2021, 4:52 PMhamishcoding
07/28/2021, 4:54 PMAzura
07/28/2021, 4:55 PMAzura
07/28/2021, 4:56 PMYelloJello
07/28/2021, 4:57 PMbdlukaa
07/28/2021, 5:14 PMsilentworks
07/28/2021, 5:15 PMbdlukaa
07/28/2021, 5:16 PMsilentworks
07/28/2021, 5:17 PMdata
if it doesn't exist or error
would probably have information in itbdlukaa
07/28/2021, 5:17 PMbdlukaa
07/28/2021, 5:17 PMclaud9
07/28/2021, 5:20 PMAzura
07/28/2021, 5:23 PMclaud9
07/28/2021, 5:24 PMAzura
07/28/2021, 5:24 PMsilentworks
07/28/2021, 5:25 PMAzura
07/28/2021, 5:26 PMclaud9
07/28/2021, 5:33 PMshreedx
07/28/2021, 5:36 PMshreedx
07/28/2021, 5:37 PMshreedx
07/28/2021, 6:09 PM