file-fdw and force_null

Поиск
Список
Период
Сортировка
От Boshomi Phenix
Тема file-fdw and force_null
Дата
Msg-id CAJVkCUparn4_Oarernm=U6LWVsTkecKcALHtwGr5M3qJRj_czw@mail.gmail.com
обсуждение исходный текст
Ответы Re: file-fdw and force_null  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-docs
Hello Friends

I tried to create a file-fdw foreign table with force_null for some columns.
FORCE_NULL syntax differs from COPY. For me it was not clear that the "OPTIONS" keyword by the column was necessary, so it would be nice to add this to the example.


DROP FOREIGN TABLE IF EXISTS testforcenull;
CREATE FOREIGN TABLE testforcenull
( cola text NOT NULL,
  colb text,
  colc text OPTIONS(FORCE_NULL 'true')
  ) SERVER bevcsv
    OPTIONS (filename '~/testforcenull.csv',
       FORMAT 'csv',
       HEADER 'true',  
       DELIMITER ';',
       QUOTE '"'  
       );

best regards


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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: Remove obsolete mention of backslashes as escapes
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: file-fdw and force_null