CREATE TEMP TABLE AS SELECT/ GET DIAGNOSTICS ROW_COUNT

From: MLikharev(at)micropat(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: CREATE TEMP TABLE AS SELECT/ GET DIAGNOSTICS ROW_COUNT
Date: 2005-05-17 00:18:16
Message-ID: fce02f87d9.f87d9fce02@micropat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I was asking this question some time ago and was under impression that this will be fixed in 8.x. In general problem is, CREATE TEMP TABLE AS SELECT does not report any rows to the engine, seems like, so GET DIAGNOSTICS ROW_COUNT after the statement returns 0 as well as FOUND false. This was working in 7.3, but behavior changed in 7.4.
My question is, will it be fixed or should I consider not stop using get diagnostic after ‘create temp table as select’ from now on. Honstly this was a very convinient feature especialy knowing that select count(*) not a fastes possible operation.

Thank you.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Wen Guangcheng 2005-05-17 06:47:55 Problem in creating a table
Previous Message Bruce Momjian 2005-05-16 23:10:58 Re: Relation between pgsql_tmp and work_mem