diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2002-07-18 23:11:32 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2002-07-18 23:11:32 +0000 |
commit | 97377048b460823a300b1d414203c5f09c8efc1b (patch) | |
tree | 7c567e9728b214a10604afa1aa923d02a683156e /src/backend/utils/cache/syscache.c | |
parent | a345ac8842089cbca1678d5b28773a827937693f (diff) | |
download | postgresql-97377048b460823a300b1d414203c5f09c8efc1b.tar.gz postgresql-97377048b460823a300b1d414203c5f09c8efc1b.zip |
pg_cast table, and standards-compliant CREATE/DROP CAST commands, plus
extension to create binary compatible casts. Includes dependency tracking
as well.
pg_proc.proimplicit is now defunct, but will be removed in a separate
commit.
pg_dump provides a migration path from the previous scheme to declare
casts. Dumping binary compatible casts is currently impossible, though.
Diffstat (limited to 'src/backend/utils/cache/syscache.c')
-rw-r--r-- | src/backend/utils/cache/syscache.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/backend/utils/cache/syscache.c b/src/backend/utils/cache/syscache.c index a724a0874ee..5f0be16b75a 100644 --- a/src/backend/utils/cache/syscache.c +++ b/src/backend/utils/cache/syscache.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.81 2002/07/11 07:39:27 ishii Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.82 2002/07/18 23:11:29 petere Exp $ * * NOTES * These routines allow the parser/planner/executor to perform @@ -28,6 +28,7 @@ #include "catalog/pg_aggregate.h" #include "catalog/pg_amop.h" #include "catalog/pg_amproc.h" +#include "catalog/pg_cast.h" #include "catalog/pg_conversion.h" #include "catalog/pg_group.h" #include "catalog/pg_index.h" @@ -174,6 +175,17 @@ static const struct cachedesc cacheinfo[] = { 0, 0 }}, + { + CastRelationName, /* CASTSOURCETARGET */ + CastSourceTargetIndex, + 0, + 2, + { + Anum_pg_cast_castsource, + Anum_pg_cast_casttarget, + 0, + 0 + }}, {OperatorClassRelationName, /* CLAAMNAMENSP */ OpclassAmNameNspIndex, 0, |