small typed-table bug in gram.y

Started by Robert Haasover 15 years ago2 messages
#1Robert Haas
robertmhaas@gmail.com

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

#2Kevin Grittner
Kevin.Grittner@wicourts.gov
In reply to: Robert Haas (#1)
Re: small typed-table bug in gram.y

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