This section describes how to write and run a load script using the COPY command.
Writing a Load Script
The COPY command requires an absolute pathname for a data file. It does not accept relative pathnames. However, you can specify the locations of your data files relative to your Linux working directory using vsql variables.
\set t_pwd `pwd`
\set input_file '\'':t_pwd'/Date_Dimension.tbl\''
COPY Date_Dimension FROM :input_file DELIMITER '|';
Running a Load Script
You can run a load script on any host, as long as the data files are on that host.
$ cd /opt/vertica/doc/retail_example_database
$ /opt/vertica/bin/adminTools