The easiest way I've found is to use the following:
BEGIN; CREATE TABLE mytable_tmp DISTSTYLE ALL
This makes it easy to modify distkey or diststyle tables without even knowing which columns are in that table. You need to know the name of the table.
source share