mirror of https://github.com/citusdata/citus.git
Set a memory context when throwing deferred errors
parent
e3c763c3f7
commit
a30b9b93a4
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
#include "utils/memutils.h"
|
||||
|
||||
#include "distributed/citus_nodes.h"
|
||||
#include "distributed/errormessage.h"
|
||||
|
@ -54,5 +55,7 @@ RaiseDeferredErrorInternal(DeferredErrorMessage *error, int elevel)
|
|||
errorData->lineno = error->linenumber;
|
||||
errorData->funcname = error->functionname;
|
||||
|
||||
errorData->assoc_context = ErrorContext;
|
||||
|
||||
ThrowErrorData(errorData);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue