-1

When I compile the extension I've got, I'm getting

error: ‘work_mem’ undeclared (first use in this function)
   17 |   Tuplestorestate *tupstore = tuplestore_begin_heap(true, false, work_mem);

What header includes work_mem?

Evan Carroll
  • 78,363
  • 46
  • 261
  • 468

1 Answers1

1

The work_mem symbol is provided by misadmin.h you will have to add that header into your .c file.

#include "miscadmin.h"
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468