Edoardo Panfili <edoardo(at)aspix(dot)it> writes:
> On 12/08/10 18.59, Edoardo Panfili wrote:
>> I am in some trouble with my tables defined using inheritance,
No, foreign keys do not play very nicely with inheritance. There is
some explanation in the manual, in the "Caveats" subsection under
"Inheritance" --- see bottom of this page:
http://www.postgresql.org/docs/8.4/static/ddl-inherit.html
regards, tom lane