aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/typecmds.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2020-03-10 11:28:23 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2020-03-10 11:28:23 -0300
commit40b3e2c201af10c27a2c4c5bfcd029026b4cdff3 (patch)
treec19e65a9b38c3ed42c26d58a25a349d0049a8606 /src/backend/commands/typecmds.c
parent0a42a2e9ce8481a024d085f2cc526a366db8df59 (diff)
downloadpostgresql-40b3e2c201af10c27a2c4c5bfcd029026b4cdff3.tar.gz
postgresql-40b3e2c201af10c27a2c4c5bfcd029026b4cdff3.zip
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
Diffstat (limited to 'src/backend/commands/typecmds.c')
-rw-r--r--src/backend/commands/typecmds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/commands/typecmds.c b/src/backend/commands/typecmds.c
index b088ca848d3..8891b1d5645 100644
--- a/src/backend/commands/typecmds.c
+++ b/src/backend/commands/typecmds.c
@@ -42,6 +42,7 @@
#include "catalog/objectaccess.h"
#include "catalog/pg_am.h"
#include "catalog/pg_authid.h"
+#include "catalog/pg_cast.h"
#include "catalog/pg_collation.h"
#include "catalog/pg_constraint.h"
#include "catalog/pg_depend.h"