Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bab1dfd commit 9de4a11Copy full SHA for 9de4a11
doc/src/sgml/file-fdw.sgml
@@ -279,4 +279,20 @@ OPTIONS ( filename 'log/pglog.csv', format 'csv' );
279
</para>
280
</example>
281
282
+ <example>
283
+ <title>Create a Foreign Table with an option on a column</title>
284
+ <para>
285
+ To set the <literal>force_null</literal> option for a column, use the
286
+ <literal>OPTIONS</literal> keyword.
287
+ </para>
288
+<programlisting>
289
+CREATE FOREIGN TABLE films (
290
+ code char(5) NOT NULL,
291
+ title text NOT NULL,
292
+ rating text OPTIONS (force_null 'true')
293
+) SERVER film_server
294
+OPTIONS ( filename 'films/db.csv', format 'csv' );
295
+</programlisting>
296
+ </example>
297
+
298
</sect1>
0 commit comments