Re: PostgresQL equivalent of NOCOUNT

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Jochem van Dieten <jochemd(at)oli(dot)tudelft(dot)nl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgresQL equivalent of NOCOUNT
Date: 2001-08-14 14:50:06
Message-ID: 20010815005006.A7173@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Aug 14, 2001 at 03:38:08PM +0200, Jochem van Dieten wrote:
> Does PostgresQL have some way to make update, insert and delete queries
> not return the number of affected rows? I know that in MS SQL one would
> use NOCOUNT for that.

Just ignore the result. Postgres has to find all the rows anyway, so
avoiding counting them is hardly going to save any time.

Am I missing something?

--
Martijn van Oosterhout <kleptog(at)svana(dot)org>
http://svana.org/kleptog/
> It would be nice if someone came up with a certification system that
> actually separated those who can barely regurgitate what they crammed over
> the last few weeks from those who command secret ninja networking powers.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-08-14 14:57:52 Re: Re: Use int8 for int4/int2 aggregate accumulators?
Previous Message Richard Huxton 2001-08-14 14:49:36 OT: Warning about errors in ZDNET article