codekingpro/portable-devtools
114k
1/* src/test/modules/test_custom_rmgrs/test_custom_rmgrs--1.0.sql */2 3-- complain if script is sourced in psql, rather than via CREATE EXTENSION4\echo Use "CREATE EXTENSION test_custom_rmgrs" to load this file. \quit5 6--7-- test_custom_rmgrs_insert_wal_record()8--9-- Writes a simple message into WAL with the help of custom WAL10-- resource manager.11--12CREATE FUNCTION test_custom_rmgrs_insert_wal_record(IN payload TEXT,13 OUT lsn pg_lsn14)15AS 'MODULE_PATHNAME', 'test_custom_rmgrs_insert_wal_record'16LANGUAGE C STRICT PARALLEL UNSAFE;17 