Re: Documentation for CommandComplete is incorrect for CREATE TABLE with server version 10.2

From: Alexander Kjäll <alexander(dot)kjall(at)gmail(dot)com>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Documentation for CommandComplete is incorrect for CREATE TABLE with server version 10.2
Date: 2018-04-28 21:31:53
Message-ID: CAOuTi9U5Px5dqbH_dTZU9f5WM9jZX1qzxuPZYUXpwSZuJZ1-sQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Thanks for the clarification.

Maybe CREATE TABLE should be added as it's own line, since it's a distinct
case from the others in that table?

best regards
Alexander Kjäll
Den lör 28 apr. 2018 kl 23:01 skrev Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:

> =?utf-8?q?PG_Doc_comments_form?= <noreply(at)postgresql(dot)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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Jonathan S. Katz 2018-04-29 04:33:59 Re: Appendix A. PostgreSQL Error Codes
Previous Message David G. Johnston 2018-04-28 21:19:10 Re: Isn't "publication" wrongly defined here?