Hello!
I had have a look at contrib/spi and found a function:
static EPlan *find_plan(char *ident, EPlan ** eplan, int *nplans);
where ident is:
sprintf(ident, "%s$%u", trigger->tgname, trigdata->tg_relation->rd_id);
Quetion:
I want to have a plan for a function which will not be a trigger
function, for 'plain' fanction.
So, what I should to put in the ident?
When we do SPI_prepare and SPI_saveplan we don't give it a name.
Which name will have a saved plan?
my best regards,
----------------
Grigoriy G. Vovk