node-postgres icon indicating copy to clipboard operation
node-postgres copied to clipboard

support for postgres Large Objects (lo)

Open jeromew opened this issue 13 years ago • 5 comments

Hello,

it seems like pg does not yet handle postgres large objects (http://www.postgresql.org/docs/9.2/static/largeobjects.html)

pg has bytea support, but has anyone implemented the lo bindings ? is it somewhere on the roadmap ?

do you think it could be possible to have lo support with a node.js stream interface ?

thanks ! Jerome

jeromew avatar Apr 04 '13 13:04 jeromew

+1 I would like to use this too

thibaultponcelet avatar Sep 30 '13 14:09 thibaultponcelet

Hey, this library does not need explicit support for Large Objects. You work with large objects using simple functions.

I made a library with a similar interface as the JDBC one that lets you use large objects (for example, as a node stream).

https://www.npmjs.org/package/pg-large-object

Joris-van-der-Wel avatar Mar 30 '14 18:03 Joris-van-der-Wel

That's radical @Joris-van-der-Wel

brianc avatar Apr 09 '14 14:04 brianc

+1 for this. i need to store files on database but didn't figured yet an elegant way to do that.

sombriks avatar Oct 01 '15 02:10 sombriks

Looks like pg-large-object fixes this. LO is out of scope for this module.

brianc avatar Jun 21 '16 14:06 brianc