Add new CREATE CONVERSION/DROP CONVERSION command.
Tatsuo Ishii <ishii@postgresql.org>
Add new CREATE CONVERSION/DROP CONVERSION command. This is the first cut toward CREATE CONVERSION/DROP CONVERSION implementaion. The commands can now add/remove tuples to the new pg_conversion system catalog, but that's all. Still need work to make them actually working. Documentations, regression tests also need work.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/indexing.c | modified | +3 −1 |
| src/backend/catalog/Makefile | modified | +4 −3 |
| src/backend/catalog/pg_conversion.c | added | +249 −0 |
| src/backend/commands/conversioncmds.c | added | +112 −0 |
| src/backend/commands/Makefile | modified | +3 −2 |
| src/backend/parser/gram.y | modified | +33 −4 |
| src/backend/parser/keywords.c | modified | +2 −1 |
| src/backend/tcop/postgres.c | modified | +9 −2 |
| src/backend/tcop/utility.c | modified | +13 −1 |
| src/backend/utils/cache/syscache.c | modified | +12 −1 |
| src/include/catalog/catname.h | modified | +2 −1 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/indexing.h | modified | +8 −1 |
| src/include/catalog/pg_conversion.h | added | +93 −0 |
| src/include/commands/conversioncmds.h | added | +23 −0 |
| src/include/nodes/nodes.h | modified | +2 −1 |
| src/include/nodes/parsenodes.h | modified | +16 −1 |
| src/include/utils/syscache.h | modified | +22 −22 |
| src/test/regress/expected/sanity_check.out | modified | +2 −1 |