forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc8b06bb
committed
Introduce pg_sequence_read_tuple().
This new function returns the data for the given sequence, i.e.,the values within the sequence tuple. Since this function is asubstitute for SELECT from the sequence, the SELECT privilege isrequired on the sequence in question. It returns all NULLs forsequences for which we lack privileges, other sessions' temporarysequences, and unlogged sequences on standbys.This function is primarily intended for use by pg_dump in afollow-up commit that will use it to optimize dumpSequenceData().Like pg_sequence_last_value(), which is a support function for thepg_sequences system view, pg_sequence_read_tuple() is leftundocumented.Bumps catversion.Reviewed-by: Michael Paquier, Tom LaneDiscussion:https://postgr.es/m/20240503025140.GA1227404%40nathanxps131 parent68e9629 commitc8b06bb
File tree
5 files changed
+78
-1
lines changed- src
- backend/commands
- include/catalog
- test/regress
- expected
- sql
5 files changed
+78
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1773 | 1773 |
| |
1774 | 1774 |
| |
1775 | 1775 |
| |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
1776 | 1837 |
| |
1777 | 1838 |
| |
1778 | 1839 |
| |
|
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 | |
---|---|---|---|
| |||
3329 | 3329 |
| |
3330 | 3330 |
| |
3331 | 3331 |
| |
| 3332 | + | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
| 3337 | + | |
3332 | 3338 |
| |
3333 | 3339 |
| |
3334 | 3340 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
839 | 839 |
| |
840 | 840 |
| |
841 | 841 |
| |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
842 | 849 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
413 | 413 |
| |
414 | 414 |
| |
415 | 415 |
| |
| 416 | + | |
| 417 | + | |
| 418 | + | |
416 | 419 |
|
0 commit comments
Comments
(0)