forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5b7bfc3
committed
Don't throw an error for LOCK TABLE on a self-referential view.
LOCK TABLE has complained about "infinite recursion" when appliedto a self-referential view, ever since we made it recurse into viewsin v11. However, that breaks pg_dump's new assumption that it'sokay to lock every relation. There doesn't seem to be any goodreason to throw an error: if we just abandon the recursion, we'vestill satisfied the requirement of locking every referenced relation.Per bug #16703 from Andrew Bille (via Alexander Lakhin).Discussion:https://postgr.es/m/16703-e348f58aab3cf6cc@postgresql.org1 parent48e1291 commit5b7bfc3
File tree
3 files changed
+14
-13
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+14
-13
lines changedLines changed: 12 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 |
| - | |
| 35 | + | |
| 36 | + | |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
| |||
195 | 196 |
| |
196 | 197 |
| |
197 | 198 |
| |
198 |
| - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
199 | 203 |
| |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 |
| - | |
| 204 | + | |
204 | 205 |
| |
205 | 206 |
| |
206 | 207 |
| |
| |||
218 | 219 |
| |
219 | 220 |
| |
220 | 221 |
| |
221 |
| - | |
| 222 | + | |
| 223 | + | |
222 | 224 |
| |
223 | 225 |
| |
224 | 226 |
| |
| |||
235 | 237 |
| |
236 | 238 |
| |
237 | 239 |
| |
238 |
| - | |
| 240 | + | |
| 241 | + | |
239 | 242 |
| |
240 | 243 |
| |
241 |
| - | |
242 | 244 |
| |
243 | 245 |
| |
244 | 246 |
| |
| 247 | + | |
245 | 248 |
| |
246 | 249 |
| |
247 | 250 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
127 |
| - | |
| 127 | + | |
128 | 128 |
| |
129 | 129 |
| |
130 | 130 |
| |
131 |
| - | |
132 | 131 |
| |
133 | 132 |
| |
134 | 133 |
| |
135 | 134 |
| |
136 |
| - | |
137 | 135 |
| |
138 | 136 |
| |
139 | 137 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
| 90 | + | |
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
|
0 commit comments
Comments
(0)