Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2012-01-10 Thread Dave Page
On Mon, Jan 9, 2012 at 5:32 PM, Andrew Dunstan and...@dunslane.net wrote: On 01/09/2012 12:13 PM, Peter Geoghegan wrote: On 9 January 2012 17:06, Dave Pagedp...@pgadmin.org  wrote: Is there a way I can get gcc to spit out the expanded definition in a readable format that you know of?

Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2012-01-10 Thread Andrew Dunstan
On 01/10/2012 04:56 AM, Dave Page wrote: On Mon, Jan 9, 2012 at 5:32 PM, Andrew Dunstanand...@dunslane.net wrote: On 01/09/2012 12:13 PM, Peter Geoghegan wrote: On 9 January 2012 17:06, Dave Pagedp...@pgadmin.orgwrote: Is there a way I can get gcc to spit out the expanded definition

Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2012-01-10 Thread Dave Page
On Tue, Jan 10, 2012 at 2:28 PM, Andrew Dunstan and...@dunslane.net wrote: On 01/10/2012 04:56 AM, Dave Page wrote: On Mon, Jan 9, 2012 at 5:32 PM, Andrew Dunstanand...@dunslane.net  wrote: On 01/09/2012 12:13 PM, Peter Geoghegan wrote: On 9 January 2012 17:06, Dave

Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2012-01-09 Thread Andrew Dunstan
On 12/14/2011 06:43 PM, Jan Urbański wrote: - Original message - On 12/05/2011 12:56 PM, Peter Eisentraut wrote: plpython: Add SPI cursor support Add a function plpy.cursor that is similar to plpy.execute but uses an SPI cursor to avoid fetching the entire result set into memory.

Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2012-01-09 Thread Dave Page
On Mon, Jan 9, 2012 at 3:35 PM, Andrew Dunstan and...@dunslane.net wrote: On 12/14/2011 06:43 PM, Jan Urbański wrote: - Original message - On 12/05/2011 12:56 PM, Peter Eisentraut wrote: plpython: Add SPI cursor support Add a function plpy.cursor that is similar to plpy.execute

Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2012-01-09 Thread Andrew Dunstan
On 01/09/2012 10:52 AM, Dave Page wrote: On Mon, Jan 9, 2012 at 3:35 PM, Andrew Dunstanand...@dunslane.net wrote: On 12/14/2011 06:43 PM, Jan Urbański wrote: - Original message - On 12/05/2011 12:56 PM, Peter Eisentraut wrote: plpython: Add SPI cursor support Add a function

Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2012-01-09 Thread Tom Lane
Andrew Dunstan and...@dunslane.net writes: On 01/09/2012 10:52 AM, Dave Page wrote: Yes, it's defined as such: PyAPI_FUNC(PyObject *) PyObject_SelfIter(PyObject *); Hmm. Well, at this stage I'm slightly inclined to say it's a compiler problem. That's a pretty old compiler. If you can't

Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2012-01-09 Thread Dave Page
On Mon, Jan 9, 2012 at 4:57 PM, Tom Lane t...@sss.pgh.pa.us wrote: Andrew Dunstan and...@dunslane.net writes: On 01/09/2012 10:52 AM, Dave Page wrote: Yes, it's defined as such: PyAPI_FUNC(PyObject *) PyObject_SelfIter(PyObject *); Hmm. Well, at this stage I'm slightly inclined to say it's a

Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2012-01-09 Thread Peter Geoghegan
On 9 January 2012 17:06, Dave Page dp...@pgadmin.org wrote: Is there a way I can get gcc to spit out the expanded definition in a readable format that you know of? Yes. Figure out what flags gcc is given when building the TU. Then, add the -E flag and see what is generated:

Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2012-01-09 Thread Andrew Dunstan
On 01/09/2012 12:13 PM, Peter Geoghegan wrote: On 9 January 2012 17:06, Dave Pagedp...@pgadmin.org wrote: Is there a way I can get gcc to spit out the expanded definition in a readable format that you know of? Yes. Figure out what flags gcc is given when building the TU. Then, add the -E

Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2012-01-09 Thread Peter Eisentraut
On mån, 2012-01-09 at 17:06 +, Dave Page wrote: Is there a way I can get gcc to spit out the expanded definition in a readable format that you know of? make plpy_cursorobject.i -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your

Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2011-12-14 Thread Andrew Dunstan
On 12/05/2011 12:56 PM, Peter Eisentraut wrote: plpython: Add SPI cursor support Add a function plpy.cursor that is similar to plpy.execute but uses an SPI cursor to avoid fetching the entire result set into memory. Jan Urbański, reviewed by Steve Singer This commit apparently caused a

Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2011-12-14 Thread Tom Lane
Andrew Dunstan and...@dunslane.net writes: On 12/05/2011 12:56 PM, Peter Eisentraut wrote: plpython: Add SPI cursor support This commit apparently caused a problem on buildfarm narwhal, which has been failing for 8 days without anyone paying attention. Um, yes, some of us noticed:

[COMMITTERS] pgsql: plpython: Add SPI cursor support

2011-12-05 Thread Peter Eisentraut
plpython: Add SPI cursor support Add a function plpy.cursor that is similar to plpy.execute but uses an SPI cursor to avoid fetching the entire result set into memory. Jan Urbański, reviewed by Steve Singer Branch -- master Details ---

Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

2011-12-05 Thread Bruce Momjian
Peter Eisentraut wrote: plpython: Add SPI cursor support Add a function plpy.cursor that is similar to plpy.execute but uses an SPI cursor to avoid fetching the entire result set into memory. Jan Urba?ski, reviewed by Steve Singer I assume this is _not_ related to this TODO item: