pg_total_relation_size: Query table's size in the Postgres database of given 'con'

View source: R/postgres.R

pg_total_relation_sizeR Documentation

Query table's size in the Postgres database of given con

Description

Uses Postgres' pg_total_relation_size to get the value, and pg_size_pretty to try and make it human readable directly

Usage

pg_total_relation_size(con, table_name, pretty = TRUE)

Arguments

con

DBI connection to the database

table_name

character with the table name you want to check

pretty

logical, if TRUE use pg_size_pretty

Value

character if pretty=TRUE, numeric otherwise


edalfon/efun documentation built on June 23, 2024, 4:17 a.m.