Creation of file from postgresql function

Поиск
Список
Период
Сортировка
От Jyoti Seth
Тема Creation of file from postgresql function
Дата
Msg-id 000001c9e442$e381d140$aa8573c0$@com
обсуждение исходный текст
Ответы Re: Creation of file from postgresql function  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список 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



В списке pgsql-sql по дате отправления:

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: complex column definition in query
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: Creation of file from postgresql function