code: def compile_create_temporary_table(table_name: str,
                                     column_statement: str,
                                     primary_key_statement: str) -> str:
      
  
      statement = """
                  CREATE TEMPORARY TABLE {table} ({columns} {primary_keys});
                  """.format(table=table_name,
                             columns=column_statement,
                             primary_keys=primary_key_statement)
      return statement
docs: Postgresql Create Temporary Table statement formatter.