$ curl cheat.sh/
--  You can quote reserved words using **double** quotes:
--  
--  ----------

 -- \i tmp.sql

 CREATE  TABLE "select"(id integer);

 ALTER TABLE "select"
 RENAME TO api_exchange;

 \d api_exchange

--  [wildplasser] [so/q/53914182] [cc by-sa 3.0]

$
Follow @igor_chubin cheat.sh