diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-11-05 23:24:27 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-11-05 23:24:27 +0000 |
| commit | 593f4b854a8bb384547b8fa9854c73dcd88d4876 (patch) | |
| tree | 7df8238f7a7eac1e4afcb11840b1f01e6abd2eb1 /src/backend/commands/view.c | |
| parent | 45d7e04fce5c00b1242787bc0fc150f9ecaf029e (diff) | |
| download | postgresql-593f4b854a8bb384547b8fa9854c73dcd88d4876.tar.gz | |
Don't treat NEW and OLD as reserved words anymore. For the purposes of rules
it works just as well to have them be ordinary identifiers, and this gets rid
of a number of ugly special cases. Plus we aren't interfering with non-rule
usage of these names.
catversion bump because the names change internally in stored rules.
Diffstat (limited to 'src/backend/commands/view.c')
| -rw-r--r-- | src/backend/commands/view.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/view.c b/src/backend/commands/view.c index ab018502dc..fe3e4327c5 100644 --- a/src/backend/commands/view.c +++ b/src/backend/commands/view.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/view.c,v 1.118 2009/10/13 00:53:07 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/view.c,v 1.119 2009/11/05 23:24:23 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -361,10 +361,10 @@ UpdateRangeTableOfViewParse(Oid viewOid, Query *viewParse) * OLD first, then NEW.... */ rt_entry1 = addRangeTableEntryForRelation(NULL, viewRel, - makeAlias("*OLD*", NIL), + makeAlias("old", NIL), false, false); rt_entry2 = addRangeTableEntryForRelation(NULL, viewRel, - makeAlias("*NEW*", NIL), + makeAlias("new", NIL), false, false); /* Must override addRangeTableEntry's default access-check flags */ rt_entry1->requiredPerms = 0; |
