pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pierre-Frédéric Caillaud <lists@boutiquenumerique.com>
To: Dawid Kuroczko <qnex42@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: integer[] indexing.
Date: Fri, 08 Oct 2004 11:29:35 +0200
Message-ID: <opsfjonlc0cq72hf@musicbox> (raw)
In-Reply-To: <758d5e7f041008021163fb40eb@mail.gmail.com>
References: <758d5e7f041008021163fb40eb@mail.gmail.com>


	disclaimer : brainless proposition

(SELECT * FROM table WHERE (icount(ids) <= 1 AND ids[1] = 33)
UNION ALL
(SELECT * FROM table WHERE (icount(ids) > 1 AND ids && '{33}'));





view thread (4+ messages)  latest in thread

Message-ID: <opsfjonlc0cq72hf@musicbox>
Permalink:  ../opsfjonlc0cq72hf@musicbox/
Also on:    postgresql.org/message-id/opsfjonlc0cq72hf@musicbox

 · 

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: lists@boutiquenumerique.com, qnex42@gmail.com
  Subject: Re: integer[] indexing.
  In-Reply-To: <opsfjonlc0cq72hf@musicbox>

* 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