Can we use inheritance in PostgreSQL for tables containing reference keys to another table? -


i have 2 tables named item , itemdetail. itemdetail table contains more 200,000 records. itemdetail table has reference keys other tables , i'd partition table date (once per every year).

what i'd know how partition itemdetail table contains reference keys many other tables. read somewhere can not partition or use inheritance if table contains reference keys.

does have suggestions on how achieve this?

thanks

in postgresql (9.3)'s current inheritance-based implementation of partitioning, pretty partitioning or foreign key enforcement.

partitioned tables can reference other tables foreign keys, cannot subject of foreign key reference table unless related tables partitioned on same key, references can same sub-table.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -