Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WITH RECURSIVE fib(prevValue, value) AS (
SELECT 0::float8, 1::float8
UNION ALL
SELECT value::float8, prevValue::float8 + value::float8 FROM fib
)
SELECT value FROM fib LIMIT 1 OFFSET 999;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.