Re: pgsql: plpython: Add SPI cursor support

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: pgsql: plpython: Add SPI cursor support
Дата
Msg-id 4F0C4B2A.7050601@dunslane.net
обсуждение исходный текст
Ответ на Re: pgsql: plpython: Add SPI cursor support  (Dave Page <dpage@pgadmin.org>)
Ответы Re: pgsql: plpython: Add SPI cursor support  (Dave Page <dpage@pgadmin.org>)
Список pgsql-committers

On 01/10/2012 04:56 AM, Dave Page wrote:
> On Mon, Jan 9, 2012 at 5:32 PM, Andrew Dunstan<andrew@dunslane.net>  wrote:
>>
>> On 01/09/2012 12:13 PM, Peter Geoghegan wrote:
>>> On 9 January 2012 17:06, Dave Page<dpage@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:
>>>
>>> http://www.network-theory.co.uk/docs/gccintro/gccintro_36.html
>>
>>
>> Yeah, something like
>>
>>     gcc -E -I/usr/include/python2.7/ -include Python.h
>> /usr/include/python2.7/object.h
>>
>> adjusted for your paths should do it.
> Thanks - pfa.


which contains:

    __attribute__((dllimport)) PyObject * PyObject_SelfIter(PyObject *);



The result is identical on frogmouth, which builds happily using gcc
4.5.0. So this does look like a compiler quirk.

cheers

andrew

В списке pgsql-committers по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: pgsql: plpython: Add SPI cursor support
Следующее
От: Dave Page
Дата:
Сообщение: Re: pgsql: plpython: Add SPI cursor support