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

Re: actualised funcs typmod patch

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: actualised funcs typmod patch
Date: 2009-11-15 18:08:04
Message-ID: 162867790911151008m6af2a265ic608af1149922021@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
Hello

I am sending actualised patch. Sorry - I am late, I am ill.

Regards
Pavel Stehule

2009/11/13 Alvaro Herrera <alvherre(at)commandprompt(dot)com>:
> Pavel Stehule escribió:
>> Hello
>>
>> actualised version: enhance check inside sql function
>
> What is this against?  It has a few suspicious chunks, such as
>
> ***************
> *** 358,364 ****
>
>                funcexpr->funcid = funcid;
>                funcexpr->funcresulttype = rettype;
> !               funcexpr->funcresulttypmod = -1;  // TODO STEHULE
>                funcexpr->funcretset = retset;
>                funcexpr->funcformat = COERCE_EXPLICIT_CALL;
>                funcexpr->args = fargs;
> --- 365,371 ----
>
>                funcexpr->funcid = funcid;
>                funcexpr->funcresulttype = rettype;
> !               funcexpr->funcresulttypmod = rettypmod;
>                funcexpr->funcretset = retset;
>                funcexpr->funcformat = COERCE_EXPLICIT_CALL;
>                funcexpr->args = fargs;
>
>
>
> This ended up in ./src/backend/parser/parse_func.c.rej
>
> There are other rejects and I'm not sure if I should fix them (at least
> the first couple look trivial, though it's against a bunch of code
> that last changed in Aug. last year) or ask for a better version ...
>
> --
> Alvaro Herrera                                http://www.CommandPrompt.com/
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
>

Attachment: proargtypmodes151109.diff.gz
Description: application/x-gzip (105.9 KB)

In response to

Responses

pgsql-hackers by date

Next:From: George GensureDate: 2009-11-15 18:09:56
Subject: Re: patch - Report the schema along table name in a referential failure error message
Previous:From: Pavel StehuleDate: 2009-11-15 17:54:08
Subject: Re: named parameters in SQL functions

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