Here's a patch to add unknownin/unknownout support. I also poked around
Bruce Momjian <bruce@momjian.us>
Here's a patch to add unknownin/unknownout support. I also poked around looking for places that assume UNKNOWN == TEXT. One of those was the "SET" type in pg_type.h, which was using textin/textout. This one I took care of in this patch. The other suspicious place was in string_to_dataum (which is defined in both selfuncs.c and indxpath.c). I wasn't too sure about those, so I left them be. Joe Conway
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/varlena.c | modified | +41 −1 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_proc.h | modified | +6 −1 |
| src/include/catalog/pg_type.h | modified | +3 −3 |
| src/include/c.h | modified | +2 −1 |
| src/include/fmgr.h | modified | +4 −1 |
| src/include/utils/builtins.h | modified | +4 −1 |