--
-- party__name/1
--
create or replace function party__name(
  integer
) returns varchar as $$

declare
  party_id               alias for $1;  
begin
  if party_id = -1 then
   return 'The Public';
  else
   return null;
  end if;
  
end;$$ language plpgsql;