Skip site navigation (1) Skip section navigation (2)

Re: plpython tracebacks

From: "P(dot) Scott DeVos" <scott(at)countrysidetechnology(dot)com>
To: "P(dot) Scott DeVos" <scott(at)countrysidetechnology(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: plpython tracebacks
Date: 2006-02-22 23:42:19
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches

P. Scott DeVos wrote:

> Are you sure this works: "PyString_AsString(lno)"?  lno is a python 
> integer object.  Maybe we want, "PyString_AsString(PyObject_Str(lno))"
Wait, this is not the way to do it because PyObject_Str returns a new 
reference.  I think you have to assign PyObject_Str(lno) to another 
variable so that you can decrement the reference on it.  Unless your 
code works as it, in which case, never mind...


In response to

pgsql-patches by date

Next:From: Jim C. NasbyDate: 2006-02-23 00:50:32
Subject: Re: [PATCHES] Summary table trigger example race condition
Previous:From: P. Scott DeVosDate: 2006-02-22 23:30:39
Subject: Re: plpython tracebacks

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group