Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension .control file? #1

Open
decibel opened this issue Jan 21, 2016 · 4 comments
Open

Extension .control file? #1

decibel opened this issue Jan 21, 2016 · 4 comments

Comments

@decibel
Copy link

decibel commented Jan 21, 2016

Where is the extension control file? Is there a way to install this somewhere that doesn't have apt?

@daamien
Copy link
Owner

daamien commented Jan 23, 2016

Hi !

Thanks for your interest in this piece of code. There's no control file because it's not a PostgreSQL extension per se. This is just a foreign data wrapper based on multicorn. I could make it an extension but I didn't feel the need to because this FDW is basically a proof of concept.

If you want to install it you need to install multicorn first
http://multicorn.readthedocs.org/en/latest/installation.html

The simply run :
$ sudo python setup.py install

And restart the PostgreSQL service
$ sudo service postgresql restart

You can now launch test.sql with a superuser

Out of curiosity, what are you trying to achieve this FDW ? Personnally I use it to extract some stats from the FDW page ont the postgresql wiki and don't see many other use cases.

@daamien
Copy link
Owner

daamien commented Jan 23, 2016

FTR I just switched to python 3 and pushed a docker image. you can just type

docker run -p 65432:5432 -d daamien/fdw_fdw

and then:

psql -h 127.0.0.1 -p 65432 -U postgres -c "SELECT * FROM wrappers;"

@decibel
Copy link
Author

decibel commented Jan 24, 2016

There's no control file
because it's not a PostgreSQL extension per se.

Ahh, I was confused by the CREATE EXTENSION in test.sql; I didn't read
it closely enough to see what extension it was actually installing.

Out of curiosity, what are you trying to achieve this FDW ? Personnally
I use it to extract some stats from the FDW page ont the postgresql wiki
and don't see many other use cases.

Yeah, I just gave a talk at Scale that mentioned FDWs and I wanted a

count of how many there are. :)

Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com

@daamien
Copy link
Owner

daamien commented Jan 25, 2016

As of today, there's 98 FDW on the wiki page, although some NoSQL wrappers look very dubious

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants