{"Entry":{"collection":"func","key":"pg-read-binary-file","name":"pg_read_binary_file","aliases":[],"metadata":{"changed_in":["9.5","16"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.0","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.1"},{"descriptions_changed":false,"doc_overhaul":false,"from":"9.4","group_changed":null,"signatures":{"added":["pg_read_binary_file ( filename text [, offset bigint, length bigint [, missing_ok boolean] ] ) → bytea"],"removed":["pg_read_binary_file ( filename text [, offset bigint, length bigint] ) → bytea"]},"status":"changed","to":"9.5"},{"descriptions_changed":true,"doc_overhaul":false,"from":"10","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"11"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"},{"descriptions_changed":false,"doc_overhaul":false,"from":"15","group_changed":null,"signatures":{"added":["pg_read_binary_file ( filename text [, offset bigint, length bigint ] [, missing_ok boolean ] ) → bytea"],"removed":["pg_read_binary_file ( filename text [, offset bigint, length bigint [, missing_ok boolean ]] ) → bytea"]},"status":"changed","to":"16"}],"content_hash":"4100e25e2506e76a13d0b0d5a62bec3e13313936762d33cc26324a57fea5a9aa","derived_content_hash":"910059c96fefd6df11dea7f404f360909e5630bcdf822c9e530403e83de9e6b6","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:45b2c1a011072b3b8a373e5d9a8ede71db9c72ca47a20b5797a427465552f739","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"9.1","group":"admin","group_label":"System Administration Functions","groups":["admin"],"imported_at":"2026-09-27T17:57:29.603185+08:00","last_version":"20","name":"pg_read_binary_file","name_key":"pg_read_binary_file","position":29074,"present_in":["9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"a4a6e491605b781cda5c12e3da8cc70bb934e74320aa3c82976ec178e725ef74","repair":"wiki-repair-20261023"},"signature":"pg_read_binary_file ( filename text [, offset bigint, length bigint ] [, missing_ok boolean ] ) → bytea","signature_count":1,"slug":"pg-read-binary-file","source_rev":"wiki-repair-20261023:45b2c1a011072b3b8a373e5d9a8ede71db9c72ca47a20b5797a427465552f739","summary":"Returns all or part of a file.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-read-binary-file","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-read-binary-file","SourceRevision":"wiki-repair-20261023:45b2c1a011072b3b8a373e5d9a8ede71db9c72ca47a20b5797a427465552f739","Facts":{"description":"Returns all or part of a file. This function is identical to pg_read_file except that it can read arbitrary binary data, returning the result as bytea not text; accordingly, no encoding checks are performed.","description_html":"Returns all or part of a file. This function is identical to \u003ccode class=\"function\"\u003epg_read_file\u003c/code\u003e except that it can read arbitrary binary data, returning the result as \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e not \u003ccode class=\"type\"\u003etext\u003c/code\u003e; accordingly, no encoding checks are performed.","description_zh":"返回文件的全部或部分。该函数与 pg_read_file 完全相同，只是它可以读取任意二进制数据，并返回 bytea 而不是 text；因此不会执行编码检查。","description_zh_html":"返回文件的全部或部分。该函数与 \u003ccode class=\"function\"\u003epg_read_file\u003c/code\u003e 完全相同，只是它可以读取任意二进制数据，并返回 \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e 而不是 \u003ccode class=\"type\"\u003etext\u003c/code\u003e；因此不会执行编码检查。","doc":{"anchor":"FUNCTIONS-ADMIN-GENFILE-TABLE","file":"functions-admin.html","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-admin.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","version":"18.7"},{"file":"functions-admin.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"830e894d29fec30b7c350c915fcaed4a63b24d57f2c96150bf25fa07fb43849c","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"admin","group_label":"系统管理函数","lang":"en","layout":"table-new","pages":["functions-admin.html"],"prose_only":false,"signatures":[{"description":"Returns all or part of a file. This function is identical to pg_read_file except that it can read arbitrary binary data, returning the result as bytea not text; accordingly, no encoding checks are performed.","description_html":"Returns all or part of a file. This function is identical to \u003ccode class=\"function\"\u003epg_read_file\u003c/code\u003e except that it can read arbitrary binary data, returning the result as \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e not \u003ccode class=\"type\"\u003etext\u003c/code\u003e; accordingly, no encoding checks are performed.","description_zh":"返回文件的全部或部分。该函数与 pg_read_file 完全相同，只是它可以读取任意二进制数据，并返回 bytea 而不是 text；因此不会执行编码检查。","description_zh_html":"返回文件的全部或部分。该函数与 \u003ccode class=\"function\"\u003epg_read_file\u003c/code\u003e 完全相同，只是它可以读取任意二进制数据，并返回 \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e 而不是 \u003ccode class=\"type\"\u003etext\u003c/code\u003e；因此不会执行编码检查。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_read_binary_file\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003efilename\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003eoffset\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003elength\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e\u003c/span\u003e] [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003ebytea\u003c/code\u003e","returns":"bytea","text":"pg_read_binary_file ( filename text [, offset bigint, length bigint] [, missing_ok boolean] ) → bytea","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-admin.html","sha256":"b4fab9daceb7883fd75b32b6eb5398f2bbbfbbed5c83d1b2bf99cc8d842cdaf7"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-ADMIN-GENFILE-TABLE","file":"functions-admin.html","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-read-binary-file","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_read_binary_file","Summary":"Returns all or part of a file. This function is identical to pg_read_file except that it can read arbitrary binary data, returning the result as bytea not text; accordingly, no encoding checks are performed.","BodyHTML":"Returns all or part of a file. This function is identical to \u003ccode\u003epg_read_file\u003c/code\u003e except that it can read arbitrary binary data, returning the result as \u003ccode\u003ebytea\u003c/code\u003e not \u003ccode\u003etext\u003c/code\u003e; accordingly, no encoding checks are performed.","SourceRevision":"wiki-repair-20261023:45b2c1a011072b3b8a373e5d9a8ede71db9c72ca47a20b5797a427465552f739","ContentHash":"c266f76c8e5a1d9b9a475239a0438897d4f466a338e048b46dca71eaedeed2a8","Payload":{"description":"Returns all or part of a file. This function is identical to pg_read_file except that it can read arbitrary binary data, returning the result as bytea not text; accordingly, no encoding checks are performed.","description_html":"Returns all or part of a file. This function is identical to \u003ccode class=\"function\"\u003epg_read_file\u003c/code\u003e except that it can read arbitrary binary data, returning the result as \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e not \u003ccode class=\"type\"\u003etext\u003c/code\u003e; accordingly, no encoding checks are performed.","signatures":[{"description":"Returns all or part of a file. This function is identical to pg_read_file except that it can read arbitrary binary data, returning the result as bytea not text; accordingly, no encoding checks are performed.","description_html":"Returns all or part of a file. This function is identical to \u003ccode class=\"function\"\u003epg_read_file\u003c/code\u003e except that it can read arbitrary binary data, returning the result as \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e not \u003ccode class=\"type\"\u003etext\u003c/code\u003e; accordingly, no encoding checks are performed.","description_zh":"返回文件的全部或部分。该函数与 pg_read_file 完全相同，只是它可以读取任意二进制数据，并返回 bytea 而不是 text；因此不会执行编码检查。","description_zh_html":"返回文件的全部或部分。该函数与 \u003ccode class=\"function\"\u003epg_read_file\u003c/code\u003e 完全相同，只是它可以读取任意二进制数据，并返回 \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e 而不是 \u003ccode class=\"type\"\u003etext\u003c/code\u003e；因此不会执行编码检查。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_read_binary_file\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003efilename\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003eoffset\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003elength\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e\u003c/span\u003e] [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003ebytea\u003c/code\u003e","returns":"bytea","text":"pg_read_binary_file ( filename text [, offset bigint, length bigint] [, missing_ok boolean] ) → bytea","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"5325a22ea2575182baccd533e79b87fa7e2b0d970ec871299353a3cf32144d28","Text":"pg_read_binary_file ( filename text [, offset bigint, length bigint] [, missing_ok boolean] ) → bytea","Returns":"bytea","Payload":{"description":"Returns all or part of a file. This function is identical to pg_read_file except that it can read arbitrary binary data, returning the result as bytea not text; accordingly, no encoding checks are performed.","description_html":"Returns all or part of a file. This function is identical to \u003ccode class=\"function\"\u003epg_read_file\u003c/code\u003e except that it can read arbitrary binary data, returning the result as \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e not \u003ccode class=\"type\"\u003etext\u003c/code\u003e; accordingly, no encoding checks are performed.","description_zh":"返回文件的全部或部分。该函数与 pg_read_file 完全相同，只是它可以读取任意二进制数据，并返回 bytea 而不是 text；因此不会执行编码检查。","description_zh_html":"返回文件的全部或部分。该函数与 \u003ccode class=\"function\"\u003epg_read_file\u003c/code\u003e 完全相同，只是它可以读取任意二进制数据，并返回 \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e 而不是 \u003ccode class=\"type\"\u003etext\u003c/code\u003e；因此不会执行编码检查。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_read_binary_file\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003efilename\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003eoffset\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003elength\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e\u003c/span\u003e] [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003ebytea\u003c/code\u003e","returns":"bytea","text":"pg_read_binary_file ( filename text [, offset bigint, length bigint] [, missing_ok boolean] ) → bytea","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
