select table_data_size/1024/1024/1024,table_storage_size/1024/1024/1024 from information_schema.cluster_tables where table_schema='dbname' and table_name='t1';
gp:表大小
select pg_size_pretty(pg_total_relation_size('db1.tb1')) as size;
被标记已删除的数据大小:
select DELETABLE_SIZE/1024/1024/1024 from tables where table_schema='db1' and table_name='tb1'\G;
转储:
create table bak.t1as select * from db1.tb1;
数据加载
load data infile 'ftp://username:passwd@host//FTP/gbase/ftp' into table db1.tb1data_format 3 HAVING LINES SEPARATOR fields terminated by '\x1f' fields enclosed by '"' null_value 'null' lines terminated by '\r\n' datetime format '%Y-%m-%d %H:%i:%s.%f' max_bad_records 0 fields PRESERVE BLANKS fields table_fields col1,col2'