Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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(-)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group