microo8/plgo

Could not determine kind of name for C.FunctionCallInfoBaseData

biter777 opened this issue · 3 comments

Hi!

Have a truble:
$ plgo .
/tmp/plgo272805124/pl.go:366:15: could not determine kind of name for C.FunctionCallInfoBaseData

And there's no such mistake on the other computer (Ubuntu 19.10 + go1.13.4).
I cannot understand what the error is.
Help please.

go version go1.12.2 linux/amd64
gcc (Ubuntu 7.4.0-1ubuntu1 18.04.1) 7.4.0
g++ (Ubuntu 7.4.0-1ubuntu1 18.04.1) 7.4.0
Ubuntu 18.04.3 LTS

It turns out that the problem is observed only in the latest version of PLGO.
In the previous version everything is fine (on any computer).

In postgresql 12 they renamed FunctionCallInfoData to FunctionCallInfoBaseData. I must find a way to use FunctionCallInfoBaseData just in >=pg12

Bump on this. I'm running into this against PostgreSQL 11. If only PostgreSQL 12 is supported, it would be nice to document that.