PG Bug reporting form <noreply@postgresql.org> writes:
> I created a extension by C language, and deltatype is a new data type
> ...
> explain select * from contract_index64s where delta_type <>
> 'new'::deltatype limit 1;
> server closed the connection unexpectedly
I'd say the first assumption is a bug in your extension. Have
you tried watching this under a debugger, or examining the stack
trace from a crash?
regards, tom lane