From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Michael Moore <michaeljmoore(at)gmail(dot)com> |
Cc: | postgres list <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: ERROR: out of shared memory |
Date: | 2016-11-02 22:29:31 |
Message-ID: | CAKFQuwYbOp0GUR3ZDyKOxztyiF7L1ajFRLhgD1ihb87K5UHr5w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Wed, Nov 2, 2016 at 3:28 PM, David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
> On Wed, Nov 2, 2016 at 3:03 PM, Michael Moore <michaeljmoore(at)gmail(dot)com>
> wrote:
>
>> That appears to not be valid syntax.
>> create temporary table temp_rslt of ypxportal2__fgetquestions if not
>> exists on commit drop;
>> ERROR: syntax error at or near "if"
>> LINE 146: ...rary table temp_rslt of ypxportal2__fgetquestions if not
>> exi..
>>
>> https://www.postgresql.org/docs/9.2/static/sql-createtableas.html
>>
>> Am I doing something wrong?
>>
>
> I always get the placement of IF NOT EXISTS confused - but you found the
> doc page with the syntax definition, do you have a question regarding what
> the correct order of parts should be?
>
>
Actually, you didn't find the correct page...
This is a "CREATE TABLE" not "CREATE TABLE AS" command...
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Moore | 2016-11-02 22:33:01 | Re: ERROR: out of shared memory |
Previous Message | David G. Johnston | 2016-11-02 22:28:32 | Re: ERROR: out of shared memory |