We have a schema in Greenplum with Postgres version 8.2, where we are not allowed to create a function. We have some working functions in another server/schema. We like to run those functions in a new schema as anonymous code block. We tried the following in pgadmin (Gui interface) and command line psql. We're getting an error.
Here is the tried code.
do $$
declare
at1 text;
ftxt varchar(50) := ‘How are you?’ ;
begin
RAISE NOTICE ‘Hello World ‘ || ftxt ;
end;
$$;
It is not accepting "do". That's where the error points. I need your guidance to make this work.
Is there a mechanism like DB link of Oracle to work with across greenplum instances/schema objects?