pgsql: Add pg_read_binary_file() and whole-file-at-once versions of pg_

From: Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add pg_read_binary_file() and whole-file-at-once versions of pg_
Date: 2010-12-15 22:04:55
Message-ID: E1PSzSx-0001RZ-IH@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add pg_read_binary_file() and whole-file-at-once versions of pg_read_file().
One of the usages of the binary version is to read files in a different
encoding from the server encoding.

Dimitri Fontaine and Itagaki Takahiro.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=03db44eae3e065174d5e29888b8d98c39b1f520b

Modified Files
--------------
doc/src/sgml/func.sgml | 25 +++++++-
src/backend/utils/adt/genfile.c | 128 +++++++++++++++++++++++++++++++-------
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.h | 6 ++
src/include/utils/builtins.h | 3 +
5 files changed, 139 insertions(+), 25 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2010-12-16 02:10:52 pgsql: Document timestamptz a little better.
Previous Message Bruce Momjian 2010-12-15 12:12:11 pgsql: Use "upgrade" in preference over "migrate" in pg_upgrade message