Split out CreateCast into src/backend/catalog/pg_cast.c

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 40b3e2c201af10c27a2c4c5bfcd029026b4cdff3
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2020-03-10T14:28:23Z
Releases: 13.0
Split out CreateCast into src/backend/catalog/pg_cast.c

This catalog-handling code was previously together with the rest of
CastCreate() in src/backend/commands/functioncmds.c.  A future patch
will need a way to add casts internally, so this will be useful to have
separate.

Also, move the nearby get_cast_oid() function from functioncmds.c to
lsyscache.c, which seems a more natural place for it.

Author: Paul Jungwirth, minor edits by Álvaro
Discussion: https://postgr.es/m/20200309210003.GA19992@alvherre.pgsql

Files

Discussion