Created
May 17, 2009 03:37
-
-
Save inklesspen/112908 to your computer and use it in GitHub Desktop.
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
CREATE FUNCTION pltestlang_call_handler() RETURNS language_handler | |
AS 'filename' | |
LANGUAGE C; | |
CREATE LANGUAGE pltestlang | |
HANDLER pltestlang_call_handler; | |
CREATE OR REPLACE FUNCTION sum_ints(integer, integer) | |
RETURNS integer AS | |
$BODY$ | |
BEGIN | |
foo bar baz | |
END; | |
$BODY$ | |
LANGUAGE 'pltestlang'; | |
SELECT * FROM sum_ints(4, 6); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment