Re: Strange problem with create table as select * from table; - Mailing list pgsql-general

From Tom Lane
Subject Re: Strange problem with create table as select * from table;
Date
Msg-id 724.1320334674@sss.pgh.pa.us
Whole thread Raw
In response to Re: Strange problem with create table as select * from table;  (hubert depesz lubaczewski <depesz@depesz.com>)
List pgsql-general
hubert depesz lubaczewski <depesz@depesz.com> writes:
> other tests are running, but simple question - how to get number of rows
> affected from psql?

> create table xxx as select * from xobjects;
> returns just:
> SELECT

We fixed that in 9.0, but 8.4 won't provide the count (unless you care to
patch it).  That's why I suggested doing a separate insert/select.

            regards, tom lane

pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: Strange problem with create table as select * from table;
Next
From: robert rottermann
Date:
Subject: converting ts2vektor to postgres 9.1