mbaccari
08/29/2024, 4:27 PMpg_class.reltuples
into an int, but in postgres, it is stored as a `real`/`float4`, which leads to parsing errors.
unable to query DB stats: unable to read relationship count: can't scan into dest[0]: strconv.ParseInt: parsing "1.018981e+06": invalid syntax
Running the SQL command my self, I get:
authz=> SELECT reltuples FROM pg_class WHERE relname = 'relation_tuple';
reltuples
--------------
1.018981e+06
(1 row)
Location of the suspected bug: https://github.com/authzed/spicedb/blob/fd2978a1771fa9b09fdfb3ba05ba32bbd4006d69/internal/datastore/postgres/stats.go#L60
SpiceDB: v.1.35.3
Postgres: 16.1yetitwo
08/29/2024, 4:32 PMmbaccari
08/29/2024, 4:35 PMyetitwo
08/29/2024, 4:37 PMmbaccari
08/29/2024, 4:37 PMyetitwo
08/29/2024, 4:39 PMmbaccari
08/29/2024, 4:40 PMyetitwo
08/29/2024, 4:49 PMmbaccari
08/29/2024, 4:50 PMJoey
08/29/2024, 7:54 PMJoey
08/29/2024, 7:54 PMmbaccari
08/29/2024, 7:55 PM