You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_, err=e.Context(ctx).SQL("SELECT table_rows FROM information_schema.tables WHERE tables.table_name = ? AND tables.table_schema = ?;", tablename, x.Dialect().URI().DBName).Get(&rows)
255
-
caseschemas.POSTGRES:
256
-
// the table can live in multiple schemas of a postgres database
257
-
// See https://wiki.postgresql.org/wiki/Count_estimate
258
-
tablename=x.TableName(bean, true)
259
-
_, err=e.Context(ctx).SQL("SELECT reltuples::bigint AS estimate FROM pg_class WHERE oid = ?::regclass;", tablename).Get(&rows)
0 commit comments