pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Split out CreateCast into src/backend/catalog/pg_cast.c
Date: Tue, 10 Mar 2020 15:48:48 +0000
Message-ID: <E1jBh7g-0008Ta-Bp@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/40b3e2c201af10c27a2c4c5bfcd029026b4cdff3

Modified Files
--------------
src/backend/catalog/Makefile        |   1 +
src/backend/catalog/pg_cast.c       | 123 ++++++++++++++++++++++++++++++++++++
src/backend/commands/functioncmds.c | 100 +----------------------------
src/backend/commands/typecmds.c     |   1 +
src/backend/utils/cache/lsyscache.c |  26 ++++++++
src/include/catalog/pg_cast.h       |   9 +++
src/include/commands/defrem.h       |   1 -
src/include/utils/lsyscache.h       |   1 +
8 files changed, 164 insertions(+), 98 deletions(-)



Message-ID: <E1jBh7g-0008Ta-Bp@gemulon.postgresql.org>
Permalink:  ../E1jBh7g-0008Ta-Bp@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jBh7g-0008Ta-Bp@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Split out CreateCast into src/backend/catalog/pg_cast.c
  In-Reply-To: <E1jBh7g-0008Ta-Bp@gemulon.postgresql.org>
  References: <E1jBh7g-0008Ta-Bp@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox