From: Jyoti Seth <jyotiseth2001@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Creation of file from postgresql function
Date: Wed, 3 Jun 2009 17:30:23 +0530
Message-ID: <000001c9e442$e381d140$aa8573c0$@com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jyotiseth2001@gmail.com
Subject: Re: Creation of file from postgresql function
In-Reply-To: <000001c9e442$e381d140$aa8573c0$@com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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