pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Cc: Karl O. Pinc <kop@meme.com>
Subject: Re: Using LIMIT 1 in plpgsql PERFORM statements
Date: Sun, 23 Oct 2005 14:02:35 -0700
Message-ID: <200510231402.35612.josh@agliodbs.com> (raw)
In-Reply-To: <1129957521l.27845l.2l@mofo>
References: <1129957521l.27845l.2l@mofo>

Karl,

> PERFORM 1 FROM foo;
> IF FOUND THEN ...
>
> is any slower than:
>
> PERFORM 1 FROM foo LIMIT 1;
> IF FOUND THEN ...

I'm wondering in what context it makes sense to call PERFORM on a constant.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (6+ messages)  latest in thread

Message-ID: <200510231402.35612.josh@agliodbs.com>
Permalink:  ../200510231402.35612.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200510231402.35612.josh@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, kop@meme.com
  Subject: Re: Using LIMIT 1 in plpgsql PERFORM statements
  In-Reply-To: <200510231402.35612.josh@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox