Pgsql的offset可以通过以下替代方案实现:
SELECT * FROM (
SELECT *, ROW_NUMBER() OVER () AS rn
FROM table_name
) AS foo
WHERE rn > 10;
DECLARE cur CURSOR FOR
SELECT *
FROM table_name
OFFSET 10;
FETCH NEXT FROM cur;
SELECT *
FROM table_name
WHERE id > 10
LIMIT 10;
这些替代方案可以帮助实现offset的功能,但可能会对性能产生一定影响,需要根据具体情况选择合适的方法。