microo8 / plgo

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

trigger DOCKER #8

Closed remotejob closed 6 years ago

remotejob commented 6 years ago

My extension work completely well on normal server under different PG version.

But I can't make it work in docker container, it's very strange. :(

goroutine 17 [running, locked to thread]: ???!!

`panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x7f5ed3227d5d]

goroutine 17 [running, locked to thread]: main.crimeTrg(0x0, 0x0) /tmp/plgo140856321/package.go:48 +0x9d main.CrimeTrg(0x7ffc9c66eeb0, 0xc400000008) /tmp/plgo140856321/methods.go:11 +0x3b main._cgoexpwrap_b36115c3fa71_CrimeTrg(0x7ffc9c66eeb0, 0x1a1d0ac2cc66ca00) command-line-arguments/_obj/_cgo_gotypes.go:1374 +0x2d `

All blocks on:

td.NewRow.Scan(&id) td.FiredAfter() ....

velo commented 6 years ago

@remotejob can you share your dockerfile?

remotejob commented 6 years ago

Unfortunately for what unusual limitation I was need switch back to PG internal notify().

So I don't have dockerfile, problem only was relate to triggers.