pgsql: Add pg_read_binary_file() and whole-file-at-once versions of pg_
pgsql: Add pg_read_binary_file() and whole-file-at-once versions of pg_
От:
Itagaki Takahiro <itagaki.takahiro@gmail.com>
Дата:
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(-)