left

Create a user-define function that trims row data from the left.

Create a user-define function that trims row data from the left. Requires that both and are enabled.

CREATE OR REPLACE FUNCTION cycling.left (
  column text, num int
) 
  RETURNS NULL ON NULL INPUT 
  RETURNS text 
  LANGUAGE javascript AS 
    $$
      column.substring(0, num)
    $$
;