plpy.patch
application/octet-stream
Filename: plpy.patch
Type: application/octet-stream
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: context
| File | + | − |
|---|---|---|
| src/pl/plpython/plpython.c | 10 | 0 |
*** a/src/pl/plpython/plpython.c
--- b/src/pl/plpython/plpython.c
***************
*** 1059,1067 **** PLy_function_handler(FunctionCallInfo fcinfo, PLyProcedure *proc)
PLy_function_delete_args(proc);
if (has_error)
ereport(ERROR,
(errcode(ERRCODE_DATA_EXCEPTION),
! errmsg("error fetching next item from iterator")));
fcinfo->isnull = true;
return (Datum) NULL;
--- 1059,1076 ----
PLy_function_delete_args(proc);
if (has_error)
+ {
+ PyObject *ptype;
+ PyObject *pvalue;
+ PyObject *ptraceback;
+
+ PyErr_Fetch(&ptype, &pvalue, &ptraceback);
+
ereport(ERROR,
(errcode(ERRCODE_DATA_EXCEPTION),
! errmsg("error fetching next item from iterator"),
! errcontext(pvalue ? PyString_AsString(PyObject_Str(pvalue)) : 0)));
! }
fcinfo->isnull = true;
return (Datum) NULL;