[GSoC] create type questions

Поиск
Список
Период
Сортировка
От Charles Cui
Тема [GSoC] create type questions
Дата
Msg-id CA+SXE9s6Qm-x0DrYYk0wifqgHR91xBQ8FruopCznoT8FLQp_kg@mail.gmail.com
обсуждение исходный текст
Ответы Re: [GSoC] create type questions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi mentors and hackers,
 
   I have a new type defined like this 
CREATE TYPE thrift_binary (
    INPUT = thrift_binary_in,
    OUTPUT = thrift_binary_out,
    LIKE = bytea
);
in thrift_binary_in, it accepts cstring and returns thrift_binary. And in this function I returned a bytea because the create type tells the system thrift_binary and bytea are the same. However, the test passes only when I explicitly tell thrift_binary_in to return a bytea (change the return type from thrift_binary to bytea), and it does not work when returns thrift_binary. 
Any ideas why?


Thanks, Charles.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: New committers announced at PGCon 2018
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: New committers announced at PGCon 2018