aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2011-01-18 23:53:10 +0200
committerPeter Eisentraut <peter_e@gmx.net>2011-01-18 23:53:10 +0200
commitd9a95c0adb11f7a3ca5aa9ab8a900018832ed4ea (patch)
tree3ca98a2fe424aca5c710968709572c10b559d792
parent41282111e6cc73aca4b63dffe950ba7a63e4bd8a (diff)
downloadpostgresql-d9a95c0adb11f7a3ca5aa9ab8a900018832ed4ea.tar.gz
postgresql-d9a95c0adb11f7a3ca5aa9ab8a900018832ed4ea.zip
Use PyObject_New instead of PyObject_NEW
The latter is undocumented and the speed gain is negligible. Jan UrbaƄski
-rw-r--r--src/pl/plpython/plpython.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c
index 39a4bb585b7..03d6962ca02 100644
--- a/src/pl/plpython/plpython.c
+++ b/src/pl/plpython/plpython.c
@@ -2671,7 +2671,7 @@ PLy_plan_new(void)
{
PLyPlanObject *ob;
- if ((ob = PyObject_NEW(PLyPlanObject, &PLy_PlanType)) == NULL)
+ if ((ob = PyObject_New(PLyPlanObject, &PLy_PlanType)) == NULL)
return NULL;
ob->plan = NULL;
@@ -2727,7 +2727,7 @@ PLy_result_new(void)
{
PLyResultObject *ob;
- if ((ob = PyObject_NEW(PLyResultObject, &PLy_ResultType)) == NULL)
+ if ((ob = PyObject_New(PLyResultObject, &PLy_ResultType)) == NULL)
return NULL;
/* ob->tuples = NULL; */