diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-12-20 14:15:52 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-12-20 14:15:52 -0500 |
| commit | dc9c3b0ff21465fa89d71eecf5e6cc956d647eca (patch) | |
| tree | 3c6f695eb5159d9673d3ce749d7a1499ca779c18 /src/test/regress/sql/create_function_1.sql | |
| parent | d1029bb5a26cb84b116b0dee4dde312291359f2a (diff) | |
| download | postgresql-dc9c3b0ff21465fa89d71eecf5e6cc956d647eca.tar.gz | |
Remove dynamic translation of regression test scripts, step 2.
"git mv" all the input/*.source and output/*.source files into
the corresponding sql/ and expected/ directories. Then remove
the pg_regress and Makefile infrastructure associated with
dynamic translation.
Discussion: https://postgr.es/m/1655733.1639871614@sss.pgh.pa.us
Diffstat (limited to 'src/test/regress/sql/create_function_1.sql')
| -rw-r--r-- | src/test/regress/sql/create_function_1.sql | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/test/regress/sql/create_function_1.sql b/src/test/regress/sql/create_function_1.sql new file mode 100644 index 0000000000..4170b16fe6 --- /dev/null +++ b/src/test/regress/sql/create_function_1.sql @@ -0,0 +1,31 @@ +-- +-- CREATE_FUNCTION_1 +-- + +-- directory path and dlsuffix are passed to us in environment variables +\getenv libdir PG_LIBDIR +\getenv dlsuffix PG_DLSUFFIX + +\set regresslib :libdir '/regress' :dlsuffix + +-- Create C functions needed by create_type.sql + +CREATE FUNCTION widget_in(cstring) + RETURNS widget + AS :'regresslib' + LANGUAGE C STRICT IMMUTABLE; + +CREATE FUNCTION widget_out(widget) + RETURNS cstring + AS :'regresslib' + LANGUAGE C STRICT IMMUTABLE; + +CREATE FUNCTION int44in(cstring) + RETURNS city_budget + AS :'regresslib' + LANGUAGE C STRICT IMMUTABLE; + +CREATE FUNCTION int44out(city_budget) + RETURNS cstring + AS :'regresslib' + LANGUAGE C STRICT IMMUTABLE; |
