src/test/modules/worker_spi/worker_spi--1.0.sql
raw| 1 | /* src/test/modules/worker_spi/worker_spi--1.0.sql */ |
| 2 | |
| 3 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION |
| 4 | \echo Use "CREATE EXTENSION worker_spi" to load this file. \quit |
| 5 | |
| 6 | -- In the default case, dboid and roleoid fall back to their respective GUCs. |
| 7 | CREATE FUNCTION worker_spi_launch(index int4, |
| 8 | dboid oid DEFAULT 0, |
| 9 | roleoid oid DEFAULT 0, |
| 10 | flags text[] DEFAULT '{}') |
| 11 | RETURNS pg_catalog.int4 STRICT |
| 12 | AS 'MODULE_PATHNAME' |
| 13 | LANGUAGE C; |