Re: "CREATE TABLE table_name AS EXECUTE name WITH DATA" becomes syntax error.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Naoya Anzai <anzai-naoya(at)mxu(dot)nes(dot)nec(dot)co(dot)jp>
Cc: pgsql-general(at)postgresql(dot)org, Akio Iwaasa <iwaasa(at)mxs(dot)nes(dot)nec(dot)co(dot)jp>
Subject: Re: "CREATE TABLE table_name AS EXECUTE name WITH DATA" becomes syntax error.
Date: 2011-11-24 18:48:57
Message-ID: 26753.1322160537@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Naoya Anzai <anzai-naoya(at)mxu(dot)nes(dot)nec(dot)co(dot)jp> writes:
> Accroding to http://www.postgresql.org/docs/9.1/interactive/sql-createtableas.html ,
> "CREATE TABLE table_name AS EXECUTE name WITH DATA" seems a right syntax,
> but,this statement becomes a SYNTAX ERROR.

Hmm ... it looks like WITH [NO] DATA is actually only implemented for
the query = SelectStmt case, not the query = ExecuteStmt case. We need
a less klugy implementation to support EXECUTE :-(

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Cédric Villemain 2011-11-24 19:14:51 Re: General performance/load issue
Previous Message Philippe Lang 2011-11-24 18:33:01 Convert string to UNICODE & migration FROM 7.4 to 9.1