{"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","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"],"signature":"to_oct ( integer ) → text","signature_count":2,"slug":"to-oct","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","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":"2026-09-14T13:14:25.684213+00:00@99e6866c","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","slug":"18"},"group":"string","group_label":"String Functions And Operators","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":""},{"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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"to-oct","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"to_oct","Summary":"将数字转换为等价的八进制补码表示。","BodyHTML":"将数字转换为等价的八进制补码表示。\u003cpre\u003eto_oct ( integer ) → text\u003c/pre\u003e将数字转换为等价的八进制补码表示。\u003cpre\u003eto_oct ( bigint ) → text\u003c/pre\u003e将数字转换为等价的八进制补码表示。","SourceRevision":"1b5ca64c","ContentHash":"02d70066a355f089b7d6e950abe70832e346585cf40356c009e8c4b773057a45","Payload":{"description_zh":"将数字转换为等价的八进制补码表示。","description_zh_html":"将数字转换为等价的八进制补码表示。","signatures":[{"description_zh":"将数字转换为等价的八进制补码表示。","description_zh_html":"将数字转换为等价的八进制补码表示。","returns":"text","text":"to_oct ( integer ) → text","zh_from":"doc"},{"description_zh":"将数字转换为等价的八进制补码表示。","description_zh_html":"将数字转换为等价的八进制补码表示。","returns":"text","text":"to_oct ( bigint ) → text","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":""}},{"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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
