I am trying to grant permissions for a function to a user
postgres=# grant all privileges on function myfunction to a_user;
But I get:
ERROR: syntax error at or near "to"
LINE 1: grant all privileges on function myfunction to a_user;
Any reason why?
My function starts like this:
CREATE OR REPLACE FUNCTION myfunction(
param_val1 varchar(255),
param_cal2 VARCHAR(255),
param_val3 VARCHAR(255),
param_val4 current_category,
param_val5 current_type,
param_val6 VARCHAR(255),
param_val7 bigint,
param_val8 text )