forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit303b26c
committed
Fix psql's \sf and \ef for new-style SQL functions.
Some options of these commands need to be able to identify the startof the function body within the output of pg_get_functiondef().It used to be that that always began with "AS", but since theintroduction of new-style SQL functions, it might also start with"BEGIN" or "RETURN". Fix that on the psql side, and add someregression tests.Noted by me awhile ago, but I didn't do anything about it.Thanks to David Johnston for a nag.Discussion:https://postgr.es/m/AM9PR01MB8268D5CDABDF044EE9F42173FE8C9@AM9PR01MB8268.eurprd01.prod.exchangelabs.com1 parent47e1224 commit303b26c
File tree
4 files changed
+94
-26
lines changed- src
- backend/utils/adt
- bin/psql
- test/regress
- expected
- sql
4 files changed
+94
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2778 | 2778 | | |
2779 | 2779 | | |
2780 | 2780 | | |
2781 | | - | |
2782 | | - | |
| 2781 | + | |
| 2782 | + | |
2783 | 2783 | | |
2784 | 2784 | | |
2785 | 2785 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
| 167 | + | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
| |||
1165 | 1164 | | |
1166 | 1165 | | |
1167 | 1166 | | |
1168 | | - | |
1169 | | - | |
1170 | | - | |
1171 | | - | |
1172 | | - | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
1173 | 1172 | | |
1174 | 1173 | | |
1175 | 1174 | | |
1176 | 1175 | | |
1177 | 1176 | | |
1178 | | - | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
1179 | 1180 | | |
1180 | 1181 | | |
1181 | 1182 | | |
| |||
2452 | 2453 | | |
2453 | 2454 | | |
2454 | 2455 | | |
2455 | | - | |
2456 | | - | |
2457 | | - | |
2458 | | - | |
2459 | | - | |
2460 | | - | |
2461 | | - | |
2462 | | - | |
2463 | | - | |
| 2456 | + | |
| 2457 | + | |
2464 | 2458 | | |
2465 | 2459 | | |
2466 | 2460 | | |
| |||
5353 | 5347 | | |
5354 | 5348 | | |
5355 | 5349 | | |
5356 | | - | |
5357 | | - | |
| 5350 | + | |
| 5351 | + | |
| 5352 | + | |
| 5353 | + | |
| 5354 | + | |
5358 | 5355 | | |
5359 | 5356 | | |
5360 | 5357 | | |
5361 | 5358 | | |
5362 | | - | |
5363 | | - | |
| 5359 | + | |
5364 | 5360 | | |
5365 | | - | |
5366 | | - | |
| 5361 | + | |
5367 | 5362 | | |
5368 | 5363 | | |
5369 | 5364 | | |
5370 | 5365 | | |
5371 | 5366 | | |
5372 | 5367 | | |
5373 | | - | |
| 5368 | + | |
| 5369 | + | |
| 5370 | + | |
| 5371 | + | |
5374 | 5372 | | |
5375 | 5373 | | |
5376 | 5374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5165 | 5165 | | |
5166 | 5166 | | |
5167 | 5167 | | |
| 5168 | + | |
| 5169 | + | |
| 5170 | + | |
| 5171 | + | |
| 5172 | + | |
| 5173 | + | |
| 5174 | + | |
5168 | 5175 | | |
5169 | 5176 | | |
5170 | 5177 | | |
| |||
5179 | 5186 | | |
5180 | 5187 | | |
5181 | 5188 | | |
| 5189 | + | |
| 5190 | + | |
| 5191 | + | |
| 5192 | + | |
| 5193 | + | |
| 5194 | + | |
| 5195 | + | |
| 5196 | + | |
| 5197 | + | |
| 5198 | + | |
| 5199 | + | |
| 5200 | + | |
| 5201 | + | |
| 5202 | + | |
| 5203 | + | |
| 5204 | + | |
| 5205 | + | |
| 5206 | + | |
| 5207 | + | |
| 5208 | + | |
| 5209 | + | |
| 5210 | + | |
| 5211 | + | |
| 5212 | + | |
| 5213 | + | |
| 5214 | + | |
| 5215 | + | |
| 5216 | + | |
| 5217 | + | |
| 5218 | + | |
| 5219 | + | |
| 5220 | + | |
| 5221 | + | |
| 5222 | + | |
| 5223 | + | |
| 5224 | + | |
| 5225 | + | |
| 5226 | + | |
| 5227 | + | |
| 5228 | + | |
| 5229 | + | |
| 5230 | + | |
| 5231 | + | |
| 5232 | + | |
| 5233 | + | |
| 5234 | + | |
| 5235 | + | |
| 5236 | + | |
| 5237 | + | |
| 5238 | + | |
| 5239 | + | |
| 5240 | + | |
| 5241 | + | |
| 5242 | + | |
| 5243 | + | |
5182 | 5244 | | |
5183 | 5245 | | |
5184 | 5246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1239 | 1239 | | |
1240 | 1240 | | |
1241 | 1241 | | |
| 1242 | + | |
1242 | 1243 | | |
1243 | 1244 | | |
1244 | 1245 | | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
1245 | 1253 | | |
1246 | 1254 | | |
1247 | 1255 | | |
| |||
0 commit comments
Comments
(0)