从 Amazon S3 中加载压缩的数据文件 - Amazon Redshift
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

从 Amazon S3 中加载压缩的数据文件

要加载使用 gzip、lzop 或 bzip2 压缩的数据文件,请包括相应的选项:GZIP、LZOP 或 BZIP2。

COPY 不支持使用 lzop --filter 选项压缩的文件。

例如,以下命令将从使用 lzop 压缩的文件加载。

copy customer from 's3://mybucket/customer.lzo' iam_role 'arn:aws:iam::0123456789012:role/MyRedshiftRole' delimiter '|' lzop;