postgresql/src/test/modules/test_ddl_deparse
Alvaro Herrera 6c6ea6ea81
Fix DDL deparse of CREATE OPERATOR CLASS
When an implicit operator family is created, it wasn't getting reported.
Make it do so.

This has always been missing.  Backpatch to 10.

Author: Masahiko Sawada <sawada.mshk@gmail.com>
Reported-by: Leslie LEMAIRE <leslie.lemaire@developpement-durable.gouv.fr>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: Michael Paquiër <michael@paquier.xyz>
Discussion: https://postgr.es/m/f74d69e151b22171e8829551b1159e77@developpement-durable.gouv.fr
2022-05-20 18:52:55 +02:00
..
expected Fix DDL deparse of CREATE OPERATOR CLASS 2022-05-20 18:52:55 +02:00
sql Solve cross-version-upgrade testing problem induced by 1fb57af92. 2019-02-09 21:02:06 -05:00
.gitignore Make modules/test_ddl_deparse/.gitignore match its siblings. 2015-08-03 00:02:26 -04:00
Makefile Use TSConfigRelationId in AlterTSConfiguration() 2016-12-22 17:08:43 -05:00
README Fix various common mispellings. 2016-06-03 16:08:45 +01:00
test_ddl_deparse--1.0.sql Allow on-the-fly capture of DDL event details 2015-05-11 19:14:31 -03:00
test_ddl_deparse.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
test_ddl_deparse.control Allow on-the-fly capture of DDL event details 2015-05-11 19:14:31 -03:00

test_ddl_deparse is an example of how to use the pg_ddl_command datatype.
It is not intended to do anything useful on its own; rather, it is a
demonstration of how to use the datatype, and to provide some unit tests for
it.

The functions in this extension are intended to be able to process some
part of the struct and produce some readable output, preferably handling
all possible cases so that SQL test code can be written.