forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit10b7218
committed
Use macro to define the number of enum values
Refactoring in the interest of code consistency, a follow-up to2e068db.The argument against inserting a special enum value at the end of the enumdefinition is that a switch statement might generate a compiler warning unlessit has a default clause.Aleksander Alekseev, reviewed by Michael Paquier, Dean Rasheed, Peter EisentrautDiscussion:https://postgr.es/m/CAJ7c6TMsiaV5urU_Pq6zJ2tXPDwk69-NKVh4AMN5XrRiM7N%2BGA%40mail.gmail.com1 parentfc1b2ce commit10b7218
File tree
5 files changed
+10
-8
lines changed- contrib/pg_stat_statements
- src
- backend/postmaster
- bin/pg_dump
- include/storage
5 files changed
+10
-8
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
129 |
| - | |
130 |
| - | |
131 | 129 |
| |
132 | 130 |
| |
| 131 | + | |
| 132 | + | |
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
247 | 247 |
| |
248 | 248 |
| |
249 | 249 |
| |
250 |
| - | |
251 | 250 |
| |
252 | 251 |
| |
| 252 | + | |
| 253 | + | |
253 | 254 |
| |
254 | 255 |
| |
255 | 256 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
78 | 77 |
| |
79 | 78 |
| |
| 79 | + | |
| 80 | + | |
80 | 81 |
| |
81 | 82 |
| |
82 | 83 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
44 |
| - | |
45 | 43 |
| |
46 | 44 |
| |
| 45 | + | |
| 46 | + | |
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
51 |
| - | |
52 | 50 |
| |
53 | 51 |
| |
| 52 | + | |
| 53 | + | |
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
|
0 commit comments
Comments
(0)