{"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","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"],"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":"b7bd9cda","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":"b7bd9cda","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":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-ADMIN-GENFILE-TABLE","file":"functions-admin.html","slug":"18"},"group":"admin","group_label":"System Administration Functions","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":"","description_zh_html":"","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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-ADMIN-GENFILE-TABLE","file":"functions-admin.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-read-binary-file","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_read_binary_file","Summary":"返回文件的全部或部分。该函数与pg_read_file完全相同，只是它可以读取任意二进制数据，并返回bytea而不是text；因此不会执行编码检查。","BodyHTML":"返回文件的全部或部分。该函数与\u003ccode\u003epg_read_file\u003c/code\u003e完全相同，只是它可以读取任意二进制数据，并返回\u003ccode\u003ebytea\u003c/code\u003e而不是\u003ccode\u003etext\u003c/code\u003e；因此不会执行编码检查。\u003cpre\u003epg_read_binary_file ( filename text [, offset bigint, length bigint ] [, missing_ok boolean ] ) → bytea\u003c/pre\u003e返回文件的全部或部分。该函数与\u003ccode\u003epg_read_file\u003c/code\u003e完全相同，只是它可以读取任意二进制数据，并返回\u003ccode\u003ebytea\u003c/code\u003e而不是\u003ccode\u003etext\u003c/code\u003e；因此不会执行编码检查。","SourceRevision":"1b5ca64c","ContentHash":"ddbe8028e241ed5113775d055a99ce9a7cdeb4bd3cf9a7415d094610c98aee49","Payload":{"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；因此不会执行编码检查。","signatures":[{"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；因此不会执行编码检查。","returns":"bytea","text":"pg_read_binary_file ( filename text [, offset bigint, length bigint ] [, missing_ok boolean ] ) → bytea","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":"ab0a11395a8fbeb5351c12d291f72113a73426d89aae3d128535fb993fe06df2","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":"","description_zh_html":"","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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
