Creates a writable external table, sales_out, that uses gpfdist to write output data to the file sales.out. The column delimiter is a pipe ( | ) and NULL (’ ’) is a space. The file will be created in the directory specified when you started the gpfdist file server.

    1. =# CREATE WRITABLE EXTERNAL TABLE sales_out (LIKE sales)
    2. LOCATION ('gpfdist://etl1:8081/sales.out')
    3. FORMAT 'TEXT' ( DELIMITER '|' NULL ' ')
    4. DISTRIBUTED BY (txn_id);

    Parent topic: Examples for Creating External Tables