pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: alexander.kjall@gmail.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Documentation for CommandComplete is incorrect for CREATE TABLE with server version 10.2
Date: Sat, 28 Apr 2018 17:01:08 -0400
Message-ID: <3273.1524949268@sss.pgh.pa.us> (raw)
In-Reply-To: <152484514371.19805.1929006962334941488@wrigleys.postgresql.org>
References: <152484514371.19805.1929006962334941488@wrigleys.postgresql.org>

=?utf-8?q?PG_Doc_comments_form?= <noreply@postgresql.org> writes:
> The documentation says:
> For a SELECT or CREATE TABLE AS command, the tag is SELECT rows where rows
> is the number of rows retrieved.

Yeah ...

> 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)

CREATE TABLE and CREATE TABLE AS are two different things.

regression=# create table foo (x int);
CREATE TABLE

regression=# create table bar as select 1 as x;
SELECT 1

			regards, tom lane




view thread (4+ messages)  latest in thread

Message-ID: <3273.1524949268@sss.pgh.pa.us>
Permalink:  ../3273.1524949268@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3273.1524949268@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alexander.kjall@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: Documentation for CommandComplete is incorrect for CREATE TABLE with server version 10.2
  In-Reply-To: <3273.1524949268@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox