- Notifications
You must be signed in to change notification settings - Fork5
Commita475c60
committed
Remove misplaced sanity check from heap_create().
Even when allow_system_table_mods is not set, we allow creation of anytype of SQL object in pg_catalog, except for relations. And you canget relations into pg_catalog, too, by initially creating them in someother schema and then moving them with ALTER .. SET SCHEMA. So thisrestriction, which prevents relations (only) from being created inpg_catalog directly, is fairly pointless. If we need a safety mechanismfor this, it should be placed further upstream, so that it affects allSQL objects uniformly, and picks up both CREATE and SET SCHEMA.For now, just rip it out, per discussion with Tom Lane.1 parentd2c86a1 commita475c60
File tree
4 files changed
+5
-22
lines changed- src
- backend
- bootstrap
- catalog
- include/catalog
4 files changed
+5
-22
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
222 | 222 |
| |
223 | 223 |
| |
224 | 224 |
| |
225 |
| - | |
226 |
| - | |
| 225 | + | |
227 | 226 |
| |
228 | 227 |
| |
229 | 228 |
| |
|
Lines changed: 2 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
242 | 242 |
| |
243 | 243 |
| |
244 | 244 |
| |
245 |
| - | |
246 |
| - | |
| 245 | + | |
247 | 246 |
| |
248 | 247 |
| |
249 | 248 |
| |
250 | 249 |
| |
251 | 250 |
| |
252 | 251 |
| |
253 | 252 |
| |
254 |
| - | |
255 |
| - | |
256 |
| - | |
257 |
| - | |
258 |
| - | |
259 |
| - | |
260 |
| - | |
261 |
| - | |
262 |
| - | |
263 |
| - | |
264 |
| - | |
265 |
| - | |
266 | 253 |
| |
267 | 254 |
| |
268 | 255 |
| |
| |||
1124 | 1111 |
| |
1125 | 1112 |
| |
1126 | 1113 |
| |
1127 |
| - | |
1128 |
| - | |
| 1114 | + | |
1129 | 1115 |
| |
1130 | 1116 |
| |
1131 | 1117 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
816 | 816 |
| |
817 | 817 |
| |
818 | 818 |
| |
819 |
| - | |
820 |
| - | |
| 819 | + | |
821 | 820 |
| |
822 | 821 |
| |
823 | 822 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
50 |
| - | |
| 49 | + | |
51 | 50 |
| |
52 | 51 |
| |
53 | 52 |
| |
|
0 commit comments
Comments
(0)