-
-
Save vinnix/6f54a694786642e96c07 to your computer and use it in GitHub Desktop.
Exemplo para criação e execução da função.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Associa a função da biblioteca em C, com o PostgreSQL | |
-- permitindo que o mesmo execute a função em tempo de execução PL/SQL | |
-- | |
CREATE FUNCTION vnx_pg_logdir_ls() RETURNS TABLE (T timestamp, nome TEXT) | |
AS 'myLilLibrary', 'vnx_pg_logdir_ls' | |
LANGUAGE C STRICT; | |
-- Chama a função | |
-- | |
SELECT * FROM vnx_pg_logdir_ls(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment