forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit62ce0c7
committed
Fix catalog data of pg_stop_backup(), labelled v2
This function has been incorrectly marked as a set-returning functionwith prorows (estimated number of rows) set to 1 since its creation in7117685, that introduced non-exclusive backups. There is no need forthat as the function is designed to return only one tuple.This commit fixes the catalog definition of pg_stop_backup_v2() so as itis not marked as proretset anymore, with prorows set to 0. Thissimplifies its internals by removing one tuplestore (used for one singlerecord anyway) and by removing all the checks related to a set-returningfunction.Issue found during my quest to simplify some of the logic used inin-core system functions.Bump catalog version.Reviewed-by: Aleksander Alekseev, Kyotaro HoriguchiDiscussion:https://postgr.es/m/Yh8guT78f1Ercfzw@paquier.xyz1 parent50f0347 commit62ce0c7
File tree
4 files changed
+11
-35
lines changed- src
- backend
- access/transam
- catalog
- include/catalog
4 files changed
+11
-35
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
165 | 165 |
| |
166 | 166 |
| |
167 | 167 |
| |
168 |
| - | |
| 168 | + | |
169 | 169 |
| |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 |
| - | |
| 170 | + | |
| 171 | + | |
175 | 172 |
| |
176 | 173 |
| |
177 | 174 |
| |
178 | 175 |
| |
179 | 176 |
| |
180 | 177 |
| |
181 |
| - | |
182 |
| - | |
183 |
| - | |
184 |
| - | |
185 |
| - | |
186 |
| - | |
187 |
| - | |
188 |
| - | |
189 |
| - | |
190 |
| - | |
191 |
| - | |
| 178 | + | |
192 | 179 |
| |
193 | 180 |
| |
194 | 181 |
| |
195 |
| - | |
196 |
| - | |
197 |
| - | |
198 |
| - | |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 | 182 |
| |
206 | 183 |
| |
207 | 184 |
| |
| |||
251 | 228 |
| |
252 | 229 |
| |
253 | 230 |
| |
254 |
| - | |
255 |
| - | |
256 |
| - | |
| 231 | + | |
| 232 | + | |
257 | 233 |
| |
258 | 234 |
| |
259 | 235 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
384 | 384 |
| |
385 | 385 |
| |
386 | 386 |
| |
387 |
| - | |
| 387 | + | |
388 | 388 |
| |
389 | 389 |
| |
390 | 390 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6275 | 6275 |
| |
6276 | 6276 |
| |
6277 | 6277 |
| |
6278 |
| - | |
6279 |
| - | |
6280 |
| - | |
| 6278 | + | |
| 6279 | + | |
| 6280 | + | |
6281 | 6281 |
| |
6282 | 6282 |
| |
6283 | 6283 |
| |
|
0 commit comments
Comments
(0)