[GSoC] create type questions - Mailing list pgsql-hackers

From Charles Cui
Subject [GSoC] create type questions
Date
Msg-id CA+SXE9s6Qm-x0DrYYk0wifqgHR91xBQ8FruopCznoT8FLQp_kg@mail.gmail.com
Whole thread Raw
Responses Re: [GSoC] create type questions
List 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 by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: New committers announced at PGCon 2018
Next
From: Dave Cramer
Date:
Subject: Re: New committers announced at PGCon 2018