Changed Query
DO $$ DECLARE r RECORD; BEGIN FOR r IN SELECT tc.constraint_name, ...
DO $$ DECLARE r RECORD; BEGIN FOR r IN SELECT tc.constraint_name, ...
Select * from fvalue."Documents" where "DocumentUniqueId"='NSD_000444' Select * from fvalue."Contract" where "DocumentId"=444 Select * from fvalue."ContractVersions" where "Cont...