0

In postgres source code, I'm confused with the code as below.

typedef TupleTableSlot *(*ExecProcNodeMtd) (struct PlanState *pstate);

Can any one explain it, thank you.

jcyan
  • 51
  • 7
  • It's a type alias for a [function pointer](https://en.wikipedia.org/wiki/Function_pointer#Example_in_C) (named `ExecProcNodeMtd`, expecting a `PlanState *` and returning a `TupleTableSlot *`). – Nick Barnes Dec 18 '18 at 07:41
  • Yes, I get it. Thank you. – jcyan Dec 18 '18 at 11:21
  • 1
    This explains well, https://stackoverflow.com/questions/1591361/understanding-typedefs-for-function-pointers-in-c – jcyan Dec 18 '18 at 11:51

0 Answers0