pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problem about partitioned table
2+ messages / 2 participants
[nested] [flat]

* Problem about partitioned table
@ 2018-10-19 09:03  Mehman Jafarov <mehmanjafarov84@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Mehman Jafarov @ 2018-10-19 09:03 UTC (permalink / raw)
  To: pgsql-general; +Cc: pgsql-hackers@postgresql.org; support@enterprisedb.com; de@postgresql.org; contact@postgresql.tw; info@itpug.org; webmaster@itpug.org; majordomo@postgresql.org; info@postgres.de

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.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Problem about partitioned table
@ 2018-10-19 14:31  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: Mehman Jafarov <mehmanjafarov84@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Adrian Klaver @ 2018-10-19 14:31 UTC (permalink / raw)
  To: Mehman Jafarov <mehmanjafarov84@gmail.com>; pgsql-general; +Cc: pgsql-hackers@postgresql.org; support@enterprisedb.com; de@postgresql.org; contact@postgresql.tw; info@itpug.org; webmaster@itpug.org; majordomo@postgresql.org; info@postgres.de

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.klaver@aklaver.com




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-10-19 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-10-19 09:03 Problem about partitioned table Mehman Jafarov <mehmanjafarov84@gmail.com>
2018-10-19 14:31 ` Adrian Klaver <adrian.klaver@aklaver.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox