| From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
|---|---|
| To: | Spiros Ioannou <sivann(at)inaccess(dot)com> |
| Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: How to access large objects in Postgresql c-language functions? |
| Date: | 2015-01-26 19:37:21 |
| Message-ID: | CAFj8pRAfj+hYFsfSs71rYkQjQR5ftFghV=rQ3_rhzJqXOU=Apw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi
you can use a lo_* (lo_open, lo_close, ...) functions called via
FirectFunctionCall
http://michael.otacoo.com/postgresql-2/playing-with-large-objects-in-postgres/
http://www.postgresql.org/docs/9.3/static/lo-interfaces.html
Regards
Pavel Stehule
2015-01-26 20:19 GMT+01:00 Spiros Ioannou <sivann(at)inaccess(dot)com>:
> I'm writing a c-language user defined function for postgresql 9.3.5. I
> didn't use pl/pgsql or pl/python because part of it needs to be written in
> C for speed.
>
> The function gets an existing OID as an argument. How can I access &
> modify the OID data from within the c-language function? I can't find any
> docs for that!
>
> Thanks,
>
> -Spiros
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Spiros Ioannou | 2015-01-26 19:54:30 | Re: How to access large objects in Postgresql c-language functions? |
| Previous Message | Spiros Ioannou | 2015-01-26 19:19:33 | How to access large objects in Postgresql c-language functions? |