mirror of
https://github.com/postgres/postgres.git
synced 2026-04-26 00:31:07 -04:00
Author: Bharath Rupireddy, Jeff Davis Discussion: https://postgr.es/m/CALj2ACVTBNA1wfVCsikfhygAbZe6kFY8Oz6PhOyhHyA4vAGouA%40mail.gmail.com
16 lines
537 B
SQL
16 lines
537 B
SQL
/* src/test/modules/test_custom_rmgrs/test_custom_rmgrs--1.0.sql */
|
|
|
|
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
|
\echo Use "CREATE EXTENSION test_custom_rmgrs" to load this file. \quit
|
|
|
|
--
|
|
-- test_custom_rmgrs_insert_wal_record()
|
|
--
|
|
-- Writes a simple message into WAL with the help of custom WAL
|
|
-- resource manager.
|
|
--
|
|
CREATE FUNCTION test_custom_rmgrs_insert_wal_record(IN payload TEXT,
|
|
OUT lsn pg_lsn
|
|
)
|
|
AS 'MODULE_PATHNAME', 'test_custom_rmgrs_insert_wal_record'
|
|
LANGUAGE C STRICT PARALLEL UNSAFE;
|