We're Moving!

The Vertica Forum is moving to a new OpenText Analytics Database (Vertica) Community.

Join us there to post discussion topics, learn about

product releases, share tips, access the blog, and much more.

Create My New Community Account Now


How can i view the source code of existing stored procedure in vertica? — Vertica Forum

How can i view the source code of existing stored procedure in vertica?

yehudityehudit Community Edition User

Hello, I can't display the code of a stored procedure in Vertica. How can I do it?

Best Answer

  • Bryan_HBryan_H Vertica Employee Administrator
    Answer ✓

    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;
    ';

Answers

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file