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

pgsql: Remove typeidIsValid() checks in can_coerce_type().

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove typeidIsValid() checks in can_coerce_type().
Date: 2005-05-29 18:24:14
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Log Message:
Remove typeidIsValid() checks in can_coerce_type().  These checks
were pretty expensive and I believe the case they were put in to
defend against can no longer arise, now that we have dependency checks
to prevent deletion of a type entry that is still referenced.  Certainly
the example given in the CVS log entry can't happen anymore.
Since this was the only use of typeidIsValid(), remove the routine too.

Modified Files:
        parse_coerce.c (r2.128 -> r2.129)
        parse_type.c (r1.74 -> r1.75)
        parse_type.h (r1.29 -> r1.30)

pgsql-committers by date

Next:From: Tom LaneDate: 2005-05-29 18:34:57
Subject: pgsql: Avoid unnecessary call of rangeTableEntry_used() for the result
Previous:From: Tom LaneDate: 2005-05-29 17:11:07
Subject: pgsql: expandRTE and get_rte_attribute_type mistakenly always imputed

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