Facing issue while executing dynamic insert query in postgresql
query used in function.
EXECUTE 'INSERT INTO tblename_' || NEW.id|| ' VALUES ($1)' USING NEW.* ;
While executing the above line it throws this error
ERROR: query "SELECT NEW.*" returned 14 columns