Skip to content

Commit

Permalink
Merge pull request #2046 from josephschorr/pg-relcount
Browse files Browse the repository at this point in the history
Fix data type for pg_class relcount
  • Loading branch information
josephschorr authored Aug 29, 2024
2 parents 9117c68 + 4a955b0 commit 4d2f0df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/datastore/postgres/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (pgd *pgDatastore) Statistics(ctx context.Context) (datastore.Stats, error)

var uniqueID string
var nsDefs []datastore.RevisionedNamespace
var relCount int64
var relCount float64
if err := pgx.BeginTxFunc(ctx, pgd.readPool, pgd.readTxOptions, func(tx pgx.Tx) error {
if pgd.analyzeBeforeStatistics {
if _, err := tx.Exec(ctx, "ANALYZE "+tableTuple); err != nil {
Expand Down

0 comments on commit 4d2f0df

Please sign in to comment.