forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7b94e99
committed
Remove catalog function currtid()
currtid() and currtid2() are an undocumented set of functions whose soleknown user is the Postgres ODBC driver, able to retrieve the latest TIDversion for a tuple given by the caller of those functions.As used by Postgres ODBC, currtid() is a shortcut able to retrieve thelast TID loaded into a backend by passing an OID of 0 (magic value)after a tuple insertion. This is removed in this commit, as it becameobsolete after the driver began using "RETURNING ctid" with inserts, aclause supported since Postgres 8.2 (using RETURNING is better forperformance anyway as it reduces the number of round-trips to thebackend).currtid2() is still used by the driver, so this remains around for now.Note that this function is kept in its original shape for backwardcompatibility reasons.Per discussion with many people, including Andres Freund, PeterEisentraut, Álvaro Herrera, Hiroshi Inoue, Tom Lane and myself.Bump catalog version.Discussion:https://postgr.es/m/20200603021448.GB89559@paquier.xyz1 parent660b899 commit7b94e99
File tree
7 files changed
+56
-133
lines changed- src
- backend
- executor
- utils/adt
- include
- access
- catalog
- test/regress
- expected
- sql
7 files changed
+56
-133
lines changedLines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
645 | 645 |
| |
646 | 646 |
| |
647 | 647 |
| |
648 |
| - | |
649 | 648 |
| |
650 |
| - | |
651 |
| - | |
652 | 649 |
| |
653 | 650 |
| |
654 | 651 |
| |
|
Lines changed: 53 additions & 84 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
| 50 | + | |
| 51 | + | |
50 | 52 |
| |
51 | 53 |
| |
52 | 54 |
| |
| |||
275 | 277 |
| |
276 | 278 |
| |
277 | 279 |
| |
278 |
| - | |
279 |
| - | |
280 |
| - | |
281 |
| - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
282 | 287 |
| |
283 |
| - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
284 | 318 |
| |
285 | 319 |
| |
286 | 320 |
| |
287 | 321 |
| |
288 | 322 |
| |
289 | 323 |
| |
290 | 324 |
| |
291 |
| - | |
| 325 | + | |
292 | 326 |
| |
293 | 327 |
| |
294 | 328 |
| |
| |||
338 | 372 |
| |
339 | 373 |
| |
340 | 374 |
| |
341 |
| - | |
| 375 | + | |
| 376 | + | |
342 | 377 |
| |
343 |
| - | |
344 |
| - | |
345 |
| - | |
346 |
| - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
347 | 381 |
| |
348 | 382 |
| |
349 | 383 |
| |
| |||
352 | 386 |
| |
353 | 387 |
| |
354 | 388 |
| |
355 |
| - | |
356 |
| - | |
357 |
| - | |
358 |
| - | |
359 |
| - | |
360 |
| - | |
361 |
| - | |
362 |
| - | |
363 |
| - | |
364 |
| - | |
365 |
| - | |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
370 |
| - | |
371 |
| - | |
372 |
| - | |
373 |
| - | |
374 |
| - | |
375 |
| - | |
376 |
| - | |
377 |
| - | |
378 |
| - | |
379 |
| - | |
380 |
| - | |
381 |
| - | |
382 |
| - | |
383 |
| - | |
384 |
| - | |
385 |
| - | |
386 |
| - | |
387 |
| - | |
388 |
| - | |
389 |
| - | |
390 |
| - | |
391 |
| - | |
392 |
| - | |
393 |
| - | |
394 |
| - | |
395 |
| - | |
396 |
| - | |
397 |
| - | |
398 |
| - | |
399 |
| - | |
400 |
| - | |
401 |
| - | |
402 |
| - | |
| 389 | + | |
403 | 390 |
| |
404 | 391 |
| |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
405 | 397 |
| |
406 | 398 |
| |
407 | 399 |
| |
| |||
410 | 402 |
| |
411 | 403 |
| |
412 | 404 |
| |
413 |
| - | |
414 |
| - | |
415 |
| - | |
416 | 405 |
| |
417 | 406 |
| |
418 | 407 |
| |
419 | 408 |
| |
420 |
| - | |
421 |
| - | |
422 |
| - | |
423 |
| - | |
424 |
| - | |
425 |
| - | |
426 |
| - | |
427 |
| - | |
428 |
| - | |
429 |
| - | |
430 |
| - | |
431 |
| - | |
432 |
| - | |
433 |
| - | |
434 |
| - | |
435 |
| - | |
436 |
| - | |
437 |
| - | |
438 |
| - | |
439 |
| - | |
440 |
| - | |
441 |
| - | |
| 409 | + | |
| 410 | + | |
442 | 411 |
| |
443 | 412 |
| |
444 | 413 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
132 |
| - | |
133 | 132 |
| |
134 | 133 |
| |
135 | 134 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2549 | 2549 |
| |
2550 | 2550 |
| |
2551 | 2551 |
| |
2552 |
| - | |
2553 |
| - | |
2554 |
| - | |
2555 | 2552 |
| |
2556 | 2553 |
| |
2557 | 2554 |
| |
|
Lines changed: 1 addition & 31 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
22 |
| - | |
23 | 21 |
| |
24 | 22 |
| |
25 | 23 |
| |
26 | 24 |
| |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 | 25 |
| |
34 | 26 |
| |
35 | 27 |
| |
| |||
40 | 32 |
| |
41 | 33 |
| |
42 | 34 |
| |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 | 35 |
| |
50 | 36 |
| |
51 | 37 |
| |
| |||
55 | 41 |
| |
56 | 42 |
| |
57 | 43 |
| |
58 |
| - | |
59 |
| - | |
60 | 44 |
| |
61 | 45 |
| |
62 | 46 |
| |
63 | 47 |
| |
64 | 48 |
| |
65 |
| - | |
66 |
| - | |
67 | 49 |
| |
68 | 50 |
| |
69 | 51 |
| |
70 | 52 |
| |
71 | 53 |
| |
72 | 54 |
| |
73 |
| - | |
74 |
| - | |
75 | 55 |
| |
76 | 56 |
| |
77 | 57 |
| |
78 | 58 |
| |
79 | 59 |
| |
80 |
| - | |
81 |
| - | |
82 | 60 |
| |
83 | 61 |
| |
84 | 62 |
| |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
89 |
| - | |
90 |
| - | |
91 | 63 |
| |
92 | 64 |
| |
93 | 65 |
| |
| |||
98 | 70 |
| |
99 | 71 |
| |
100 | 72 |
| |
101 |
| - | |
102 |
| - | |
103 | 73 |
| |
104 | 74 |
| |
105 | 75 |
| |
|
Lines changed: 1 addition & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
16 | 15 |
| |
17 | 16 |
| |
18 | 17 |
| |
19 |
| - | |
20 | 18 |
| |
21 | 19 |
| |
22 | 20 |
| |
23 | 21 |
| |
24 | 22 |
| |
25 | 23 |
| |
26 |
| - | |
27 | 24 |
| |
28 | 25 |
| |
29 | 26 |
| |
30 | 27 |
| |
31 | 28 |
| |
32 |
| - | |
33 | 29 |
| |
34 | 30 |
| |
35 | 31 |
| |
36 | 32 |
| |
37 | 33 |
| |
38 |
| - | |
39 | 34 |
| |
40 | 35 |
| |
41 | 36 |
| |
42 | 37 |
| |
43 | 38 |
| |
44 | 39 |
| |
45 |
| - | |
46 | 40 |
| |
47 | 41 |
| |
48 | 42 |
| |
49 | 43 |
| |
50 |
| - | |
51 | 44 |
| |
52 | 45 |
| |
53 |
| - | |
54 | 46 |
| |
55 | 47 |
| |
56 | 48 |
| |
57 | 49 |
| |
58 | 50 |
| |
59 |
| - | |
60 | 51 |
| |
61 | 52 |
| |
62 | 53 |
| |
|
0 commit comments
Comments
(0)