File: function_psql3.sql

package info (click to toggle)
sqlparse 0.4.2-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 688 kB
  • sloc: python: 4,851; sql: 159; makefile: 108; sh: 19
file content (8 lines) | stat: -rw-r--r-- 171 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
CREATE OR REPLACE FUNCTION foo() RETURNS integer AS
$body$
DECLARE
BEGIN
 select * from foo;
END;
$body$
LANGUAGE 'plpgsql' VOLATILE CALLED ON NULL INPUT SECURITY INVOKER;