It's a
bit bizarre I know, but it comes from some old code that had to figure out if an
index is system generated. The rules are:
1)
Unique = True AND Name = TableName_FirstColName_key (i.e. created as a unique
constraint)
2) Primary = True (i.e. created as a primary key on a table). In the
second example you sent, you missed the s_ prefix from the name, so rule 1
doesn't catch it as a system index. It's not a perfect soilution, but until
PostgreSQL 7.3 came along, it was the best I could come up with. The changes to
support 7.3 using a new better method are extensive, so I will only be
implementing them in pgAdmin III.
Regards, Dave.
|
Title: Message
- [pgadmin-support] Strange bug... Donald Fraser
- Re: [pgadmin-support] Strange bug... Dave Page
- Re: [pgadmin-support] Strange bug... Donald Fraser
- Dave Page