{"Entry":{"collection":"func","key":"to-oct","name":"to_oct","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"16","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"17"}],"content_hash":"d32cf65dfb1633bc5da43f3add0e272533867aeebfd8da7cee79bac9b93b5f30","derived_content_hash":"cce22627faa451d84b7b470ebd9de17c10dd990a39cdb7b3a8ed004d6729ca2e","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:bd72a683627141ae80f82905c820761a82a6b02ef53d3685be16f7d532986489","versions":{"17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"17","group":"string","group_label":"String Functions And Operators","groups":["string"],"imported_at":"2026-09-14T21:49:48.677614+08:00","last_version":"20","name":"to_oct","name_key":"to_oct","position":3052,"present_in":["17","18","19","20"],"repair_provenance":{"original_source_revision":"2026-09-14T13:14:25.684213+00:00@99e6866c","receipt_sha256":"bcd2ca56ef213bc926419fc18263c8cf40da8533b909e9d6af1f9cc4d388df7a","repair":"wiki-repair-20261023"},"signature":"to_oct ( integer ) → text","signature_count":2,"slug":"to-oct","source_rev":"wiki-repair-20261023:bd72a683627141ae80f82905c820761a82a6b02ef53d3685be16f7d532986489","summary":"Converts the number to its equivalent two's complement octal representation.","summary_zh":""}},"Definition":{"Collection":"func","Key":"to-oct","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"to-oct","SourceRevision":"wiki-repair-20261023:bd72a683627141ae80f82905c820761a82a6b02ef53d3685be16f7d532986489","Facts":{"description":"Converts the number to its equivalent two's complement octal representation.","description_html":"Converts the number to its equivalent two's complement octal representation.","description_zh":"将数字转换为等价的八进制补码表示。","description_zh_html":"将数字转换为等价的八进制补码表示。","doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","sha256":"dbe9f91e55c35969d99a8d2697b6f7bd5388a24ccc2b89706a666f176025f1e2","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-string.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"dbe9f91e55c35969d99a8d2697b6f7bd5388a24ccc2b89706a666f176025f1e2","version":"18.7"},{"file":"functions-string.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"7eecd3bb343149124be0476a539f3c682476eab2a15489a0e0ad06fbb769ea9e","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"string","group_label":"字符串函数和操作符","lang":"en","layout":"table-new","pages":["functions-string.html"],"prose_only":false,"signatures":[{"description":"Converts the number to its equivalent two's complement octal representation.","description_html":"Converts the number to its equivalent two's complement octal representation.","description_zh":"将数字转换为等价的八进制补码表示。","description_zh_html":"将数字转换为等价的八进制补码表示。","examples":[{"expr":"to_oct(2147483647)","result":"17777777777"},{"expr":"to_oct(-1234)","result":"37777775456"}],"html":"\u003ccode class=\"function\"\u003eto_oct\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_oct ( integer ) → text","zh_from":"same-version-manual"},{"description":"Converts the number to its equivalent two's complement octal representation.","description_html":"Converts the number to its equivalent two's complement octal representation.","description_zh":"将数字转换为等价的八进制补码表示。","description_zh_html":"将数字转换为等价的八进制补码表示。","examples":[{"expr":"to_oct(2147483647)","result":"17777777777"},{"expr":"to_oct(-1234)","result":"37777775456"}],"html":"\u003ccode class=\"function\"\u003eto_oct\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_oct ( bigint ) → text","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-string.html","sha256":"0446377e0eccc9299099dc4b4b293204c337e3abefcdc396e9698bc54dd1080b"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","sha256":"dbe9f91e55c35969d99a8d2697b6f7bd5388a24ccc2b89706a666f176025f1e2","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"to-oct","SourceDatabase":"center","Version":"18","Locale":"en","Title":"to_oct","Summary":"Converts the number to its equivalent two's complement octal representation.","BodyHTML":"Converts the number to its equivalent two\u0026#39;s complement octal representation.","SourceRevision":"wiki-repair-20261023:bd72a683627141ae80f82905c820761a82a6b02ef53d3685be16f7d532986489","ContentHash":"bc55ebc439d97091721420dd43fa3049ec76887e86b61b0b85c9ccc3549d432b","Payload":{"description":"Converts the number to its equivalent two's complement octal representation.","description_html":"Converts the number to its equivalent two's complement octal representation.","signatures":[{"description":"Converts the number to its equivalent two's complement octal representation.","description_html":"Converts the number to its equivalent two's complement octal representation.","description_zh":"将数字转换为等价的八进制补码表示。","description_zh_html":"将数字转换为等价的八进制补码表示。","examples":[{"expr":"to_oct(2147483647)","result":"17777777777"},{"expr":"to_oct(-1234)","result":"37777775456"}],"html":"\u003ccode class=\"function\"\u003eto_oct\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_oct ( integer ) → text","zh_from":"same-version-manual"},{"description":"Converts the number to its equivalent two's complement octal representation.","description_html":"Converts the number to its equivalent two's complement octal representation.","description_zh":"将数字转换为等价的八进制补码表示。","description_zh_html":"将数字转换为等价的八进制补码表示。","examples":[{"expr":"to_oct(2147483647)","result":"17777777777"},{"expr":"to_oct(-1234)","result":"37777775456"}],"html":"\u003ccode class=\"function\"\u003eto_oct\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_oct ( bigint ) → text","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"d3d0fa0876444d90ec2c265a2a5a829c16b5b657639e06866a8d71afc95ad632","Text":"to_oct ( integer ) → text","Returns":"text","Payload":{"description":"Converts the number to its equivalent two's complement octal representation.","description_html":"Converts the number to its equivalent two's complement octal representation.","description_zh":"将数字转换为等价的八进制补码表示。","description_zh_html":"将数字转换为等价的八进制补码表示。","examples":[{"expr":"to_oct(2147483647)","result":"17777777777"},{"expr":"to_oct(-1234)","result":"37777775456"}],"html":"\u003ccode class=\"function\"\u003eto_oct\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_oct ( integer ) → text","zh_from":"same-version-manual"}},{"Version":"18","Ordinal":1,"Hash":"144f97224df505c130f41b371dec534a0bcfaccd1eec61e964656ca36e38fe36","Text":"to_oct ( bigint ) → text","Returns":"text","Payload":{"description":"Converts the number to its equivalent two's complement octal representation.","description_html":"Converts the number to its equivalent two's complement octal representation.","description_zh":"将数字转换为等价的八进制补码表示。","description_zh_html":"将数字转换为等价的八进制补码表示。","examples":[{"expr":"to_oct(2147483647)","result":"17777777777"},{"expr":"to_oct(-1234)","result":"37777775456"}],"html":"\u003ccode class=\"function\"\u003eto_oct\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_oct ( bigint ) → text","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
