Re: SQL:2011 PERIODS vs Postgres Ranges? - Mailing list pgsql-hackers

From Ibrar Ahmed
Subject Re: SQL:2011 PERIODS vs Postgres Ranges?
Date
Msg-id 156477770335.1401.7738145215865735767.pgcf@coridan.postgresql.org
Whole thread Raw
In response to Re: SQL:2011 PERIODS vs Postgres Ranges?  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: SQL:2011 PERIODS vs Postgres Ranges?  (Ibrar Ahmed <ibrar.ahmad@gmail.com>)
List pgsql-hackers
The patch does not work.

postgres=# CREATE TABLE foo (id int,r int4range, valid_at tsrange, CONSTRAINT bar_pk PRIMARY KEY (r, valid_at WITHOUT
OVERLAPS));
CREATE TABLE
postgres=# CREATE TABLE bar (id int,r int4range, valid_at tsrange, CONSTRAINT bar_fk FOREIGN KEY (r, PERIOD valid_at)
REFERENCESfoo);
 
ERROR:  cache lookup failed for type 0

The new status of this patch is: Waiting on Author

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: First draft of back-branch release notes is done
Next
From: Andres Freund
Date:
Subject: Re: partition routing layering in nodeModifyTable.c