-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Foreign keys on partitions #148
Comments
Hi @did16 We had some plans for 1.5, but, unfortunately, the focus has changed significantly. Our main goal now is to develop native partitioning. This effectively means that all development progress in this repo has been frozen. However, this is not to say that we're abandoning the project completely. We will fix crucial bugs until pg_pathman becomes obsolete. |
Hi @funbringer |
Both primary and foreign keys require global indexes, which have not been proposed yet. Perhaps @zilder could provide a more meaningful commentary. |
It is a big lack. |
Basically, you can't. We see no point in further development. Moreover, pg_pathman also requires global indexes. What we wanted to do is provide some basic support for foreign keys on partitioning key. |
You could try |
@funbringer, did you consider the case when global uniqueness of field that's not related with partitioning key is provided via checks on local unique indexes of partitions? |
@maksm90 Actually, I didn't. Maybe you could shed some light on this case? |
Hi |
This commit message is not about global indexes; it's all about a special case with partition key. |
I haven't seen the whole patch, but ISTM what Alvaro Herrera did is allowed to create unique constraint on partitioned tables when it is built on the same attributes as partitioning key. This doesn't mean they added global index (they use bunch of local indexes to guarantee uniqueness). And it doesn't mean you can use it for foreign key yet. But there is actually one more step left to implement that too. In |
Will it be available in opensource Postgres, or only in PostgresPro? |
Problem description
What is the availability date of pg_pathman 1.5 release ?.
Several projets in my firm do not want to migrate to Postgresql, because Partitioning 10 does not support primary and foreign keys. It is a big missing funtionnality.
Environment
The text was updated successfully, but these errors were encountered: