Re: pl/python refactoring - Mailing list pgsql-hackers

From Hitoshi Harada
Subject Re: pl/python refactoring
Date
Msg-id AANLkTi=f4P5ny+xxz5JS0QNomjKwFxd6EkkgAdUTAsva@mail.gmail.com
Whole thread Raw
In response to Re: pl/python refactoring  (Jan Urbański <wulczer@wulczer.org>)
List pgsql-hackers
2011/1/19 Jan Urbański <wulczer@wulczer.org>:
> On 19/01/11 02:06, Hitoshi Harada wrote:
>> - -1 is used as the initial value of PLyTypeInfo.is_rowtype. Why not 0?
>
> See the comments in struct PLyTypeInfo:
>
> is_rowtype can be: -1 = not known yet (initial state); 0 = scalar
> datatype; 1 = rowtype; 2 = rowtype, but I/O functions not set up yet

Well, I mean that 0 = inital, 1 = scalar, 2 = rowtype, 3 = rowtype but
not set up sounds more intuitive to me. Of course this is only what I
feel.

Regards,


--
Hitoshi Harada


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: ToDo: support for parameters in EXECUTE statement
Next
From: Heikki Linnakangas
Date:
Subject: Re: ToDo: support for parameters in EXECUTE statement