CREATE TEMP TABLE AS SELECT/ GET DIAGNOSTICS ROW_COUNT again

From: "Ilja Golshtein" <ilejn(at)yandex(dot)ru>
To: pgsql-general(at)postgresql(dot)org
Subject: CREATE TEMP TABLE AS SELECT/ GET DIAGNOSTICS ROW_COUNT again
Date: 2005-09-14 07:14:56
Message-ID: 4327CDF0.000002.17993@pantene.yandex.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello!

According to Tom's message
http://archives.postgresql.org/pgsql-general/2005-06/msg00476.php
we have the stuff supposed to return number of rows affected by
CREATE .. AS SELECT or SELECT ... INTO in 8.1 beta.

The patch is at place, though PQcmdTuples returns nothing. It's not
a big surprise considering PQcmdTuples likes INSERT, DELETE, FETCH
or MOVE only. The real pain is cmdStatus does not contain number
of affected rows.

Any suggestions? Is it possible to calculate number of rows
in newly created table without explicit SELECT COUNT(*)?
I don't use PL/pgSQL.

Thanks a lot.

--
Best regards
Ilja Golshtein

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oleg 2005-09-14 08:05:15 how to list rules?
Previous Message Tino Wildenhain 2005-09-14 06:17:49 Re: MS SQL - PostgreSQL