microo8 / plgo

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

What version of postgres is supported? #18

Closed alum closed 5 years ago

alum commented 5 years ago

I'm trying to build the example using plgo but it fails with a long

Undefined symbols for architecture x86_64:
  "_DirectFunctionCall1Coll", referenced from:
      _jsonb_to_datum in _x003.o
      __cgo_2dee455c7a62_Cfunc_jsonb_to_datum in _x003.o
  "_JsonbToCString", referenced from:
      _datum_to_jsonb_cstring in _x003.o
      __cgo_2dee455c7a62_Cfunc_datum_to_jsonb_cstring in _x003.o
...

My guess is that my version of postgres (10) is incompatible with plgo perhaps. Which versions are supported?

vahid-sohrabloo commented 5 years ago

I've tested with PostgreSQL 10 without any problem

microo8 commented 5 years ago

I've changed some code to support postgresql 11