Thread: small typed-table bug in gram.y

small typed-table bug in gram.y

From
Robert Haas
Date:
While examining gram.y today I happened to notice an oversight in the
grammar rules for creating typed tables: the fourth CREATE TABLE
production ignores $2.  Which I think means (although of course I
didn't test it) that if you do something like "CREATE TEMP TABLE IF
NOT EXISTS foo OF bar", the TEMP won't stick.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


Re: small typed-table bug in gram.y

From
"Kevin Grittner"
Date:
Robert Haas <robertmhaas@gmail.com> wrote:
> While examining gram.y today I happened to notice an oversight in
the
> grammar rules for creating typed tables: the fourth CREATE TABLE
> production ignores $2.  Which I think means (although of course I
> didn't test it) that if you do something like "CREATE TEMP TABLE IF
> NOT EXISTS foo OF bar", the TEMP won't stick.
I tried it on a build from yesterday's HEAD.  You're right.
-Kevin