This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10:40 nick@nick *=# select * from generate_series(1, 100) f(i) where pg_try_advisory_lock(i) limit 5; | |
i | |
─── | |
1 | |
2 | |
3 | |
4 | |
5 | |
(5 rows) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nick=# select * from nextval('sg', 100); | |
count | first_value | last_value | increment | |
-------+-------------+------------+----------- | |
100 | 2033 | 2133 | 1 | |
(1 row) |