rename constraint behavior for duplicate names? - Mailing list pgsql-hackers

From Allan Wang
Subject rename constraint behavior for duplicate names?
Date
Msg-id 1125605454.15631.6.camel@localhost
Whole thread Raw
Responses Re: rename constraint behavior for duplicate names?
List pgsql-hackers
I'm starting to get into PostgreSQL development by implementing:
%Allow ALTER TABLE ... ALTER CONSTRAINT ... RENAME

from the TODO. I've been looking through the code from CommentConstraint
and ATExecDropConstraint and they error out on duplicate constraint
names for a relation. However, ADD CONSTRAINT's code checks for
duplicates and errors out, so would the stuff in comment/drop be useless
checks then? And I would not have to worry about duplicate constraint
names for my rename code?

Allan Wang



pgsql-hackers by date:

Previous
From: aly.dharshi@telus.net
Date:
Subject: Re: Version number in psql banner
Next
From: Tom Lane
Date:
Subject: GRANT/roles problem: grant is shown as from login role