The Vertica Forum recently got a makeover! Let us know what you think by filling out this short, anonymous survey.
Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!
How can i view the source code of existing stored procedure in vertica?

Hello, I can't display the code of a stored procedure in Vertica. How can I do it?
Tagged:
0
Best Answer
-
Bryan_H Vertica Employee Administrator
EXPORT_OBJECTS will show the CREATE statement:
d2=> select export_objects('','raiseXY');
export_objects
CREATE PROCEDURE public.raiseXY(x int, y varchar)
LANGUAGE 'PL/vSQL'
SECURITY INVOKER
AS '
BEGIN
RAISE NOTICE ''x = %'', x;
RAISE NOTICE ''y = %'', y;
-- some processing statements
END;
';2
Answers
Thank you very much! You helped me a lot!