BUG #13650: getTypeBinaryStringInfo segfault - Mailing list pgsql-bugs

From sivanov99901@gmail.com
Subject BUG #13650: getTypeBinaryStringInfo segfault
Date
Msg-id 20150929105836.1465.73436@wrigleys.postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      13650
Logged by:          Sergey
Email address:      sivanov99901@gmail.com
PostgreSQL version: 9.5alpha2
Operating system:   Debian 8
Description:

Hi, i'm trying to write custom background worker.
I call BackgroundWorkerInitializeConnection() to initialize connection in
worker main function.
I'm trying to call getTypeBinaryInputInfo(typoid, &typrecv, &typioparam)
with typoid = 20 (int8).
And then i want to call OidReceiveFunctionCall to get datum from binary
buffer.
But i have segmentation fault in getTypeBinaryInputInfo.
Can i use this functions in background worker?
How i can solve my problem?

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #13638: Exception texts from plperl has bad encoding
Next
From: digoal@126.com
Date:
Subject: BUG #13651: trigger security invoker attack