Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Date comparison, user defined operators and magic


  • From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • To: Petru Ghita <petrutz(at)venaver(dot)info>
  • Cc: pgsql-sql(at)postgresql(dot)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> <text/plain>

Petru Ghita <petrutz(at)venaver(dot)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



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group