My plv8 function says that it can't serialize a bigint when I try to count the number of relations in a table. How can I serialize this without getting this error thrown at me?
b
burggraf
06/19/2022, 1:02 PM
maybe cast the result to an int or int4 with ::int or ::int4?
a
Albert [tox/cis]
06/19/2022, 1:03 PM
I've tried casting it as an int using
::int
but that didn't work. Using cast((subquery) as int) worked 🙂