Re: Wrong OID for Primary Key and UNIQUE constraints shown in property pane - Mailing list pgadmin-support

From Dave Page
Subject Re: Wrong OID for Primary Key and UNIQUE constraints shown in property pane
Date
Msg-id 4615FF6F.5090905@postgresql.org
Whole thread Raw
In response to Re: Wrong OID for Primary Key and UNIQUE constraints shown in property pane  ("Harald Armin Massa" <haraldarminmassa@gmail.com>)
List pgadmin-support
Harald Armin Massa wrote:
> Dave,
> 
> 
>     Thanks Harald - it was showing the OID of the index, not the constraint
>     record. I've fixed that, and modified the code to display the index OID
>     as a seperate property.
> 
> 
> thanks for fixing. One question: why did it work correctly on foreign 
> key constraints? (not to be nitpicking, just to make sure there is no 
> other bug hidden)

No problem - we like to spread the knowledge!

It worked for fkeys because they aren't index based constraints. The 
pkey and unique constraint code is actually derived from the pgIndexBase 
class, so 95% of the code used is the same as pgIndex. fkeys are a whole 
seperate class.

Regards, Dave


pgadmin-support by date:

Previous
From: "Harald Armin Massa"
Date:
Subject: Re: Wrong OID for Primary Key and UNIQUE constraints shown in property pane
Next
From: "Sidnei Vladisauskis"
Date:
Subject: RES: pgAgent - where is the node jobs?