pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rod Taylor <rbt@rbt.ca>
To: Mindaugas Riauba <mind@bi.lt>
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: What is the fastest null WHERE
Date: Wed, 01 Oct 2003 08:51:46 -0400
Message-ID: <1065012705.83185.78.camel@jester> (raw)
In-Reply-To: <07c001c38815$29277b90$f20214ac@bite.lt>
References: <07c001c38815$29277b90$f20214ac@bite.lt>

On Wed, 2003-10-01 at 08:11, Mindaugas Riauba wrote:
> While writing web application I found that it would
> be very nice for me to have "null" WHERE clause. Like
> WHERE 1=1. Then it is easy to concat additional
> conditions just using $query . " AND col=false" syntax.
> 
>   But which of the possible "null" clauses is the fastest
> one?

WHERE true AND ....

Attachments:

  signature.asc (application/pgp-signature, 186B) download

view thread (5+ messages)  latest in thread

Message-ID: <1065012705.83185.78.camel@jester>
Permalink:  ../1065012705.83185.78.camel@jester/
Also on:    postgresql.org/message-id/1065012705.83185.78.camel@jester

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: rbt@rbt.ca, mind@bi.lt
  Subject: Re: What is the fastest null WHERE
  In-Reply-To: <1065012705.83185.78.camel@jester>
  References: <07c001c38815$29277b90$f20214ac@bite.lt> <1065012705.83185.78.camel@jester>

* 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