Re: Strange problem with create table as select * from table;

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: depesz(at)depesz(dot)com
Cc: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Strange problem with create table as select * from table;
Date: 2011-11-03 15:37:54
Message-ID: 724.1320334674@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

hubert depesz lubaczewski <depesz(at)depesz(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message robert rottermann 2011-11-03 15:49:31 converting ts2vektor to postgres 9.1
Previous Message hubert depesz lubaczewski 2011-11-03 15:30:34 Re: Strange problem with create table as select * from table;

Browse pgsql-hackers by date

  From Date Subject
Next Message Yoann Moreau 2011-11-03 15:52:23 Term positions in GIN fulltext index
Previous Message hubert depesz lubaczewski 2011-11-03 15:30:34 Re: Strange problem with create table as select * from table;