You can use request functions to allow the primary database user to invoke stored procedures on the replicate data. The following section illustrates a system that uses request functions, applied functions, and a local pending table.