To customize function strings, you alter their input and output templates.
For the rs_select and rs_select_with_lock functions, used in subscription materialization, Replication Server uses input templates to locate the function string that corresponds to a subscription’s where clause.
For all functions Replication Server uses output templates to map functions to the language commands or to apply RPC invocations at the destination data server.