From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Mehman Jafarov <mehmanjafarov84(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Cc: | pgsql-hackers(at)postgresql(dot)org, support(at)enterprisedb(dot)com, de(at)postgresql(dot)org, contact(at)postgresql(dot)tw, info(at)itpug(dot)org, webmaster(at)itpug(dot)org, majordomo(at)postgresql(dot)org, info(at)postgres(dot)de |
Subject: | Re: Problem about partitioned table |
Date: | 2018-10-19 14:31:24 |
Message-ID: | cd6eb200-2e23-cc67-8637-6dab57cee47d@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On 10/19/18 2:03 AM, Mehman Jafarov wrote:
> Hi everyone,
>
> I have a problem with partitioned table in PostgreSql.
> Actually I use the version 10. I created the partitioned table in test
> environment but face some problems with partitioned table constraint.
> I google all about it last week and from the official site I get that
> version 11 will be released and that feature will be supported as I
> understand it.
> From version 11 documentation
> "/Add support for |PRIMARY KEY|, |FOREIGN KEY|, indexes, and triggers on
> partitioned tables/"
> I install and configure yesterday as new 11 version released. And test
> it. Unfortunately I didn't achieve again.
> Neither I don't understand the new feature nor this case is actually not
> supported.
> Please help me about the problem.
As you found out:
https://www.postgresql.org/docs/11/static/ddl-partitioning.html
5.10.2.3. Limitations
"While primary keys are supported on partitioned tables, foreign keys
referencing partitioned tables are not supported. (Foreign key
references from a partitioned table to some other table are supported.)"
>
> Note: I want to create constraint only one-to-one column
> (/fk_to_user_doc_rel - oid/)
>
> BIG QUESTION IS THAT
>
> How can I solve this problem? What is your recommendations?
Well a FK is a form of a trigger, so maybe create your own trigger on
the child table(s).
>
> *PLEASE HELP ME !!!*
>
> --
> */Best Regards,/*
> */Mehman Jafarov/*
> */DBA Aministrator at CyberNet LLC/*
> */
> /*
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2018-10-19 14:34:17 | Re: PGDG status and policy |
Previous Message | Igor Korot | 2018-10-19 11:14:03 | Fwd: What is the problem with this code? |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2018-10-19 14:36:59 | Re: pgsql: Add TAP tests for pg_verify_checksums |
Previous Message | Tom Lane | 2018-10-19 14:19:44 | Re: ERROR's turning FATAL in BRIN regression tests |