Comments (12)
I faced a similar issue in other extensions and make install with_llvm=no
worked.
from plgo.
Can I see your code? It builds? sample.so
is in the build dir?
from plgo.
Of course. See below...
On pg10 no problem, but on pg11 it swears at the absence of a .bc file.
And if I install the extension myself on pg11, it works.
On the 'build' dir I have:
Makefile
sample.control
sample.h
sample.so
sample--0.1.sql
Code:
package main
import (
"github.com/microo8/plgo"
)
func MakeTsVectorTrigger(td *plgo.TriggerData) *plgo.TriggerRow {
return td.NewRow
}
from plgo.
same problem
from plgo.
It looks like it is related to the new JIT in postgresql:
https://www.postgresql.org/docs/current/jit-extensibility.html
from plgo.
Same problem here.
from plgo.
I faced a similar issue in other extensions and
make install with_llvm=no
worked.
It works. But... There should be a llvm .bc producer also.
from plgo.
Can someone please take a look at it? I don't know even where to start and also I can't reproduce it.
from plgo.
I think you can reproduce this by configuring postgresql with ./configure --with-llvm
to enable JIT. In that case Makefile try to generate llvm bit code files(.bc), but cannot generate it from Go code.
In src/makefiles/pgxs.mk, with_llvm
variable is used to control this behavior.
So I use make install with_llvm=no
, but I'm not sure this is correct solution.
from plgo.
install simple:
postgresql-11-postgis-2.5, postgresql-server-dev-11.
under ubuntu 18.04.
Yesterday i found some sources, but it's too hard for me at this moment.
https://github.com/SRI-CSL/gllvm
https://blog.gopheracademy.com/advent-2018/llvm-ir-and-go/
from plgo.
Any news on the subject?
p.s. Maybe it's easy to make a copy of the compiled extension without the bc file?
from plgo.
Just use make install with_llvm=no
from plgo.
Related Issues (20)
- Postgres.h error
- Function "Sub" has not suported return type HOT 3
- Custom aggregate support HOT 3
- Support request for multiple return types aka when len(results.List) > 1 HOT 2
- What version of postgres is supported? HOT 2
- invalid operation HOT 1
- pgsql-11: error: conflicting types for 'varsize_any' HOT 2
- There is no rule for building the target “main.bc” required for “all”. Stop
- undefined symbol: getmissingattr HOT 5
- Text fields are not processed correctly. HOT 2
- How to catch and display an exception in the process of work extension ? HOT 2
- INSERT cannot be used in non-volatile function HOT 2
- invalid operation HOT 5
- Returning []byte results in server (postgres) crashes and generates incorrect SQL HOT 1
- Build error on Linux HOT 1
- psql server 11 HOT 1
- Could not determine kind of name for C.FunctionCallInfoBaseData HOT 3
- Cannot build package: exit status 2 HOT 6
- PG13 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plgo.