Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c242M-0007yM-EL for pgsql-sql@arkaria.postgresql.org; Wed, 02 Nov 2016 22:29:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c242L-00078T-Ky for pgsql-sql@arkaria.postgresql.org; Wed, 02 Nov 2016 22:29:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c241O-00064T-8C for pgsql-sql@postgresql.org; Wed, 02 Nov 2016 22:28:38 +0000 Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1c241K-0001DH-No for pgsql-sql@postgresql.org; Wed, 02 Nov 2016 22:28:37 +0000 Received: by mail-oi0-x233.google.com with SMTP id 128so42872220oih.0 for ; Wed, 02 Nov 2016 15:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zmaX+PaITIhwzILFTQy23usRJGFXcu7NnpB2Cnes2m4=; b=T3pmPNap1DMbd9af21CMyCgNsxyMxO9f9smyh4UQkXyTpTDNiSEbOL9iH+Dc5+K1Xq Ucpnr6dtWTwtrxXJ7GNlLxixnJ1Zm1g++n7SFAnhpL5BX87fddzsKIRpDB9cxJB5s3hh RoP3odA41zJ/RGxSCNs/ChvUSQCkSnvMI/B4s9aFWsS9U+nr0AzrOjtdVwNWSVTE47Ea 8bM9jWUWdWQWFQWglwdULKpdmV3cLDWWCa+LVMqVsheaaIt//aSJyJY0WUBJglKoLOMU 4HTq+hWX+uNjj4lrYhIS2ExM9Jv1vGJu5gH+OeJY8FyhBteKmjNXzvTSRe5Vr/bnIUw7 KavA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zmaX+PaITIhwzILFTQy23usRJGFXcu7NnpB2Cnes2m4=; b=Pjo5ihC9NBTu2ptASEq53cbZYUIDKxkKEpinLTO8AHj8x/gJddv/WKjKjnS97H6o3u lrOYMqfRJAy2+oyTTFgLFArBOVjOiVFCgFUTfi2K+ImCON8+w9/tp4L1OAm7gXCLh6Cw L6sip/uNzVzS2sWXLkEYEhoo+9D7oOFqrEi227WxGkRqcW4OL5lmWYikR63o67yjnaLM SDOOf5ChqvgyjeqhpGPLvGFe2N+wTm+JAWBxGrCIXcu7YCvgiaR5hDw9ef3F+9Jlj3jM oIzz2HYSwn8DroVW4YF4aTGJDJ9bNH6NakPnX2NAx+/GrKrwQQCw2wcjSUYw1PEtIQpn VQnw== X-Gm-Message-State: ABUngveSRgytNDicMcH0qQgJPQnFr0kIh0UoMK9OcCAeUPUTkkoBCk7fcB1KyCu5fBvBJHLWGx6ZhnQaRYAnHg== X-Received: by 10.202.59.138 with SMTP id i132mr4755455oia.182.1478125712782; Wed, 02 Nov 2016 15:28:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.43.137 with HTTP; Wed, 2 Nov 2016 15:28:32 -0700 (PDT) In-Reply-To: References: From: "David G. Johnston" Date: Wed, 2 Nov 2016 15:28:32 -0700 Message-ID: Subject: Re: ERROR: out of shared memory To: Michael Moore Cc: postgres list Content-Type: multipart/alternative; boundary=001a113ce1fc0b3b67054058f654 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org --001a113ce1fc0b3b67054058f654 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Nov 2, 2016 at 3:03 PM, Michael Moore 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? > =E2=80=8BI always get the placement of IF NOT EXISTS confused - but you fou= nd the doc page with the syntax definition, do you have a question regarding what the correct order of parts should be? David J. =E2=80=8B --001a113ce1fc0b3b67054058f654 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Wed, No= v 2, 2016 at 3:03 PM, Michael Moore <michaeljmoore@gmail.com> wrote:
<= div class=3D"gmail_quote">
T= hat appears to not be valid syntax.=C2=A0
create temporary table temp_r= slt of ypxportal2__fgetquestions if not exists on commit drop;
ERROR: =C2=A0syntax error at or near "if"
LINE 1= 46: ...rary table temp_rslt of ypxportal2__fgetquestions if not exi..

A= m I doing something wrong?

=E2=80= =8BI 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?

David J.
<= div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif= ">=E2=80=8B
--001a113ce1fc0b3b67054058f654--