Re: NUMERIC key word

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: NUMERIC key word
Date: 2008-01-29 18:20:27
Message-ID: 23408.1201630827@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> In 8.3, it appears that NUMERIC doesn't need to be a key word any longer. See
> attached patch. Was there a reason this was kept in the parser? Otherwise
> we could remove it in 8.4.

The reason it was kept was to override the search path --- unqualified
NUMERIC will always be taken as pg_catalog.numeric even if you have some
other type "numeric" in front of it. I believe we had concluded that this
behavior is required by the SQL spec. In any case, it would be kinda
weird for DECIMAL to have that behavior and NUMERIC not.

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2008-01-29 19:09:13 Re: [PATCHES] Proposed patch: synchronized_scanning GUCvariable
Previous Message Jeff Davis 2008-01-29 17:48:15 Re: [PATCHES] Proposed patch: synchronized_scanning GUCvariable