Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fCWnG-00072T-3m for pgsql-docs@arkaria.postgresql.org; Sat, 28 Apr 2018 20:50:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fCWnE-00033Z-EB for pgsql-docs@arkaria.postgresql.org; Sat, 28 Apr 2018 20:50:04 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fCWnD-00033K-Qm for pgsql-docs@lists.postgresql.org; Sat, 28 Apr 2018 20:50:04 +0000 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fCWnA-0002MQ-A1 for pgsql-docs@lists.postgresql.org; Sat, 28 Apr 2018 20:50:02 +0000 Received: by mail-qt0-x244.google.com with SMTP id z23-v6so6728425qti.5 for ; Sat, 28 Apr 2018 13:49:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=JgOdPHQVizvnCtcfUruDU/gKBSaDiNMaSsTnSBv472w=; b=HHeOc3Z7TgignvhSiXJI5/etbMxv1itxBp1XMkpBjkd2+Gwzeh+URANm22kUrvsykI ge/kxJgWn1BBlBuvrDXBvak66QpeLOt3s7Ux2LbrkQKT+Oxx5erlzCyR/7VbaghxTqt7 aKwZLxj2heoqQ9mLKiXl0NpX8pGfocZLelzQjWz5HmPwD69suTovxgQyC4d8uclmWVLz YOiR9F0I3w8gTXGLhZrcBSPbuqg0vIohexisjze+Q+sML+vn54AjWzZNVE2zSYOixgcH QMMB7yosFfFw0bRTvSv7FOn7js/03FJfvVcEtiFwhCCMZlUA7iD5l4A1Auhu/l1rxsd1 R/CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=JgOdPHQVizvnCtcfUruDU/gKBSaDiNMaSsTnSBv472w=; b=R5KU3Vm/6PYeFL2yrW41AAozg/HeLZihUbY58ZVFDgoKESzaAsQdm4t0LTUdW4okV+ dYLdskrlEtcr1oZSnyQyaH7oq5/dcNyeBiuSL3XfNWiowiZZI710LzS137D0lmCJc/v6 qPcSDEYokvTtccglSCWc7aIx6M5egu3NMOyHHKVanIXcjDyBwYycoSKnz68AncLv/trD UPKLsaK3nSCTP0f+f2B+B/z0f3aTHUF7VWoHMb5jUbQVRTcYQohfsyl3raoiEl93HRrv qAw1r5mD89NTcjE2p7PWyThbApxJw3twPB5leWEOz8NUek9vfQ6KyFtCqY171vZITXKs r/og== X-Gm-Message-State: ALQs6tAvYuct3FjFZuaWAbI+S2xRARpAtEmXZuTKrzEsvniWWiSvqIrb cVzoWM3Lo9j+44dhmrDn45VTVFF+PBM= X-Google-Smtp-Source: AB8JxZqnFZbKCWiKM2lCYjh3YntFRrZmZYYyl/Bcwr5xrJvEI0k9Qe7yX+jFv0FjJv6Ywn+iIuBrZg== X-Received: by 2002:aed:2241:: with SMTP id o1-v6mr7027250qtc.114.1524948599092; Sat, 28 Apr 2018 13:49:59 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.56.54.12]) by smtp.gmail.com with ESMTPSA id q33sm3712237qkq.72.2018.04.28.13.49.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 28 Apr 2018 13:49:58 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 6815B378; Sat, 28 Apr 2018 17:49:56 -0300 (-03) Date: Sat, 28 Apr 2018 17:49:56 -0300 From: Alvaro Herrera To: alexander.kjall@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: Documentation for CommandComplete is incorrect for CREATE TABLE with server version 10.2 Message-ID: <20180428204956.jgnnhh6xo24vsb33@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <152484514371.19805.1929006962334941488@wrigleys.postgresql.org> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Doc comments form wrote: > The documentation says: > > For a SELECT or CREATE TABLE AS command, the tag is SELECT rows where rows > is the number of rows retrieved. > > But what I get back from the server is this packet: > > 0000 43 00 00 00 11 43 52 45 41 54 45 20 54 41 42 4c C....CREATE TABL > 0010 45 00 E. > > The query I sent to the server was: > > create table table1(i int) Yeah, this is not a CREATE TABLE AS. It's a plain CREATE TABLE. Different thing. alvherre=# create table dcm as select 'foo'; SELECT 1 -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services