microo8 / plgo

easily create postgresql extensions in golang; moved to gitlab.com/microo8/plgo
292 stars 23 forks source link

Could not determine kind of name for C.FunctionCallInfoBaseData #35

Open biter777 opened 4 years ago

biter777 commented 4 years ago

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

biter777 commented 4 years ago

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).

microo8 commented 4 years ago

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

erichanson commented 3 years ago

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