Skip to content

Commit 5c5cc10

Browse files
committed
Improved cloudsync_changes SELECT
1 parent f3db8fc commit 5c5cc10

5 files changed

Lines changed: 143 additions & 323 deletions

File tree

src/postgresql/cloudsync--1.0.sql

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,19 @@ LANGUAGE C IMMUTABLE STRICT;
210210
-- Changes Functions
211211
-- ============================================================================
212212

213+
CREATE OR REPLACE FUNCTION cloudsync_encode_value(anyelement)
214+
RETURNS bytea
215+
AS 'MODULE_PATHNAME', 'cloudsync_encode_value'
216+
LANGUAGE C IMMUTABLE;
217+
213218
-- Encoded column value helper (PG): returns cloudsync-encoded bytea
214-
CREATE OR REPLACE FUNCTION cloudsync_col_value_encoded(
215-
schema_name text,
219+
CREATE OR REPLACE FUNCTION cloudsync_col_value(
216220
table_name text,
217221
col_name text,
218222
pk bytea
219223
)
220224
RETURNS bytea
221-
AS 'MODULE_PATHNAME', 'cloudsync_col_value_encoded'
225+
AS 'MODULE_PATHNAME', 'cloudsync_col_value'
222226
LANGUAGE C STABLE;
223227

224228
-- SetReturningFunction: To implement SELECT FROM cloudsync_changes

0 commit comments

Comments
 (0)