forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit537898b
committed
Add more tests for CREATE TABLE AS with WITH NO DATA
The relation creation is done at executor startup, however the mainregression test suite is lacking scenarios where no data is insertedwhich is something that can happen when using EXECUTE or EXPLAIN withCREATE TABLE AS and WITH NO DATA.Some patches are worked on to reshape the way CTAS relations arecreated, so this makes sure that we do not miss some query patternsalready supported.Reported-by: Andreas KarlssonAuthor: Michael PaquierReviewed-by: Andreas KarlssonDiscussion:https://postgr.es/m/20190206091817.GB14980@paquier.xyz1 parenteba7753 commit537898b
File tree
4 files changed
+18
-6
lines changed- src/test/regress
- expected
- sql
4 files changed
+18
-6
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
148 | 155 |
| |
149 | 156 |
| |
150 | 157 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
115 |
| - | |
116 |
| - | |
| 115 | + | |
| 116 | + | |
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
| 120 | + | |
120 | 121 |
| |
121 | 122 |
| |
122 |
| - | |
| 123 | + | |
123 | 124 |
| |
124 | 125 |
| |
125 | 126 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 |
| |
65 | 68 |
| |
66 | 69 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
88 |
| - | |
89 |
| - | |
| 88 | + | |
| 89 | + | |
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
| 93 | + | |
93 | 94 |
| |
94 | 95 |
| |
95 | 96 |
| |
96 |
| - | |
| 97 | + | |
97 | 98 |
| |
98 | 99 |
| |
99 | 100 |
| |
|
0 commit comments
Comments
(0)