- Notifications
You must be signed in to change notification settings - Fork5
Commit4c310ec
committed
Arrange for quote_identifier() and pg_dump to not quote keywords that are
unreserved according to the grammar. The list of unreserved words has gottenextensive enough that the unnecessary quoting is becoming a bit of an eyesore.To do this, add knowledge of the keyword category to keywords.c's table.(Someday we might be able to generate keywords.c's table and the keyword listsin gram.y from a common source.) For the moment, lie about WITH's status inthe table so it will still get quoted --- this is because of the expectationthat WITH will become reserved when the SQL recursive-queries patch gets done.I didn't force initdb because this affects nothing on-disk; but note that afew regression tests have changed expected output.1 parent5328340 commit4c310ec
File tree
10 files changed
+463
-429
lines changed- src
- backend
- parser
- utils/adt
- bin/pg_dump
- include/parser
- test/regress
- expected
- output
10 files changed
+463
-429
lines changedLines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
8787 | 8787 |
| |
8788 | 8788 |
| |
8789 | 8789 |
| |
8790 |
| - | |
| 8790 | + | |
8791 | 8791 |
| |
8792 | 8792 |
| |
8793 | 8793 |
| |
8794 | 8794 |
| |
8795 | 8795 |
| |
| 8796 | + | |
| 8797 | + | |
| 8798 | + | |
| 8799 | + | |
8796 | 8800 |
| |
8797 | 8801 |
| |
8798 | 8802 |
| |
|
0 commit comments
Comments
(0)