You should be able query the pg_class table to see if the relname exists.
IF EXISTS (SELECT 0 FROM pg_class where relname="<my sequence name here>" )
THEN
--stuff here
END IF;
You should be able query the pg_class table to see if the relname exists.
IF EXISTS (SELECT 0 FROM pg_class where relname="<my sequence name here>" )
THEN
--stuff here
END IF;