diff options
| author | Tom Lane | 2005-05-29 18:24:14 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-05-29 18:24:14 +0000 |
| commit | d66daabec948df2a332a9b48ec5aa49145170d80 (patch) | |
| tree | bc480a027277d230f204ac614e5e92de8fd26f2b /src/include/parser | |
| parent | bbc048319f01819523b2d9f6b1e81f0951280517 (diff) | |
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.
Diffstat (limited to 'src/include/parser')
| -rw-r--r-- | src/include/parser/parse_type.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/parser/parse_type.h b/src/include/parser/parse_type.h index 507919d5a7d..24c004c8e7b 100644 --- a/src/include/parser/parse_type.h +++ b/src/include/parser/parse_type.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/parser/parse_type.h,v 1.29 2004/12/31 22:03:38 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/parser/parse_type.h,v 1.30 2005/05/29 18:24:14 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -25,7 +25,6 @@ extern char *TypeNameToString(const TypeName *typename); extern Oid typenameTypeId(const TypeName *typename); extern Type typenameType(const TypeName *typename); -extern bool typeidIsValid(Oid id); extern Type typeidType(Oid id); extern Oid typeTypeId(Type tp); |
