Re: use fopen iso-8859-1 resource

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: use fopen iso-8859-1 resource
Дата
Msg-id d7b0f1c6-33b9-38f9-7a28-41e773ef7eee@aklaver.com
обсуждение исходный текст
Ответ на use fopen iso-8859-1 resource  (ourdiaspora <ourdiaspora@protonmail.com>)
Ответы Re: use fopen iso-8859-1 resource  (ourdiaspora <ourdiaspora@protonmail.com>)
Список pgsql-general
On 8/27/21 2:59 PM, ourdiaspora wrote:
> Readers,
> 
> Objective, to import a csv file into postgresql database. If understood correctly, the manual section 'fopen'
(https://www.php.net/manual/en/function.fopen.php)shows that the file has a "known resource" extant name.
 
> 
> Please what is the syntax to assign an unknown file name to the 'fopen' function?
> 

Why not use?:

https://www.php.net/manual/en/pdo.pgsqlcopyfromfile.php


-- 
Adrian Klaver
adrian.klaver@aklaver.com



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

Предыдущее
От: ourdiaspora
Дата:
Сообщение: use fopen iso-8859-1 resource
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Can we get rid of repeated queries from pg_dump?