pgsql: Don't try to use a constraint name as domain name

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't try to use a constraint name as domain name
Date: 2011-07-04 18:34:05
Message-ID: E1Qdny9-0003Z3-UV@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Don't try to use a constraint name as domain name

The bug that caused this to be discovered is that the code was trying to
dereference a NULL or ill-defined pointer, as reported by Michael Mueller;
but what it was doing was wrong anyway, per Heikki.

This patch is Heikki's suggested fix.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d665162077862ef9e5886f870bf5ce909fc9342c

Modified Files
--------------
src/backend/commands/typecmds.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2011-07-04 18:38:26 pgsql: Move Trigger and TriggerDesc structs out of rel.h into a new rel
Previous Message Peter Eisentraut 2011-07-04 15:04:01 pgsql: Remove unused variable to silence compiler warning