timescaledb/tsl/test/sql/remote_stmt_params.sql
niksa a38f514411 Binary format support for statement parameters
This change clearly separates handling of statement parameters. By default parameters
are represented in binary format but if not supported it can fallback to text format.
A GUC timescaledb.enable_cluster_binary_format can be used to force TEXT.
2020-05-27 17:31:09 +02:00

18 lines
605 B
SQL

-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
\c :TEST_DBNAME :ROLE_SUPERUSER
CREATE OR REPLACE FUNCTION _timescaledb_internal.test_stmt_params_format(binary BOOL)
RETURNS VOID
AS :TSL_MODULE_PATHNAME, 'tsl_test_stmt_params_format'
LANGUAGE C STRICT;
-- by default we use binary format
SELECT _timescaledb_internal.test_stmt_params_format(true);
SET timescaledb.enable_connection_binary_data = false;
SELECT _timescaledb_internal.test_stmt_params_format(false);