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

Re: How to setup default value "0000-00-00" for "date"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Peter Haworth <pmh(at)edison(dot)ioppublishing(dot)com>,pgsql-general(at)postgresql(dot)org
Subject: Re: How to setup default value "0000-00-00" for "date"
Date: 2004-08-20 18:24:19
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> I know we index NULL values in multi-column indexes, but do we
> currently even store the rows that have only NULLs in a the index.

btree does.  I don't think any of the other index AMs do.  hash could
probably be made to without much trouble (just decree a hash value,
say zero, for nulls).  But I dunno what rtree or gist would do with a
leading-column null.

			regards, tom lane

In response to

pgsql-general by date

Next:From: JeffDate: 2004-08-20 18:28:43
Subject: Re: Postgres filling up hard drive with swap files
Previous:From: borajettaDate: 2004-08-20 18:23:19
Subject: ERROR: duplicate key violates unique constraint "pg_class_oid_index"

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group