Digging gram.y

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Digging gram.y
Date: 2006-10-04 09:24:46
Message-ID: 45237DDE.7020403@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In gram.y
Typename: SimpleTypename opt_array_bounds
{
$$ = $1;
$$->arrayBounds = $2;
}
| SETOF SimpleTypename opt_array_bounds
{
$$ = $2;
$$->arrayBounds = $3;
$$->setof = TRUE;
}

Typename is a generic name of type and it used in many places in gram.c, but
AFAIK the single place with SETOF is a function's RETURNS declaration. So there
is many checks about SETOF. May I eliminate SETOF from Typename and leave it
only for RETURNS?

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 2006-10-04 09:33:59 Re: pgindent has been run
Previous Message Zdenek Kotala 2006-10-04 09:16:31 Re: workaround for buggy strtod is not necessary