Skip to content
Snippets Groups Projects
  1. Mar 04, 2014
    • Andrew Dunstan's avatar
      Provide a FORCE NULL option to COPY in CSV mode. · 3b5e03dc
      Andrew Dunstan authored
      This forces an input field containing the quoted null string to be
      returned as a NULL. Without this option, only unquoted null strings
      behave this way. This helps where some CSV producers insist on quoting
      every field, whether or not it is needed. The option takes a list of
      fields, and only applies to those columns. There is an equivalent
      column-level option added to file_fdw.
      
      Ian Barwick, with some tweaking by Andrew Dunstan, reviewed by Payal
      Singh.
      3b5e03dc
  2. Sep 16, 2011
  3. Feb 20, 2011
    • Tom Lane's avatar
      Add contrib/file_fdw foreign-data wrapper for reading files via COPY. · 7c5d0ae7
      Tom Lane authored
      This is both very useful in its own right, and an important test case
      for the core FDW support.
      
      This commit includes a small refactoring of copy.c to expose its option
      checking code as a separately callable function.  The original patch
      submission duplicated hundreds of lines of that code, which seemed pretty
      unmaintainable.
      
      Shigeru Hanada, reviewed by Itagaki Takahiro and Tom Lane
      7c5d0ae7
Loading