Add pg_read_binary_file() and whole-file-at-once versions of pg_read_file().
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +24 −1 |
| src/backend/utils/adt/genfile.c | modified | +105 −23 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.h | modified | +6 −0 |
| src/include/utils/builtins.h | modified | +3 −0 |