【发布时间】:2022-06-15 00:33:47
【问题描述】:
如果有新记录插入到 supabase 的 auth users 表中,下面的触发函数会触发
declare
api_url text;
begin
SET search_path = extensions;
api_url := concat('https://cccccxzxxt?nme=',new.id);
SELECT * FROM http_get(api_url);
SET search_path = none;
return new;
end;
http_get 确实被触发了,但我在尝试创建新用户时收到 {"code":500,"msg":"Database error Saving new user","error_id":"xxx"} user 并且在 auth users 表中没有创建用户。
【问题讨论】:
标签: postgresql supabase