Re: BUG #9046: vacuum analyze fails on a table that has domain that is a date rage

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: lr(at)pcorp(dot)us
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #9046: vacuum analyze fails on a table that has domain that is a date rage
Date: 2014-01-31 00:38:35
Message-ID: 27359.1391128715@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

lr(at)pcorp(dot)us writes:
> Here are steps to recreate:

> CREATE DOMAIN domain_period
> AS daterange
> DEFAULT daterange('-infinity'::date, 'infinity'::date, '[)'::text)
> NOT NULL
> CONSTRAINT domain_period_check_1 CHECK (lower(VALUE) < upper(VALUE))
> CONSTRAINT domain_period_check_2 CHECK (NOT isempty(VALUE))
> CONSTRAINT domain_period_check_3 CHECK (lower_inc(VALUE))
> CONSTRAINT domain_period_check_4 CHECK (NOT upper_inc(VALUE));

> CREATE TABLE test_domain_period(id serial, period domain_period);

> vacuum analyze test_domain_period;

Works for me in git head. I think this is the same problem reported
in bug #8684, and fixed at commit 663f8419b.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message m.sakrejda 2014-01-31 02:03:28 BUG #9048: Misleading error in transferring sequence between tables
Previous Message lr 2014-01-31 00:31:59 BUG #9046: vacuum analyze fails on a table that has domain that is a date rage