pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Petru Ghita <petrutz@venaver.info>
Cc: pgsql-sql@postgresql.org
Subject: Re: Date comparison, user defined operators and magic
Date: Fri, 26 Feb 2010 22:32:03 -0500
Message-ID: <11952.1267241523@sss.pgh.pa.us> (raw)
In-Reply-To: <4B888CAF.6030101@venaver.info>
References: <4B888CAF.6030101@venaver.info>

Petru Ghita <petrutz@venaver.info> writes:
> Hello everybody, I was missing a comparison operator for DATE so I
> wrote one after a really fast look into the documentation.

Huh?

regression=# \do <
                                                 List of operators
   Schema   | Name |        Left arg type        |       Right arg type        | Result type |     Description     
------------+------+-----------------------------+-----------------------------+-------------+---------------------
 ...
 pg_catalog | <    | date                        | date                        | boolean     | less-than
 ...

> So I started to wonder how is this possible because after doing the
> first comparison using the < operator I really wasn't expecting any of
> the other operators to work at all. But they did!

They were all there before.  I doubt it was using yours even in the <
case, because pg_catalog is normally at the front of the search path.

			regards, tom lane



view thread (2+ messages)

Message-ID: <11952.1267241523@sss.pgh.pa.us>
Permalink:  ../11952.1267241523@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11952.1267241523@sss.pgh.pa.us

 · 

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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, petrutz@venaver.info
  Subject: Re: Date comparison, user defined operators and magic
  In-Reply-To: <11952.1267241523@sss.pgh.pa.us>

* 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