Commit a83a944
committed
Rename pg_sequence_read_tuple() to pg_get_sequence_data()
This commit removes log_cnt from the tuple returned by the SQL function.
This field is an internal counter that tracks when a WAL record should
be generated for a sequence, and it is reset each time the sequence is
restored or recovered. It is not necessary to rebuild the sequence DDL
commands for pg_dump and pg_upgrade where this function is used. The
field can still be queried with a scan of the "table" created
under-the-hood for a sequence.
Issue noticed while hacking on a feature that can rely on this new
function rather than pg_sequence_last_value(), aimed at making sequence
computation more easily pluggable.
Bump catalog version.
Reviewed-by: Nathan Bossart
Discussion: https://postgr.es/m/Zsvka3r-y2ZoXAdH@paquier.xyz1 parent 43f2e76 commit a83a944
File tree
6 files changed
+22
-23
lines changed- src
- backend/commands
- bin/pg_dump
- include/catalog
- test/regress
- expected
- sql
6 files changed
+22
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1781 | 1781 | | |
1782 | 1782 | | |
1783 | 1783 | | |
1784 | | - | |
| 1784 | + | |
1785 | 1785 | | |
| 1786 | + | |
1786 | 1787 | | |
1787 | 1788 | | |
1788 | 1789 | | |
1789 | | - | |
1790 | | - | |
| 1790 | + | |
| 1791 | + | |
1791 | 1792 | | |
1792 | 1793 | | |
1793 | 1794 | | |
1794 | 1795 | | |
1795 | | - | |
| 1796 | + | |
1796 | 1797 | | |
1797 | 1798 | | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
| 1799 | + | |
1801 | 1800 | | |
1802 | 1801 | | |
1803 | 1802 | | |
| |||
1818 | 1817 | | |
1819 | 1818 | | |
1820 | 1819 | | |
1821 | | - | |
1822 | | - | |
| 1820 | + | |
1823 | 1821 | | |
1824 | 1822 | | |
1825 | 1823 | | |
| |||
1831 | 1829 | | |
1832 | 1830 | | |
1833 | 1831 | | |
| 1832 | + | |
1834 | 1833 | | |
1835 | 1834 | | |
1836 | 1835 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17381 | 17381 | | |
17382 | 17382 | | |
17383 | 17383 | | |
17384 | | - | |
| 17384 | + | |
17385 | 17385 | | |
17386 | 17386 | | |
17387 | 17387 | | |
| |||
17401 | 17401 | | |
17402 | 17402 | | |
17403 | 17403 | | |
17404 | | - | |
| 17404 | + | |
17405 | 17405 | | |
17406 | 17406 | | |
17407 | 17407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3330 | 3330 | | |
3331 | 3331 | | |
3332 | 3332 | | |
3333 | | - | |
| 3333 | + | |
3334 | 3334 | | |
3335 | | - | |
3336 | | - | |
3337 | | - | |
| 3335 | + | |
| 3336 | + | |
| 3337 | + | |
3338 | 3338 | | |
3339 | 3339 | | |
3340 | 3340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
417 | | - | |
| 416 | + | |
| 417 | + | |
418 | 418 | | |
419 | 419 | | |
0 commit comments