mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-23 06:09:59 +00:00
This makes sure we don't confuse user-controlled functions with PG's builtin functions. ## Problem See https://github.com/neondatabase/cloud/issues/31628
5 lines
142 B
SQL
5 lines
142 B
SQL
SELECT CASE
|
|
WHEN pg_catalog.pg_is_in_recovery() THEN (pg_catalog.pg_last_wal_receive_lsn() - '0/0')::pg_catalog.FLOAT8
|
|
ELSE 0
|
|
END AS lsn;
|