[PATCH] COPY .. COMPRESSED - Mailing list pgsql-hackers

From Stephen Frost
Subject [PATCH] COPY .. COMPRESSED
Date
Msg-id 20130114021644.GG16126@tamriel.snowman.net
Whole thread Raw
Responses Re: [PATCH] COPY .. COMPRESSED
Re: [PATCH] COPY .. COMPRESSED
List pgsql-hackers
Greetings,

  Attached is a patch to add a 'COMPRESSED' option to COPY which will
  cause COPY to expect a gzip'd file on input and which will output a
  gzip'd file on output.  Included is support for backend COPY, psql's
  \copy, regression tests for both, and documentation.

  On top of this I plan to submit a trivial patch to add support for
  this to file_fdw, allowing creation of FDW tables which operate
  directly on compressed files (including CSVs, which is what I need
  this patch for).

  I've also begun working on a patch to allow this capability to be used
  through pg_dump/pg_restore which would reduce the bandwidth used
  between the client and the server for backups and restores.  Ideally,
  one would also be able to use custom format dumps, with compression,
  even if the client-side pg_dump/pg_restore wasn't compiled with zlib
  support.

      Thanks,

        Stephen

Attachment

pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: pgcrypto seeding problem when ssl=on
Next
From: Tom Lane
Date:
Subject: Re: Possible PANIC in PostPrepare_Locks