From: John Siracusa <siracusa@mindspring.com>
To: Postgres Performance <pgsql-performance@postgresql.org>
Subject: Re: Feature request: smarter use of conditional indexes
Date: Sat, 06 Mar 2004 16:55:33 -0500
Message-ID: <BC6FB305.30DCD%siracusa@mindspring.com> (raw)
In-Reply-To: <18409.1078607169@sss.pgh.pa.us>
On 3/6/04 4:06 PM, Tom Lane wrote:
> John Siracusa <siracusa@mindspring.com> writes:
>> So apparently all I can do is find out if it's a null test, but not if it is
>> specifically "IS NOT NULL"
>
> No, because once you have determined that the node really IsA NullTest,
> you can cast the pointer to (NullTest *) and look at the
> NullTest-specific fields.
I tried casting, but stupidly tried to access the type name (BoolTestType)
instead of the field name (nulltesttype). Duh! :)
> Think of this as poor man's object-oriented programming: Node is the supertype
> of Expr which is the supertype of NullTest (and a lot of other kinds of nodes,
> too).
Yeah, I read that in the comments but was defeated by my devious brain ;)
Thanks, I'll see how much farther I can go before getting stuck again :)
-John
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: siracusa@mindspring.com
Subject: Re: Feature request: smarter use of conditional indexes
In-Reply-To: <BC6FB305.30DCD%siracusa@mindspring.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