pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedCreation of file from postgresql function
2+ messages / 2 participants
[nested] [flat]
* Creation of file from postgresql function
@ 2009-06-03 12:00 Jyoti Seth <jyotiseth2001@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Jyoti Seth @ 2009-06-03 12:00 UTC (permalink / raw)
To: pgsql-sql
Hi,
I want to create a file on a disk through postgres function. I am trying to
use large objects functions (lo_create, lo_open and lo_write) for this.
In this, lo_open command is throwing error "invalid mode" or "Syntax error
whereas I have given the value of INV_WRITE from libpq-fs.h as mode.
libpq-fs.h File
#define INV_WRITE 0x00020000
#define INV_READ 0x00040000
If anyone has idea about this problem or know any other alternative to
create a file from postgres function, please let me know.
Thanks,
Jyoti
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Creation of file from postgresql function
@ 2009-06-03 12:13 A. Kretschmer <andreas.kretschmer@schollglas.com>
parent: Jyoti Seth <jyotiseth2001@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: A. Kretschmer @ 2009-06-03 12:13 UTC (permalink / raw)
To: pgsql-sql
In response to Jyoti Seth :
> If anyone has idea about this problem or know any other alternative to
> create a file from postgres function, please let me know.
>
> Thanks,
> Jyoti
On server-side?
You need a function written in an untrusted language, for instance
pl/perlU or plsh.
Regards, Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2009-06-03 12:13 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-06-03 12:00 Creation of file from postgresql function Jyoti Seth <jyotiseth2001@gmail.com>
2009-06-03 12:13 ` A. Kretschmer <andreas.kretschmer@schollglas.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox