RE: Declarative Range Partitioning Postgres 11 - Mailing list pgsql-general

From Shatamjeev Dewan
Subject RE: Declarative Range Partitioning Postgres 11
Date
Msg-id F2F23E564EB92A4C80228EB86713BA130BDA8E@TO1RODC.nbspaymentsolutions.com
Whole thread Raw
In response to Re: Declarative Range Partitioning Postgres 11  (Michael Lewis <mlewis@entrata.com>)
Responses Re: Declarative Range Partitioning Postgres 11
List pgsql-general

Hi Michael,

 

In this case , I always need to include partition key(date)  in primary key ( if I have a primary key defined on non partition key column e.g id (in my case), to make it a composite primary key (id, date). This would allow duplicate id with different date,which is not desirable .

 

Thanks,

Shatamjeev

 

From: Michael Lewis <mlewis@entrata.com>
Sent: October-07-19 7:18 PM
To: Shatamjeev Dewan <sdewan@nbsps.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Declarative Range Partitioning Postgres 11

 

No, what you want is not possible and probably won't ever be I would expect. Scanning every partition to validate the primary key isn't scalable.

pgsql-general by date:

Previous
From: "Arnaud L."
Date:
Subject: Re: psql \copy hanging
Next
From: Adrian Klaver
Date:
Subject: Re: psql \copy hanging