pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove the "opaque" pseudo-type and associated compatibility hac
Date: Thu, 05 Mar 2020 20:49:09 +0000
Message-ID: <E1j9xQb-0002B3-JL@gemulon.postgresql.org> (raw)

Remove the "opaque" pseudo-type and associated compatibility hacks.

A long time ago, it was necessary to declare datatype I/O functions,
triggers, and language handler support functions in a very type-unsafe
way involving a single pseudo-type "opaque".  We got rid of those
conventions in 7.3, but there was still support in various places to
automatically convert such functions to the modern declaration style,
to be able to transparently re-load dumps from pre-7.3 servers.
It seems unnecessary to continue to support that anymore, so take out
the hacks; whereupon the "opaque" pseudo-type itself is no longer
needed and can be dropped.

This is part of a group of patches removing various server-side kluges
for transparently upgrading pre-8.0 dump files.  Since we've had few
complaints about dropping pg_dump's support for dumping from pre-8.0
servers (commit 64f3524e2), it seems okay to now remove these kluges.

Discussion: https://postgr.es/m/4110.1583255415@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bb03010b9f0766e10399174fe850b2506907c4e4

Modified Files
--------------
doc/src/sgml/datatype.sgml                |  10 --
doc/src/sgml/ref/create_language.sgml     |  10 --
doc/src/sgml/ref/create_trigger.sgml      |   9 -
doc/src/sgml/ref/create_type.sgml         |  12 --
src/backend/commands/functioncmds.c       |  87 ---------
src/backend/commands/proclang.c           |  25 +--
src/backend/commands/trigger.c            |  23 +--
src/backend/commands/typecmds.c           | 282 ++++++++++--------------------
src/backend/utils/adt/pseudotypes.c       |   1 -
src/bin/pg_dump/pg_dump.c                 |  26 +--
src/bin/pg_dump/pg_dump.h                 |   2 -
src/include/catalog/catversion.h          |   2 +-
src/include/catalog/pg_proc.dat           |  10 +-
src/include/catalog/pg_type.dat           |   4 -
src/include/commands/defrem.h             |   2 -
src/pl/plperl/plperl.c                    |   4 +-
src/pl/plpgsql/src/pl_handler.c           |   6 +-
src/pl/plpython/plpy_main.c               |   4 +-
src/test/regress/expected/create_type.out |  43 +++--
src/test/regress/expected/opr_sanity.out  |   2 +-
src/test/regress/sql/create_type.sql      |  34 ++--
src/test/regress/sql/opr_sanity.sql       |   2 +-
22 files changed, 168 insertions(+), 432 deletions(-)



Message-ID: <E1j9xQb-0002B3-JL@gemulon.postgresql.org>
Permalink:  ../E1j9xQb-0002B3-JL@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1j9xQb-0002B3-JL@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Remove the "opaque" pseudo-type and associated compatibility hac
  In-Reply-To: <E1j9xQb-0002B3-JL@gemulon.postgresql.org>
  References: <E1j9xQb-0002B3-JL@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