Column reference "workspace_id" is ambiguous in PL/pgSQL function – Postgresql
In this code, when I run: CREATE TABLE IF NOT EXISTS setup_workspace_result ( path TEXT, workspace_id BIGINT ); DROP FUNCTION IF EXISTS public.setup_workspace; CREATE OR REPLACE FUNCTION setup_workspace(refresh_token TEXT) RETURNS setup_workspace_result AS $$ DECLARE user_email TEXT := ((current_setting('request.jwt.claims'::text, TRUE))::JSON ->>…